Question: Needs to be done in Java. This is part 2 of a problem which has already been asked. It modifies part 1. The original question

Needs to be done in Java. This is part 2 of a problem which has already been asked. It modifies part 1.
The original question can be found at: https://www.chegg.com/homework-help/questions-and-answers/structure-required-mainassignment-myproblem1-src-cai1java-cai2java-cai3java-cai4java-cai5j-q44560808
Part 2 Modify the program from Part 1 so that various comments are displayed for each answer as follows: Possible responses to a correct answer: Very pood Excellenti Nice work! Keep up the good work! Possible resses to an incorrect answer No. Please try again. Kra. Tr n r. Don't give up! lio. Kere trying. Use random-number generation to choose a number from 1 to 4 that will be used to select one of the four appropriate responses to each correct or incorrect answer. Use a switch statement to issue the responses. 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 a random positive message if the student provides a correct response The program shall display a random negative message 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 "qui/" that contains the program logic: Create a function called "askQuestion that prints the problem to the screen Create a function called "read Response" that reads the answer from the student Create a function called "isAnwerCorrect that checks to see if the student's answer matches the correct answer to the problem Create a function called "displayCorrectResponse that prints out the response when a student enters a correct answer Create a function called "displayinorrectResponse" that prints out the response when a student enters an incorrect answer Part 1: Create a main method that runs your program by calling the "quiz" method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
