Question: Please Help. Write a C++ program that will determine the car's theoretical lap time on any of the 57 laps of the race. You are
Please Help.
Write a C++ program that will determine the car's theoretical lap time on any of the 57 laps of the race. You are to use a class with all variables located in the private portion of the class.
A header (.H) file is required.
A formula 1 car in race trim can achieve a lap time of 1 min 29.28 seconds at the Bahrain Grand Prix as was done on Sunday, 8 April 2018 by Sebastian Vettel.
At the start of the race, the hybrid 6 cylinders based F1 race car has 100 kg of fuel.
For every 10kg of fuel the car uses, the lap time does down 0.20 second.
For every lap, the tires degrade and the lap time increases 0.05 sec per lap.
For the race on this circuit, the car will average 7.25 MPG(mile per gallon).
Key value:
1 gallon of fuel = 2.99 kg
Bahrain Grand Pix is 57 laps at 5.412 km/lap
Total race distance is 308.484 km
1 km = 0.621 miles
1 mile = 1.609 km
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
