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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started