Question: Using Java: Please follow requirements: The program shall generate random numbers with a SecureRandom object The program shall ask the student to solve a multiplication

Using Java:

Using Java: Please follow requirements: The program shall generate random numbers with

Please follow requirements:

  • The program shall generate random numbers with a SecureRandom object
  • The program shall ask the student to solve a multiplication problem
  • A multiplication problem shall contain two numbers sampled from a uniform random distribution in the range of 0 to 9 (inclusive)
  • The program shall display the message "Very good!" if the student provides a correct response
  • The program shall display the message "No. Please try again." if the student provides an incorrect response
  • The program shall terminate when a correct response is provided by the student
  • The program shall continue to ask the student to solve the original multiplication problem until the student provides the correct answer
  • Create a method called "quiz" that contains the program logic
  • Create a method called "askQuestion" that prints the problem to the screen
  • Create a method called "readResponse" that reads the answer from the student
  • Create a method called "isAnswerCorrect" that checks to see if the student's answer matches the correct answer to the problem
  • Create a method called "displayCorrectResponse" that prints out the response when a student enters a correct answer
  • Create a method called "displayIncorrectResponse" that prints out the response when a student enters an incorrect answer
  • Create a main method that runs your program by calling the "quiz" method

Part 1 The use of computers in education is referred to as computer-assisted instruction (CAI). Write a program that will help an elementary school student learn multiplication. Use a SecureRandom object to produce two positive one-digit integers (you will need to look up how to do this). 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's correct, display the message "very good!" and terminate the program. If the answer is wrong, display the message "No. Please try again." and let the student try the same question repeatedly until the student finally gets it right. A separate method should be used to generate the

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!