Answered step by step
Verified Expert Solution
Link Copied!

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.

student submitted image, transcription available below


student submitted image, transcription available below 

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems analysis and design

Authors: kenneth e. kendall, julie e. kendall

8th Edition

135094909, 013608916X, 9780135094907, 978-0136089162

More Books

Students also viewed these Programming questions

Question

What are the drawbacks of electronic and Web-based output?

Answered: 1 week ago

Question

identify how personality can be measured,

Answered: 1 week ago