Question: 3. (10 points) Write a C++ program to create menu driven calculator that performs basic arithmetic operations (add, subtract, multiply and divide) using switch case

3. (10 points) Write a C++ program to create menu driven calculator that performs basic arithmetic operations (add, subtract, multiply and divide) using switch case. The calculator should input two numbers and an operator from user. It should perform operation according to the operator entered and must take input in given format.

Sample output:

Please enter the numbers and operator in the form :

2.1 + 3

The result is 5.1.

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!