Question: q1-Write a Java program that allows the user to enter integer numbers as much as the user wish ( the loop is going until the
Implement a simple calculator, this time utilizing a loop mechanism to enable the user to use the calculator more than once.
The program does the following:
It prompts the user to enter 2 numbers.
It prompts the user to choose an operation to perform on those numbers:
- Operation 1: Addition.
- Operation 2: Subtraction.
- Operation 3: Multiplication.
- Operation 4: Division.
It outputs the result of the operation.
It asks the user if they want to perform another calculation, using "-1" as a stop value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
