Question: Write a program that will help an elementary school student learn multiplication. Use a Random object to produce two positive one-digit integers. The program

Write a program that will help an elementary school student learn multiplication. Use a Random object to 

Write a program that will help an elementary school student learn multiplication. Use a Random object to produce two positive one-digit integers. The program should then prompt the user with a question, such as: How much is 6 times 7? The student then inputs the answer. Next, the program checks the student's answer. If it's correct, display one of the following messages randomly and ask whether the student wants to attempt another question. If yes, continue. If no, then do nothing. Each correct answer carries 1 point and each wrong answer will not accumulate any points. Display the number of points scored by the student over the total number of questions displayed. Possible responses for the correct answer are as follows: Very good! Excellent! Nice work! Keep up the good work! If the answer is wrong, display on of the following possible messages randomly: No. Please try again. Wrong. Try once more. Don't give up! No. Keep trying. Your form code should validate the data entered for proper type etc. But a create a separate class with methods or properties as appropriate for each of the following: 1. Generating a random question. This method should be called with the application starts, and then each time when a new question is generated. 2. Evaluating the answer 3. Keeping track of points 4. Generating random messages for correct answers and wrong answers.

Step by Step Solution

3.47 Rating (160 Votes )

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 Programming Questions!