Challenge

Project

In the program submitted, we have made a scientific calculator using java oops concepts. In the class calculator, we have separate functions for all twenty operations with return type as double. In the calculate() function , we ask the user for his choice of the operation and then call the appropriate function as per chpoice. We also have the main function where we have created the object for the calculator class and then call the calculate function in an infinite loop for the user to keep entering the choices again and again. We also have a print function to print the answer in console. The calculations ar written in the “CalculationsHistory.txt" file.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.