Develop a Java Program for Siyagijima Gym using NetBeans. The program must initially output a welcome message, and then prompt the user to enter the number of weights which will be measured. The program must then store these weights then should sort the weights in descending order. The program must also calculate the average weight. In the end, the average weight together with the sorted numbers must be displayed. Figure 2 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
Study the scenario and complete the question(s) that follow:
Siyagijima Gym
Siyagijima is a local gym. When members enter the gym, it is required that their weight is measured
before they enter. Currently, the security person at the door records the weight on a piece of paper.
Siyagijima Gym has decided to digitise this process by making use of a program that will record these
weights. The program must then do some statistics which the gym can make use of.
Source: Makura S.M. (2022)
Develop a Java Program for Siyagijima Gym using NetBeans. The program must initially output a
welcome message, and then prompt the user to enter the number of weights which will be
measured. The program must then store these weights then should sort the weights in
descending order. The program must also calculate the average weight. In the end, the average
weight together with the sorted numbers must be displayed. Figure 2 below shows the expected
program in operation.
Transcribed Image Text:Study the scenario and complete the question(s) that follow: Siyagijima Gym Siyagijima is a local gym. When members enter the gym, it is required that their weight is measured before they enter. Currently, the security person at the door records the weight on a piece of paper. Siyagijima Gym has decided to digitise this process by making use of a program that will record these weights. The program must then do some statistics which the gym can make use of. Source: Makura S.M. (2022) Develop a Java Program for Siyagijima Gym using NetBeans. The program must initially output a welcome message, and then prompt the user to enter the number of weights which will be measured. The program must then store these weights then should sort the weights in descending order. The program must also calculate the average weight. In the end, the average weight together with the sorted numbers must be displayed. Figure 2 below shows the expected program in operation.
Output - IT/VA3Assign1 (run) ×
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)
Transcribed Image Text:Output - IT/VA3Assign1 (run) × 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)
Expert Solution
steps

Step by step

Solved in 3 steps with 1 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