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”.