Question: Write a modular program in C++ (a program that consists of multiple meaningful functions) that helps young students learn arithmetic. The program will ask for
Write a modular program in C++ (a program that consists of multiple meaningful functions) that helps young students learn arithmetic. The program will ask for the type of problems desired: addition, subtraction, multiplication, or mixed (addition, subtraction, and multiplication) and generate a ten question quiz containing randomly generated problems. Use the random number generator to produce two one-digit numbers for each problem. The program will produce a prompt like: What is 5 plus 7? When the student enters their answer the program will indicate whether their answer is correct or incorrect. For subtraction problems use the higher of the two random numbers as the minuend. Create at least four different correct and incorrect messages so the student will not get the same response for every correct or incorrect answer. Use the random number generator to choose which message is displayed. Be creative, but consider that ridicule would be inappropriate be encouraging. Keep track of the number of questions answered correctly and at the end of the quiz display the number of questions answered correctly. When ninety percent or more of the questions were answered correctly display a special message praising the student. Have a separate message for when eighty percent or more, but less than ninety percent of the questions were answered correctly. Your program must consist of at least 3 meaningful functions (2 plus main). Recall that every called functions definition must be preceded by a descriptive comment. 

Sample output of a program that satisfies the requirements of this assignment is shown below Sample Output 1: Welcome to the arithmetic challenge! 1-Addition 2- Subtraction 3 - Multiplication 4 - Addition, Subtraction, and Multiplication Mix Enter the number for the problem type: Problem #1 : What is 3 minus 1? 2 Very good Problem #2: What is 3 minus 0? 3 Excellent! Problem #3 : What is 9 minus 0? 9 Correct. Problem #4: What is 3 minus 2? 1 Great job Problem #5: What is 5 minus 3? 2 Great job Problem #6: What is 6 minus 3? 3 Very good Problem #7: What is 3 minus 2? 1 Correct. Problem #8: What is 4 minus 0? 4 Great job. Problem #9: What is 8 minus 6? 2 Correct. Problem #10: What is 6 minus 4? 2 Excellent! 10 out of 10 correct. Outstanding work
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
