Nested loops to enter the appropriate data

Assignment Help C/C++ Programming
Reference no: EM132432073

Create 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.

Use This Data for Your Screen Prints:

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

What would be the variables? and how can repeat or stop the processing the drivers ? I need help with this assignment.

Reference no: EM132432073

Questions Cloud

Implement a function void print song : Implement a function void print_song(int n) which takes in an integer n (1
What is the corrected cash balance : The bank statement listed service charges of $45 and NSF check charges of $105. What is the corrected cash balance
Discuss the ratification process of the constitution : Discuss the ratification process of the Constitution of 1787. How did ratification lead to the formation of America's first two political parties.
Discuss the process of qualifying as an expert witness : Question - If you were considering becoming an expert witness, discuss the process of qualifying as an expert witness
Nested loops to enter the appropriate data : Create 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
Calculate and display the overall average time for 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
determine the cost that should be assigned to Alpha : Material costs for the month of October were $27,000. Determine the cost that should be assigned to Alpha' work in process inventory at the end of October 2017
How internet has impacted society : Write an essay on the:- How internet has impacted society
Case pertaining to the topic of intellectual property : Summarize the facts and ruling of a legal case. Analyze how a legal case could impact businesses. Explain how a legal case could impact a specific organization.

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