This is important: To create your calculator, you can only depend on two methods at the core: increment(int a) and decrement(int a) which return 1 more or 1 less than the parameter provided.
write a calculator that supports the following operations:
1. Add two integers
2. Multiply two integers
3. Calculate a to the power of b
4. Calculate n!
To create your calculator, you can only depend on two methods at the core: increment(int a) and decrement(int a) which return 1 more or 1 less than the parameter provided.
The output should mimic something like this:
Choose and operation:
Ask the user for the operands
Do the calculation
Display the result
Repeat until the user wants to exit, if the user entered number “Zero” , 0, the program should exit