Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed6. 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

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

=+j Describe an effective crisis management program.

Answered: 1 week ago