Design a program to do the administration for a fun run competition. Participants can run a distance of 5 kilometers, 10 kilometers or 15 kilometers. Ask the user if they wish to register a participant (Y or N). Ask whether the person is a member (Y or N) Ask the distance that the person wishes to run (5, 10, 15). Registration fees for club members are as follows: 5km = R 65.00 10km = R 100.00 15km = R 150.00 Non-members: For the 5 and 10 kilometers distances, the participation fees must be increased by 25% For the 15 kilometer distance the registration fee is double that of club members. Use the given criteria and input information to calculate the registration fee. The program must keep track of the total number of participants per distance category, the total amount received per distance category and total amount received. The program must also calculate the total number of participants and the total number of club members who registered. The program must identify the category with the highest income in terms of registration fees. The two input validations are optional and will not count marks.
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Design a
Ask the user if they wish to register a participant (Y or N).
Ask whether the person is a member (Y or N)
Ask the distance that the person wishes to run (5, 10, 15).
Registration fees for club members are as follows:
5km = R 65.00
10km = R 100.00
15km = R 150.00
Non-members:
For the 5 and 10 kilometers distances, the participation fees must be increased by 25%
For the 15 kilometer distance the registration fee is double that of club members.
Use the given criteria and input information to calculate the registration fee.
The program must keep track of the total number of participants per distance category, the total amount received per distance category and total amount received.
The program must also calculate the total number of participants and the total number of club members who registered.
The program must identify the category with the highest income in terms of registration fees.
The two input validations are optional and will not count marks.
Step by step
Solved in 2 steps