c++ looping and decision making   Write a program that can be used by a student to help with basic math problems. The program should display a menu which allows the student to choose one of the following math problems:

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 9PP
icon
Related questions
Question

c++ looping and decision making

 

Write a program that can be used by a student to help with basic math problems. The program should display a menu which allows the student to choose one of the following math problems:

 

addition

 

subtraction

 

multiplication

 

division – DO NOT allow division by 0.

 

the final selection should let the user quit the program

 

1.      The math problem selected should allow the student to enter the appropriate inputs and after they press the [Enter] key, the program should display the correct answer.

 

2.      After the user has finished the math problem, the program should display the menu again. This process is repeated until the user chooses to quit the program.

 

Input Validation: If the user selects an item not on the menu, display an error message and display the menu again.

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Mathematical functions
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT