Develop a Java program . The program should act as a trivia game which displays various subtraction questions. The program must initially display a welcome message before it starts showing the questions. It should allow the user to attempt five questions which must be numbered per each attempt (as in the diagram). The questions must be randomly generated from a range of 0 to 9. After each attempt, it must evaluate the question then check the response with the correct answer. A message must be displayed if the answer is correct. Then if the answer is wrong, a message must be displayed and the correct answer must be shown. The program must also record the time taken to answer all five questions then in the end provide a summary of the questions and responses given by the user. the diagram below shows the expected program in operation
Develop a Java program . The program should act as a trivia game which displays various subtraction questions. The program must initially display a welcome message before it starts showing the questions. It should allow the user to attempt five questions which must be numbered per each attempt (as in the diagram). The questions must be randomly generated from a range of 0 to 9. After each attempt, it must evaluate the question then check the response with the correct answer. A message must be displayed if the answer is correct. Then if the answer is wrong, a message must be displayed and the correct answer must be shown. The program must also record the time taken to answer all five questions then in the end provide a summary of the questions and responses given by the user. the diagram below shows the expected program in operation
Step by step
Solved in 3 steps with 1 images