Question: Develop a C++ program to provide information regarding a recent downhill ski competition. Enter the names and times of the skiers and determine fasted speed,

Develop a C++ program to provide information regarding a recent downhill ski competition.

Enter the names and times of the skiers and determine fasted speed, average speed, look up a skiers time, and display the skiers names and times.

Name Time

Leela 2.03

Sarah 2.40

Anna 1.85

Keesha 1.90

Heidi 2.50

Requirements:

1. Use parallel arrays to store the skier names and times. Declare a global const SIZE = 5 to represent the size of the array. Declare the arrays inside the main program. Do NOT use global variables. The arrays must be passed to the functions as parameters.

2. Variable names must be descriptive and initialized.

3. Create a menu to ask the user if they want to a. Determine the fastest skier b. Calculate the average time c. Find the time of a skier d. Display the skiers and their times

4. Display the menu in the main program and then have functions for each of the menu items.

5. The four functions will be a. Display fastest skier b. Display average time c. Display skiers time. In this function, flag if the user enters a name that is not in the list. Display a message to let the user know the name was not in the list. d. Display the skiers and their times

Develop a C++ program to provide information regarding a recent downhill ski6. Output must be labelled and easy to read as shown in the sample output below.

Sample Output Enter 1 to determine the fastest skier Enter 2 to calculate the average tine Enter 3 to find the tine of a skier Enter 4 to display the list of skiers To exit enter any other nunber The fastest skier is Anna with a tine of 1.85 Enter 1 to deternine the fastest skier Enter 2 to calculate the average tine Enter 3 to find the tine of a skier Enter 4 to display the list of skiers To exit enter any other nunber he average tine is 2.136 Enter 1 to deternine the fastest skier Enter 2 to calculate the average tine Enter 3 to find the tine of a skie Enter 4 to display the list of skiers To exit enter any other nunber Skiers Leela Sarah Anna Keesha Heidi Enter the name of the skier to find their time Anna Anna tine is 1.85 Enter 1 to deternine the fastest skier Enter 2 to calculate the average tine Enter 3 to find the tine of a skier Enter 4 to display the list of skiers To exit enter any other nunber 4 Skiers and their tines Leela 2.03 Sarah 2.4 Anna 1.85 Keesha 1.90 Heidi 2.50 Enter 1 to deternine the fastest skier Enter 2 to calculate the average tine Enter 3 to find the tine of a skier Enter 4 to display the list of skiers To exit enter any other nunber Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!