跪求一个用c语言代码编写的飞机售票分配座位的系统
AIRLINE RESERVATION SYSTEM
A small airline company has just purchased a computer for its new automated ticket reservation system.
The company director has asked you to design the new system to assign seats for each trip of the 25-seater
airline, which covers the route from Kuala Lumpur to Langkawi and back daily. The business class of
the airline can accommodate 5 people and the economy class can accommodate 20 people. Assume the company
has only 2 airlines - each with a different Airline ID, which travels at two-hour intervals from 9 am to 5 pm daily.
SECTION A: BASIC REQUIREMENTS OF THE SYSTEM
1. Main Menu
Your initial program design should display the following menu alternatives:
AIRLINE RESERVATION SYSTEM
P – to Purchase Ticket
V – to View Seating Arrangement
Q – to Quit the system
2. Submenu
The following submenu will be displayed when P is selected:
PURCHASING MODULE
B – to purchase ticket for Business class
E – to purchase ticket for Economy class
M – to return to Main Menu
3. Assigning Seats
If the person types B, then your program should assign a seat in the business class (seats 1-5). If the person
types E, then your program should assign a seat in the economy class (seats 6 - 25).
4. Boarding Ticket
Your program should then print a boarding ticket indicating the person’s name, seat number, whether it is in
the business or economy class of the airline, date and time of departure, departure point and destination of
the flight and Airline ID.
可用到的c语言应用: Data type, functions , control structures, arrays, pointers, storage classes , structures and unions,files.