Question: Write a menu-driven program that will help an elementary school student learn multiplication. Use rand to produce two positive one-digit integers for multiplication. The program
Write a menu-driven program that will help an elementary school student learn multiplication. Use rand to produce two positive one-digit integers for multiplication. The program may ask a question such as: How much is 6 times 8? The student then types the answer. Your program checks the student's answer and print the various comments: Responses to a correct answer: Excellent! Very good Keep up the good work! Responses to an incorrect answer: No. Please try again. Wrong. Try once more. Don't give up! Use the random number generator to choose a number 1 to 3 to select an appropriate response to each answer. Use a switch statement to issue the responses. The program should count the number of correct and incorrect responses typed by the stude After the student stops answering questions (use a while loop), your program should calculat and print the percentage of correct responses. The student is allowed to try each question u to 3 times to get the correct answer. Modify the program to allow the user pe of arithmetic problems he or she wishes to study. An option of A ems, S means subtraction problems, M means multiplication a) To pick the arithmeti means division problems. Use various functions for each part of the program. b) To ent er a grade-level capability. A grade level of 1 means to use only single-digit numbers in the proble digits. ms, a grade level of two means to use numbers as large as two
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
