Develop a c program to provide information regarding a


Description:

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 skier's 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 skier's 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

6. Output must be labelled and easy to read as shown in the sample output below.

7. Program must be documented with the following:

a. // Name

b. // Date

c. // Program Name

d. // Description

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Develop a c program to provide information regarding a
Reference No:- TGS02264087

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)