Solve it in JAVA only as soon as possible if you know only else
downvote
Output - ITJVAŽAssign1 (run) D D run: ****** *Welcome to Siyafunda Maths Trivia Game Trivia Question 1: 9 - 3 = ? 6 That's correct, excellent! Trivia Question 2: 9- 8 = ? 1 That's correct, excellent! Trivia Question 3: 7 - 1 = 7.4 Wrong answer. 7 - 1 should be 6 Trivia Question 4: 4 - 3 = ? 2 Wrong answer. 4 - 3 should be 1 Trivia Question 5: 7 - 2 = 2 5 That's correct, excellent ! ******* Siyafunda Maths Trivia Game Results Summary* Number of Correct Answers: 3 Time taken: 26 seconds 9-3 = 6 correct 9-8 = 1 correct 7-1 = 4 wrong 4-3 = 2 wrong 7-2 = 5 correct BUILD SUCCESSFUL (total time: 26 seconds) Figure 1 - Siyafunda App in operation =
Study the scenario and complete the question(s) that follow: Siyafunda Maths Trivia Game Siyafunda Primary School is a school consisting of grades 1 to 7. The Grade 2 teachers would like a program that they can use to teach the Grade 2s subtraction. They have approached you as a Java developer to help them develop this program. Develop a Java program for Sivafunda Primary School using NetBeans. 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 (see Figure 1). 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. Figure 1 below shows the expected program in operation:
Solve it in JAVA only as soon as possible if you know only else downvote
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am