Question: *****PLEASE DO THIS PROBLEM IN C++*****DO NOT USE CONIO***** Sample Output: Write a program that uses a function displayMenu to display the following menu Math

*****PLEASE DO THIS PROBLEM IN C++*****DO NOT USE "CONIO"*****
Sample Output: Write a program that uses a function displayMenu to display the following menu Math Program: Math Program: 1. Add two numbers 2. Subtract two numbers 3. Multiply two numbers 4. Divide two numbers 5. Quit 1. Add two numbers 2. Subtract two numbers 3. Multiply two numbers 4. Divide two numbers . Quit When the user selects one of the options, the program will prompt them to input two numbers. It will then pass these numbers to a function, which will do the calculation and return the desired result. Choice: 0 You must choose between 1 and 5! Math Program: 1. Add two numbers 2. Subtract two numbers 3. Multiply two numbers 4. Divide two numbers 5. Quit There should be one function for each of the four non-quit menu options. The program will then output the correct answer subtract, multiply, and divide). point number The function names should be named in a way that corresponds to their action (add, Choice: 2 Please enter two numbers: 4.5815 5.8481 The numbers subtracted are -1.27 Math Program: .All of these functions should accept two floating point numbers, and return a floating 1. Add two numbers 2. Subtract two numbers 3. Multiply two numbers 4. Divide two numbers 5. Quit Display all results to 2 significant digits. All input and output with the user should be done in the main function. 1. The user is expected to input both numbers at the same time The program should loop until the user selects option 5 (Quit), and should be notified if they do not pick an option between 1 and 5. Choice: 3 Please enter two numbers: 82 The numbers multiplied are 16.00 Math Program: 1. Add two numbers 2. Subtract two numbers 3. Multiply two numbers 4. Divide two numbers 5. Quit Choice: 5 Thanks for using the program Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
