Question: This example creates a program for user randomly generates two single-dgit integers number1 and number2, makes sure that number1number and displays a question such as

This example creates a program for user randomly generates two single-dgit integers number1 and number2, makes sure that number1number and displays a question such as "What is 9- 2?" to the student. After the student iypes the answer, the progran displays whether the answer is correct. If incorrect print message with what the math problem was and the correct number. use following to generate two random numbers int number1 (int) (Math.random() 10) int number2 (int)(Math.random) * 10)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
