Question: using java Develop a program called SimpleCalculator that prompts the user for a simple arithmetic expression, then displays the result of the calculation. The user

using java
using java Develop a program called SimpleCalculator that prompts the user for

Develop a program called SimpleCalculator that prompts the user for a simple arithmetic expression, then displays the result of the calculation. The user will input a basic expression in the following format: Store each operand as integers and the operator as a String or char. Use your choice of control structure to determine the operation to execute based on the following operators: * / + - % The system calculates and displays the result, then asks the user if they would like to enter another expression. Continue until the user decides that they are finished. Your program must use a do-while statement. Sample output: System: Enter an expression: User: 5 * 2 System: = 10 Perform another calculation? y User: System: Enter an expression: User: 24 - 8 System: = 16 Perform another calculation? y User: System: *** End of program ***

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!