Question: Program 2 (25 points): Simple Calculator Using BlueJ (or other IDE), write and debug a simple calculator that can add, subtract, multiply, divide, modulo, and

 Program 2 (25 points): Simple Calculator Using BlueJ (or other IDE),

Program 2 (25 points): Simple Calculator Using BlueJ (or other IDE), write and debug a simple calculator that can add, subtract, multiply, divide, modulo, and exponentiate two numbers entered by the user. Display the result with 2 decimal place precision. Research how to do 2 decimal place accuracy. Research how to use the Java Math Library to perform exponentiation. You must prevent division by errors. Your program will repeat this process 3 times. Each time, you will print out how man iterations the user has left. The program will prompt the user to enter the first number, then the second number, and then the operation. The program will use these values to calculate the result and display it to the user. You may use if-else or switch cases. Note: In the below examples ' E ' is used for exponentiation Example Input first number: 8 Input second number: 3 Enter operation (+,,,l,%,E):% The answer to 8%3 is 2 You have 2 iterations left. Input first number: 100 Input second number: 26 Enter operation (+,,,l,%,E) : a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!