Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

ISBN: 0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

What is the evidence that sound is form of energy?

Answered: 1 week ago

Question

=+j Explain the litigation risks in international labor relations.

Answered: 1 week ago

Question

=+j What rules will apply to the process of negotiations?

Answered: 1 week ago