Write a program that will help the club determine the winner

Assignment Help Programming Languages
Reference no: EM131310171

Assignment

The CSIT Racing Club is a group that runs amateur car racing events throughout the US. In This project, write a program that will help the club determine the winner of their Fall Rally Race. You will need to determine each racer's average time and identify the first place finisher. An input file with race information contains records of all the laps run by each driver. The record for each driver includes the number of the car the driver races and times for each of 8 laps run during the race. For the record of each driver, your program should determine the average lap time based on the following rules:

a. Each driver's slowest two lap times are discarded before the average is calculated

b. Any driver that has a lap time that is recorded as a negative number means that the driver incurred a penalty and is disqualified from the race (so no average needs to be calculated). Your program also needs to determine the numbers of qualified and disqualified drivers.

The program has to ask the user for the input file name first, and then read the data into your program. After that, calculate the average lap time. Furthermore, the program has to decide the first place finisher. If two or more drivers have the exact same best record, you have to display all of them as the first place finishers. In this program, you can assume that the total number of drivers entered into the race will not be greater than 30

Design and Implementation

You must develop your program with the following two functions or more.

1. A function to read a data file and calculate the average lap times: This function should prompt the user a data file name and read the data. Then it calculates the average lap time for each driver.

2. A function to print the race result and determine the top finisher. For this project, you may need several arrays to store the ids of drivers and results. Additionally, it may need to pass the arrays between functions.

Reference no: EM131310171

Questions Cloud

What are the values of doing formal evaluation : The issue of binding assurance requirements to functional requirements versus treating them as mutually exclusive sets has been debated over the years. Which approach do you think is preferable, and why?
What are the legal challenges involved : Of the three options that Obama's executive order is intended to provoke, which do you think businesses are most likely to choose and why? Are there any other options? If so, what are they and what are the legal challenges involved
Can hdm and gypsy be used interchangeably : Contrast the goals of the Gypsy Verification Environment with those of HDM. In particular, when is using HDM appropriate, and when is using Gypsy appropriate? Can HDM and Gypsy be used interchangeably?
Organization influence decision making and the outcome : 1. How does the financial aspect of an organization influence decision making and the outcome? 2. What are the advantages and disadvantages of a firm's use of power purchasing parity? Provide an example.
Write a program that will help the club determine the winner : The CSIT Racing Club is a group that runs amateur car racing events throughout the US. In This project, write a program that will help the club determine the winner of their Fall Rally Race.
Operating motive for merger and consolidation : The Prad Corporation is considering a merger with the Stone Company which has 500,000 outstanding shares selling for $30. An investment banker has advised that to succeed in its merger Prad Corp. would have to offer $45 per share for Stone's stock. W..
Determine the value of salary surveys to an organization : Describe the compensation philosophy of Maersk and how the market influences this philosophy. Determine the value of salary surveys to an organization
Describe e-learning as a training method : Describe e-learning as a training method.Describe the potential barriers of e-learning readiness. Analyze how e-learning readiness has affected your success at Ashford University. Explain what a trainer can do to prepare learners for e-learning.
Name two other axes that would be of interest to an analyst : In the NRL classification scheme for the "time of introduction" axis, must the development phase precede the maintenance and operation phases, and must the maintenance phase precede the operation phase? Justify your answer.

Reviews

Write a Review

Programming Languages Questions & Answers

  Define console programming and gui programming

Define Console Programming and GUI Programming

  Design program which uses array of shape

Design a program which uses the array of Shape references to objects of each concrete class in hierarchy. The program must print text description of object to which each array element refers.

  Write console application that displays the sizes

Create a file that contains your favorite movie quote.  Use a text editor such as Notepad and save the file as Quote.txt.  Copy the file contents and paste them into a word-processing program such as Word.

  Hierarchy of processes

Write a program that creates a hierarchy of processes using the fork() system call.

  Write program to calculate and output tuition

Write a C++ program to calculate and output tuition. Prompt user for number of credits taken and type of classes ('U' for undergraduate - $380 per credit hour, or 'G' for graduate.

  Create a program that allows stores data

Create a program that allows stores data about an entity in a record in your program, and then echo this back to the terminal - Effectively organising your data makes programs much easier to develop.

  Enter codes of one to eight characters along

Consider a program to enter codes of one to eight characters along with an associated telephone number and associated notes. A code can represent a person's name, a person's initials, a place, or anything.

  Does the string variable name point of sale is a valid name

Does the string variable name Point of Sale is a valid name? Based on the SkillSoft® reading, "C# and the CLR," how does C# fit into the .NET framework

  Write a single line for body of constructor to create object

Create the constructor Orb(int xSpeed, int ySpeed). Write a single line for the body of the constructor,which creates a new Velocity object.

  Javascript function for cookie added to user-s computer

JavaScript function has verified that all the required fields have been filled, cookie is added to user's computer. If same user attempts to fill out form second time.

  Create mock level design for game

Write a 5-page "mock level design" in which you design a level for a game. The game is a shooter, the level is an old warehouse filled with zombies and demons with a boss at the end.

  Create design of very simple racing game

Create a very simple racing game of your own design. Making a game from the ground up is a lot of effort, so let's keep things basic.

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