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 Şiyafunda 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:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Answer should be in Java
E Output - ITJVA3Assign1 (run) x
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 = ? 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 = ? 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
||
Transcribed Image Text:E Output - ITJVA3Assign1 (run) x 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 = ? 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 = ? 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 Şiyafunda 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:
Transcribed Image Text: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 Şiyafunda 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:
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY