Question
The University sports club is organizing a running competition. All participants are required to run 3 races: 400m, 200m, and 100m sprints. The sports club
The University sports club is organizing a running competition. All participants are required to run 3 races: 400m, 200m, and 100m sprints. The sports club requires a system to record the performance times of all participants for each of the 3 running events. The sports club also wants to record the registration number and the age of each participant.
Requirement 1: The user must be prompted to input data for each participant in the correct format up to a maximum of 40 participants. If the format is incorrect, the user must be asked to re-enter the data. For reasons of simplicity you may assume that all times are recorded as whole numbers (number of seconds). The user must be able to indicate when data entry for the last participant has been completed
Requirement 2: Based on the available data, the organizers want the system to identify:
- the registration number of the fastest runner for each race
- for each race, the average time needed by all those participant who aged 60 and above
- the algorithm must be able to perform these calcualtion and inform the user of the results
Question
Write an algorithm based on the description above that satisfies Requirement 1 and Requirement 2.
Any interaction with the user should be represented as appropriate display messages.
Provide how your algorithm satisfies Requirement 1 and Requirement 2. Give the comments on the algorithm step-by-step
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started