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

  Write a program that uses a structure to store

It should ask the user how many test scores there are to be and how many students there are in addition to any that have been read (if any).

  Calculate the modified value of the first character of input

To calculate the modified value of the first character of input we add its mapped value to the mapped value from the first character of the encryption string.

  Write a program that reads in a string of numbers

Write a program that: (1) Reads in a string of numbers (2) Loops through the digits in the string (3) For each digit in string print that many '+' on a line.

  Write a program to meet the specifications of company

Using Visual Studio® and C# programming concepts, write a program to meet the specifications of the company's request.

  Make a class constructor that initializes a customer

Make a class constructor that initializes a customer with a name, number, and order size.Make class member functions to print each of: name, number, and order size.

  Write a function to print the data of a student

Write a function to print names of all students who joined in a particular year. Write a function to print the data of a student whose roll number is given.

  Explain why c originally marketed by borland software

Explain why C++ originally marketed by Borland Software and now standardized by ISO is sometimes called "C with Classes" (fifty plus)

  Demonstrate entering appending storing and retrieving record

Demonstrate entering, appending, storing, and retrieving records. Be able to write lines of output to a text file in order to create a report.

  Write table_avg function to find the average of an array.

Write table_print function to print out a table of size. Print output on one line.table_print(array, size);

  Create program to input miles driven and gallons used

Create a program in C++ which will input miles driven and gallons used (both as integers) for each tankful. Program must compute and display the miles per gallon

  How much a person needs to pay for their service

Write a program that outputs how much a person needs to pay for their service. The program does not calculate the answer correctly and outputs all three packages even though only one package is inputed

  Take an n x n matrix, and create a new, (n-1) x (n- 1)

take an N x N matrix, and create a new, (N-1) x (N- 1), matrix with each element being the sum of four nearby elements. You need to figure out a way to break the matrix up into squares and iterate through the matrix, while staying within its bounds.

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