Question: Write a C program that: - defines a structure time which includes hour (hh) and minute (mm) formatted as hh:mm. - defines a structure athlete

Write a C program that: - defines a structure time which includes hour (hh) and minute (mm) formatted as hh:mm. - defines a structure athlete which includes Item (Variable Name) Date Type Note Full Name (fullname) char (array) (more one word) max. 30 characters Country (country) char (array) (more one word) max. 20 characters Athlete ID (id) Time start (time_start) time (structure) time an athlete starts the competition Time finish (time_finish) time (structure) time an athlete finishes the competition int * average value in this case = (27+57+79)3 = 54.333 the closest integer but not greater than is 54 * in case N=100, 380 etc. the new number should be like 001,083 etc. Page 4/5 - defines a function (check_running_time) which receives an array of athlete. The function will print all the athletes who start earlier or finish later than the official running time (suppose that the started time is at 06:30 and the finished time is at 10:30). - develops a main program which creates a list of 20 athletes. The program should call the function defined above. Example output: Athlete 1: Full name: Jack Scottson Full name: Mark Mellish Country: Wales Country: Ireland Athlete ID: 841 Athlete ID: 175 Time start: 07:15 Time start: 06:32 Time finish: 10:48 Time finish: 10:07 Athlete 2: List of athletes start early or finish late compared with official time: Full name: Gary Lanzini Gary Lanzini Country: Italy Italy Athlete ID: 662 ID 662, start early 7 mins, finish late 15 mins Time start: 06:23 Time finish: 10:45 Jack Scottson Wales Athlete 30: ID 841, finish late 18 mins
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
