A program for Airline to manage domestic flights information.
Program Tasks Overview The program should enable the flights data manager to complete the following tasks:
- Add a new flight to the flights list.
- Find the information about a flight given its number.
- Print all the flights.
- Print all the flights having the same given date.
- Update the departure and arrival time of specific flight.
- Print the total number of flights.
Assumptions:
- All flights will depart from Riyadh (King Khalid Airport).
- When adding a new flight, the FlightNumber must be generated automatically using a specific formula before adding the flights to the system.
- Date, DepartureTime must be checked and validated before adding the flight.
- There is a counter for the number of flights, the TotalFlights will be incremented whenever a flight is added successfully.