Description: Flight ticket refund system
Simulate a flight ticket refund system
Suppose a civil aviation airport has m flights, and each flight will only arrive at one destination. Try to design an automatic booking and refund system for the airport booking office.
The system has the following functions:
(1) booking tickets. More than if the voyage number greater than or equal to passengers booking, is in the voyage of the passenger list (connection) in alphabetical order according to the passenger name, insert the booking passenger information items, and modify the relevant data of the voyage, otherwise, given the corresponding message.
(2) refund. If the flight number is less than or equal to the number of passengers, then the passenger item is found in the passenger table of the voyage, and the relevant data of the voyage and passenger list are modified. When the ticket number of the passenger is zero, the passenger should be withdrawn from the passenger list. Otherwise, the corresponding prompt information is given.
(3) to resume the initial value of the number of votes of a certain voyage - the most popular vote of the voyage.
The system can also provide customers with other routes to the same destination when the customer booking requirements are not satisfied.
To Search:
File list (Check if you may need any files):