Challenge

Project

I have made this calculator with If.. else, would have used switch statement but wanted to try differently.
Some Operations of calculator are stored in different classes and are then called out at main class(i.e. Calculator.java)
Every operation is surrounded by try and catch for exceptions like invalid input and Arithmetic Exception.

The program is in infinite loop after every operation it asks whether the user wants to continue?; if the user types Y the program runs again or else gets terminated.

After everytime the program gets terminated the results are saved in file named “CalculationsHistory.txt”.

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.