Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started