Question: should be done in c++ using arays CAR RACE TRACKER We have 2 cars that we regularly race against each other- let's call 1E them
should be done in c++ using arays
CAR RACE TRACKER We have 2 cars that we regularly race against each other- let's call 1E them car 1 and car 2. Your job is to 2 write a program that will allow us to Ca keep track of the race results and Ex perform simple statistical analysis Cheice 2 Car Race Analysis 1- Enter Race Result 2- Winner Report Race Result for Car 1:2 Race Result for Car 2: 4 Feature #1 : Enter a Race Result 11-Emakains After each race, we will use this 2-W Reu function to enter the time recorded3-Cr en for each car during the race. So the -Extot program should ask the amount it Cho took for each car to race. This information must be kept Car ecorded Car Race Analysis 1-Enter Race Result 2- Winner Report 3-Car Report Cars raced 6 times in arrays. The time is entered in seconds. And smaller the time is better the performance of thecra Car 1 completed the race in 5 seconds and Car 2 completed the Choice: 1 Car 2 won 3 times Race was a tie 1 times. Car 1 fastest time 2 seconds. Car 2 fastest time 3 seconds Winner race in 3 seconds, that means Car 2 won by 2 seconds. Race Race Result for Car 26 Car Race Analysis 1-Enter Race Result 2- Winner Report 3- Car Report Feature #2: Winner Report Using the race information we entered through Feature #1. this feature will provide a summary report that displays: 1Enter Race Rsul 2- Winner Report Car 1 Avg. Time: 4.5 seconds. Car 2 Avg. Time: 5 seconds Car Report Car Race Analysis 1- Enter Race Resut 2- Winner Report 3- Car Report How many races areitRace Resut tor Car 2 4 Race Resut for Car 1:6 a) b) How many times each car Car Race Analysis 1-Enter Race Resu c) How many times there has2- Winner Repor been a tie? (cars finished at 3-Car Report the same time) end of program (0) d) For each car, what is their e Resutfor Car best (fastest) time? Make sure that your code is Make sure that your code is Assume array sizes of 100. If no race is in the system, this feature should display a message Car Race Analyss saying that no race is in the system. 1-Enter a Feature #3: Car Report Using the race information we entered through Feature #1., this enestret feature computes and displays the RaceRes average time for each car e Make sure that your code is . syntax error free. Make sure that you code If no race is in the system, this feature should display a message saying that no race is in the system Race Result for Car 15 Race Resut for Car 2 s
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
