Learn to Code via Tutorials on Repl.it!

← Back to all posts
Multiplication Quiz
jesnippy (0)

Can anyone help me with this project?

Write a Java application 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 is correct, display one of the following the messages and ask another multiplication question.

Responses to a correct answer:
Very good! 2. Excellent! 3. Nice work! 4. Keep up the good work!
If the answer is wrong, display one of the following message the messages and also provide a correct answer.

Responses to an incorrect answer:
No. Please try again. 2. Wrong. Try once more. 3. Don't give up! 4. No. Keep trying.

You could use random-number generation to choose a number from 1 to 4 that will be used to select an appropriate response to each answer and use a switch statement to issue the responses.

After the user enter -1 to exit the program. The program should print out all the questions, answers to those questions, remark to the wrong questions, statistics information about number of questions answered and answered incorrect, and a little remark. If the user has more than one third of the questions are wrong the remark should randomly choose from “Responses to an incorrect answer”, otherwise it should randomly choose from “Responses to a correct answer”