Write calculator program that keep reading operations and


Write calculator program that keep reading operations and double numbers from user, and print the result based on the chosen operation using while loop. The loop must stop if the user enters Q letter.

NOTE: no need to write two classes.

Typical run of the program:

Enter an operation(+,-,*,/), Q to quit: +

Enter your first number: 6

Enter your second number: 5

Result= 11.0

Enter an operation(+,-,*,/), Q to quit: *

Enter your first number: 5

Enter your second number: 5

Result= 25.0

Enter an operation(+,-,*,/), Q to quit: q

You calculator has been ended!

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write calculator program that keep reading operations and
Reference No:- TGS02576849

Now Priced at $10 (50% Discount)

Recommended (97%)

Rated (4.9/5)