Question: Problem Statement Write a program that can be used as a math tutor for a young student. The program repeatedly displays the following menu allowing


Problem Statement Write a program that can be used as a math tutor for a young student. The program repeatedly displays the following menu allowing the student to select an addition, subtraction, multiplication, or division question to solve, until the student chooses option 5 to quit the program. I. Addition problem 2. Subtraction problem 3. Multiplication problem 4. Division problem 5. Quit this program For option 1, the program should display two random numbers to be added, each operand is an integer in the range of [1,500]. For example, 245 +128 For option 2, the program should display two random numbers for the subtraction problem, each operand is an integer in the range of [1,999]. For example, 235 -67 For option 3, the program should display two random numbers for the multiplication problem, the first number is an integer in the range of [1,100], the second number is integer in the range of [1,91. For example, For option 4, the program should display two random numbers for the division problem, and the divisor is an integer in the range of [1,91. Since the student did not learn the division problems with fractional results, all the division problems generated by your program should guarantee the remainder is 0. (How can you make sure of this? Hint: your program should generate the random number for the divisor first, then generate a number that is a multiple of the divisor, as the dividend) For example, 72 9 Then, for each option of 1, 2, 3 or 4, the program should wait for the student to enter the answer. 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
