Question: Visual studio C++ this program will display a number menu to the user. The options will be different types of math functions that we perform

Visual studio C++ this program will display a number menu to the user. The options will be different types of math functions that we perform on numbers once the user makes their selection and they will be asked to enter two numbers whole are decimal once they enter the two numbers in the program will perform the math function that the user asked to perform and tell the user the answer the program also not allow any improper user input example if the user tries to divide by zero, the program will tell them you cannot, divided by zero run the program again.

Program 02 Simple Menu (15 Points) This program will display a number


menu to the user. The options will be different types of math 

Program 02 Simple Menu (15 Points) This program will display a number menu to the user. The options will be different types of math functions that we perform on numbers. Once the user makes their selection they will be asked to enter two numbers; whole or decimal. Once they enter the two numbers the program will perform the math function that the user asked to perform and tell the user the answer. This program will also not allow any improper user input. Example if the user tries to divide by zero the program will tell them "You cannot divide by zero. Run the program again". GOOD RUN What would you like to do? 1. 2. 3. 4. Add 2 numbers Subtract 2 numbers Multiply 2 numbers Divide 2 numbers Please enter you selection: 1 Enter the first number: 20 Enter the second number: 3 You chose to perform the following operation: 20+3=23 Thanks for using the program. Bye

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 Programming Questions!