Question: Write a program that can be used as a mathTutor for a young student. The program should display two random numbers between 1 and 1000

Write a program that can be used as a mathTutor for a young student. The program should display two random numbers between 1 and 1000 to be added, such as:

Write a program that can be used as a mathTutor for a

After the student has entered an answer and pressed the enter button: if the answer is correct, a message of congratulations should be printed, if the answer is incorrect, a message should be printed showing the correct answer. (HINT: Helpful libraries: iomanip for setw(), cstdlib for srand() and rand(), and ctime for time().)

armersuender@margaux:-/Documents/Spring 2018/CPSC120-09/Labs/Lab 4$ ./mathtutor elcome to Math Tutor! Please answer the following question: 415 + 379 Your guess: 100 Sorry, that is incorrect.. The correct answer was 794. armersuender@margaux: /Documents/Spring 2018/CPSC120-09/Labs/Lab 4$./mathtutor Welcome to Math Tutor! Please answer the following question 659 + 782 Your guess: -34 Sorry, that is incorrect.. The correct answer was 1441. armersuender@margaux:-/Documents/Spring 2018/CPSC120-09/Labs/Lab 4$./mathtutor elcome to Math Tutor! Please answer the following question: + 193 Your guess: 637 Congratulations! That's the correct answer! armersuender@margaux:-/Documents/Spring 2018/CPSC120-09/Labs/Lab 4S (Picture sample runs to illustrate output formatting.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!