Display the overall average time for the races

Assignment Help C/C++ Programming
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

Reference no: EM132432083

Questions Cloud

Methods with appropriate data input : Create a C++ program seperating the three files: (Book.h), (Book.cpp) and (main.cpp).The Class Book that of this should include the attributes for books
Discuss material participation is measured by trustee hours : Discuss whether "material participation" is measured by just the trustee's hours and activities or whether the hours and efforts of the trustee
Create value and gain competitive advantage : Evaluate the strategies your selected company uses to create value and gain competitive advantage.
Describe the social change : Describe the social change/movement, and how the social change impacted their society.How one of the new technologies may spur social change in your society.
Display the overall average time for the races : Select and display the winning driver, and calculate and display the overall average time for the races.
Determine the amount of the adjusting entry : Question - Providing for Doubtful Accounts. Determine the amount of the adjusting entry to provide for doubtful accounts
How legal case could impact specific organization : Evaluate key judicial concepts that influence the decisions related to business. Explain how a legal case could impact a specific organization.
Describe how the social worker in the case used a strengths : Create an eco-map to represent Claudia's situation. Describe how the ecological perspective of assessment influenced how the social worker interacted with Claud
Prepare the journal entries on the books of sunland ltd : Prepare the journal entries on the books of Sunland Ltd. to revalue the building on December 31, 2019 and December 31, 2021 using the asset adjustment method

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd