Question: i want this solution in c++ (data structures) Consider the following declarations or air airport might control enum Flight Type {Departure, Arrival}; struct TimeRec {

i want this solution in c++ (data structures)

i want this solution in c++ (data structures) Consider the following declarations

Consider the following declarations or air airport might control enum Flight Type {Departure, Arrival}; struct TimeRec { int hour; // 0 to 23 int min; 110 to 59 int sec; // 0 to 59 }; struct FlightRec { string FlightNO; string Destination; TimeRec Time; Flight Type Ftype; bool Delay; TimeRec ExpectedTime; // if the flight is delayed }; template struct Node { T entry; Node *next; // constructors }; template class List private: Node *head; }; Declare in your program a list of FlightRec as: List flights; Write a program to display the flights of the day. All data should be stored in a text file. Your program should do the following operations. (a) Allow the user to enter the current time. (b) Read the flights from a file. (c) Write the flights in the file. (d) Allow the user to enter a new flight. (e) Allow the user to delete (cancel) a flight - by entering the FlightNo. (1) Allow the user to modify the Time of a flight. (6) Allow the user to enter Delay in a flight. (h) Display all flights. (0) Display departures flights that they have not departure yet. (1) Display arrival flights that they have not arrived yet. (k) Sort flights by FlightNo. (0) Sort flights by Time

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!