This program started in Chapter 3 and was modified in Chapter 4. Starting with the version described in Chapter 4, modify the program again, so it displays a?menu allowing the user to select?an addition, substraction, or multiplication problem. The final selection on the menu should let the user quit the program. After?the user has finished the math problem, the program should let the user quit the program. After the user has finished the math problem, the program should?display the menu again.
//Math Tutor Modification of Chapter 3: Write a program that can be used as a
math tutor for a young student.
using namespace std;
int main (
double randomnum1, randomnum2, answer, useranswer;
randnum = time(0);
randomnum1 = 10 + rand( ) % 50;
randomnum2 = 10 + rand( ) % 50;
answer = randomnum1 + randomnum2;
cout << randomnum1 << endl;
cout << randomnum2 << endl;
cout << "What's the sum of these two numbers? \n";
cin >> useranswer;
if (useranswer == answer)
cout << "Congratulations!! The answer you enter is correct.\n";
cout << "Your Answer is Incorrect!! The correct answer is: " <<
answer << endl;
This question was answered on: Oct 07, 2020Buy this answer for only: $15
This attachment is locked
Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
About this QuestionSTATUS
Oct 07, 2020EXPERT
GET INSTANT HELP/h4>
We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.
You can also use these solutions:
- As a reference for in-depth understanding of the subject.
- As a source of ideas / reasoning for your own research (if properly referenced)
- For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
NEW ASSIGNMENT HELP?
Order New Solution. Quick Turnaround
Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.
WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN A DEADLINE.