Question: Java program You need to write a program for Airline to manage domestic flights infomation. The program should enable the flights data manager to complete
You need to write a program for Airline to manage domestic flights infomation. 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. All flights will depart from Riyadh (King Khalid Aimort) 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 yalidated before adding the flight. There is a counter for the number of flights, the TotalFlights will be incremented whenever a flight is added successfully. For your project, you must implement and use two classes: L. Class Flight: A Flight class is identified by: flightNumber: the fight number. destination: arriving city. There is a list of 7 cities to choose the destination, which are dammam, jeddah, yanbu, hail, abha, tabuk, taif gate: the gate number for boarding the plane date: the flight date in the format (dd/mm departure Time: the departure time in the format (hh:mm) and 24-hours system arivalTime: the arrival time to the destination in the fomat (hh:mm) and 24-hours system totalFlights: the total number of flights in the system
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
