Professional Documents
Culture Documents
Circuit Race
Circuit Race
for two laps. The lap times are recorded in the 2D array
called "Check[]" and the car number plates are stored in the
dimensional array called "Plate[]".
-calculate and store the average times for each car.
-calculate and store the total lap time for each car.
-output the plate number and lap times of the Winner
-output the last checked in cars for the first lap
and the second lap
_______________________________________________________
Sample data structure:
_______________________________________________________
Pseudocode
Plate []
Check []
Average_Time [] #Array to store
the average times for every car
Total_Time [] #Array to store
the total times for every car
PRINT Plate
PRINT Average_Time
PRINT Total_Time
PRINT "The winner", winner, "won with lap 1 time of", winner_lap1_times, "and lap 2
time of", winner_lap2_times
PRINT " Last checked in for lap 1 is plate number:", last_checked_car1 ,"and check
time:",last_checked_time1
PRINT " Last checked in for lap 2 is plate number:", last_checked_car2 ,"and check
time:",last_checked_time2