Question: Java Write a program that multiplies two single-digit numbers. The program should generate two random single-digit numbers and put them into a multiplication question. The

Java

Write a program that multiplies two single-digit numbers. The program should generate two random single-digit numbers and put them into a multiplication question. The program should also provide random feedback messages depending if the user answered the question correctly. Random questions should continue to generate until the user enters -50.

This program must use multiple methods. The void method should be where correct feedback is stored. The IncorrectFB method should be where incorrect feedback is stored. The RandomQ method should be where random questions are generated.

Sample output: What is 5 * 5? Enter your answer or type -50 to exit: 25 Great job!

What is 2*3? Enter your answer or type -50 to exit: 7 Better luck next time! Enter your answer or type -50 to exit: 8 Lets try again! Enter your answer or type -50 to exit: 6 Perfect!

What is 1*0? Enter your answer or type -50 to exit: -50 Goodbye!

Step by Step Solution

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