Structure data type Program in C

Structure data type Program in C
Structure data type Program in C

Define a structure data type TRAIN_INFO. The type contain Train No.: integer type Train name: string Departure Time: aggregate type TIME Arrival Time: aggregate type TIME Start station: string End station: string The structure type Time contains two integer members: hour and minute. Maintain a train timetable and implement the following operations:

(i) List all the trains (sorted according to train number) that depart from a particular section.

(ii) List all the trains that depart from a particular station at a particular time.

(iii) List all he trains that depart from a particular station within the next one hour of a given time.

(iv) List all the trains between a pair of start station and end station.

b. tech. c language tutorial learn c language study c language