Question: I need help ASAP I need it to be done in C code!! thank you :) a) A data logger records lap times of a

I need help ASAP I need it to be done in C code!! thank you :)

I need help ASAP I need it to be done in C

a) A data logger records lap times of a F1 cars in a race. The data is stored in a file called log.txt. Write a C program that; Create the log file using with appropriate values using the following structure template and a random number generator rand () for the lap time for 5 cars having 1 qualifying lap each. struct lap{ int car no; char team[15]; float lap_time; }; //Ferrari, Benetton, McLaren etc Verify that the program has worked by outputting all the data to the screen by using the following function prototype: void print_f1_data (struct lap lp[], int n); Have the program search for the fastest lap and print the time and the car details onto the screen using a function based on the following prototype: void pole (struct lap lp[], int n); Include any assumptions made in the program comments

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!