Create a program that will ask user to input two numbers and choose from the four mathematical operations and display the answer. (use nested if or switch statement) Here is your sample screen output: Input First Number: Input Second Number: Choose Arithmetic Operations 1. ADD 2. SUBTRACT 3. MULTIPLY 4. DIVIDE 5. Exit

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.7: Do While Loops
Problem 2E: (Misc. application) a. Write a program that continuously requests a grade to be entered. If the...
icon
Related questions
Question
Create a program that will ask user to input two numbers and choose from the four
mathematical operations and display the answer. (use nested if or switch statement)
Here is your sample screen output:
Input First Number:
Input Second Number:
Choose Arithmetic Operations
1. ADD
2. SUBTRACT
3. MULTIPLY
4. DIVIDE
5. Exit
Select Operation (1-5): _
The SUM of the two numbers is:
Transcribed Image Text:Create a program that will ask user to input two numbers and choose from the four mathematical operations and display the answer. (use nested if or switch statement) Here is your sample screen output: Input First Number: Input Second Number: Choose Arithmetic Operations 1. ADD 2. SUBTRACT 3. MULTIPLY 4. DIVIDE 5. Exit Select Operation (1-5): _ The SUM of the two numbers is:
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning