Question: Please create a program in Java and explain it in step-by-step with easy solution. Generate two random one digit numbers. Prompt user to enter the

Please create a program in Java and explain it in step-by-step with easy solution.

  • Generate two random one digit numbers.
  • Prompt user to enter the multiplication of 2 generated numbers.
  • If entered answer is correct print "Very good!" and terminate the loop
  • If entered answer is wrong print "Please try again" and run the loop until user enter the correct answer.
  • If user entered "-1" exit the program.

Use this one digit number produced to type the question as follows:

How much is 6 times 7?

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!