Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Develop a C++ program which uses nested loops to enter the appropriate data, calculate each driver's average time (hours), select and display the winning driver,

Develop a C++ program which uses nested loops to enter the appropriate data, calculate each driver's average time (hours), select and display the winning driver, and calculate and display the overall average time for theraces.

Your program mustrepeatedlyuse nested loops to process anunknown numberof stock car drivers who each compete in the five major races which qualify for the award :

1.the user must enter the full name of each driver andenter the time (hours) for each of the driver's five races (prompt with driver's name); validate that times are greater than zero, andremovethe highest of the five times (all averages are based on the lowest four times for a driver)

2.calculate and display the average time for the driver (four lowest times)

3.repeat the process or stop processing drivers

After all drivers are processed:

-display the driver's name and average time for the driver with thelowestaverage (i.e., the winner).

-display the overall average time for all races.

Use This Data for Your Screen Prints:

Driver:Im So. FastTimes:4.0. 6.5, 3.9, 7.3, 4.4

Driver:Bustin OutTimes:8.1, 4.0, 3.5, 5.0, 3.8

Driver:Miracle MagooTimes:4.7, 5.3, 6.0, 4.1, 5.0

I need help understand this assignment better.

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions