Question: (C++) You MUST use switch statement to complete the following exert to receive points. Write a program to achieve a four-function calculator. The program will

(C++) You MUST use switch statement to complete the following exert to receive points. Write a program to achieve a four-function calculator. The program will first take two real (non-zero) numbers as input from the user. You can safely assume the user will always input two numbers. The program then outputs the following message to prompt another user input. The user then enters one of the above characters for the program to perform the corresponding calculation on the previously two numbers. If the user enters other character than the above, the program will print out Unknown calculation and exits.

(C++) You MUST use switch statement to complete the following exert to

Please selecta + add two numbers subtract two numbers *: multiple two numbers V divide two numbers. The user then enters one of the above characters for the program to perform the corresponding calc If the user enters other character than the above, the program will print out Unknown calculation Ex: if the user enters: 2.54 the program will output: 2.5 4 = 10.00 Note that the output of the calculation result is in decimal with two digit precision

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!