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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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