CAR RACE Tracker We have 2 car that we regularly race against each other-let call them car 1 and 2. Write a program to help us track both cars. FEATURE#1: enter a race result after each race, we will use this function to enter the time recorded in seconds. So the program should ask the amount it took for each car to finish the race. This inof must be kept In arrays. Smaller the time is the better performance of the car. If car 1 completed in 5 seconds and car2 in 3 seconds that means 2 won by 2 seconds FEATURE# 2: winner report using the race info. Feature 1 will provide a summary report that displays. How many races are in the system. How many times each car won. How many times there was a tie. For each car what is their best. If no race is in the system then display no race FEATURE 3: car report using the race info we entered through feature #1 this feature computes and displays the average for each car. No race shows no race FEATUREFO: exit SAMPLE PROGRAM CAR RACE analysis Enter race analysis Winner report Car report Exit Choice:1 Race result for car1:2 Race result for car2:4 Choice: 2 Car raced 6 time Car 1 won 2 times Car 2 won 1 times Race was tie 1 time Car 1 is fastest time 2 sec Car 2 is fastest time 1 sec Choice 3: Car 1 avg. time 4 sec Car 2 avg time: 5 sec Choiceo: exit

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
C++
CAR RACE Tracker
We have 2 car that we regularly race against each
other-let call them car 1 and 2. Write a program to
help us track both cars.
FEATURE#1: enter a race result after each race, we
will use this function to enter the time recorded in
seconds. So the program should ask the amount it
took for each car to finish the race. This inof must be
kept In arrays. Smaller the time is the better
performance of the car. If car 1 completed in 5
seconds and car2 in 3 seconds that means 2 won by 2
seconds
FEATURE# 2: winner report using the race info.
Feature 1 will provide a summary report that
displays.
How many races are in the system.
How many times each car won.
How many times there was a tie.
For each car what is their best.
If no race is in the system then display no race
FEATURE #3: car report using the race info we
entered through feature #1 this feature computes
and displays the average for each car.
No race shows no race
FEATURERO: exit
SAMPLE PROGRAM
CAR RACE analysis
Enter race analysis
Winner report
Car report
Exit
Choice:1
Race result for car1:2
Race result for car2:4
Choice: 2
Car raced 6 time
Car 1 won 2 times
Car 2 won 1 times
Race was tie 1 time
Car 1 is fastest time 2 sec
Car 2 is fastest time 1 sec
Choice 3:
Car 1 avg. time 4 sec
Car 2 avg time: 5 sec
Choiceo: exit
Transcribed Image Text:CAR RACE Tracker We have 2 car that we regularly race against each other-let call them car 1 and 2. Write a program to help us track both cars. FEATURE#1: enter a race result after each race, we will use this function to enter the time recorded in seconds. So the program should ask the amount it took for each car to finish the race. This inof must be kept In arrays. Smaller the time is the better performance of the car. If car 1 completed in 5 seconds and car2 in 3 seconds that means 2 won by 2 seconds FEATURE# 2: winner report using the race info. Feature 1 will provide a summary report that displays. How many races are in the system. How many times each car won. How many times there was a tie. For each car what is their best. If no race is in the system then display no race FEATURE #3: car report using the race info we entered through feature #1 this feature computes and displays the average for each car. No race shows no race FEATURERO: exit SAMPLE PROGRAM CAR RACE analysis Enter race analysis Winner report Car report Exit Choice:1 Race result for car1:2 Race result for car2:4 Choice: 2 Car raced 6 time Car 1 won 2 times Car 2 won 1 times Race was tie 1 time Car 1 is fastest time 2 sec Car 2 is fastest time 1 sec Choice 3: Car 1 avg. time 4 sec Car 2 avg time: 5 sec Choiceo: exit
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY