Design a C++ 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). Information on using a switch statement for Y or N questions can be found in Beginning C, page 119. You may choose whether to use switch statements, if statements, or both for this practical.   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.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.3: Nested If Statements
Problem 7E
icon
Related questions
Question

Design a C++ 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).

Information on using a switch statement for Y or N questions can be found in Beginning C, page 119.
You may choose whether to use switch statements, if statements, or both for this practical.

 

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.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr