Reference no: EM132432083
Problem: The Mulberry Stock Car Drivers Association presents an annual award to the driver with the lowest average time in the Association's five major races.
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 the races.
Your program must repeatedly use nested loops to process an unknown number of stock car drivers who each compete in the five major races which qualify for the award:
-the user must enter the full name of each driver and enter the time (hours) for each of the driver's five races (prompt with driver's name); validate that times are greater than zero, and remove the highest of the five times (all averages are based on the lowest four times for a driver)
-calculate and display the average time for the driver (four lowest times)
-repeat the process or stop processing drivers
After all drivers are processed:
-display the driver's name and average time for the driver with the lowest average (i.e., the winner).
-display the overall average time for all races
Driver: Im So. Fast Times: 4.0. 6.5, 3.9, 7.3, 4.4
Driver: Bustin Out Times: 8.1, 4.0, 3.5, 5.0, 3.8
Driver: Miracle Magoo Times: 4.7, 5.3, 6.0, 4.1, 5.0