Consider the following declarations of an airport flight control:
enum FlightType {Departure, Arrival};
struct TimeRec {
int hour; // 0 to 23
int min; // 0 to 59
int sec; // 0 to 59
};
struct FlightRec {
char FlightNO[10];
char Destination[30];
TimeRec Time;
FlightType Ftype;
bool Delay;
TimeRec ExpectedTime; // if the flight is delayed
};
struct Node {
FlightRec entry;
Node *next;
. . . // constructors
};
class List {
. . .
private:
Node *head;
};
Write a program to display the flights of the day. 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.
(f) Allow the user to modify the Time of a flight.
(g) Allow the user to enter Delay in a flight.
(h) Display all flights.
(i) Display departures flights that they have not departure yet.
(j) Display arrival flights that they have not arrived yet.
(k) Sort flights by FlightNO.
(l) Sort flights by Time.
You must hand in:
(a) The printout of your program in a well-presented form with COMMENTS.
(b) A USB/CD with your program and the executable file of it.
Example:
DEPARTURES
FLIGHT NO DESTINATION TIME DELAYED EXPECTED-TIME
BA221 LONDON 06:00
CY333 LONDON 09:20
OA234 ATHENS 12:00 DELAYED 13:15
ARRIVALS
FLIGHT NO DESTINATION TIME DELAYED EXPECTED-TIME
CY332 LONDON 02:16
BA222 LONDON 02:45 DELAY 04:30
IT312 ROME 05:00
CY231 ATHENS 05:20
Hi, I am a professional C++ software developer with more than 5 years of expirience. I did similar small projects durring my university time. I am used to produce high quality software and hope to get this project!