Question
C Programming Write a reservation system for an airline flight. Assume the airplane has 1 row with 20 seats in the row. Use a linked
C Programming
Write a reservation system for an airline flight.
Assume the airplane has 1 row with 20 seats in the row. Use a linked list to maintain a seating chart.
1. Allow the user to choose from three options.
a. Add a passenger to the seat.
b. Request the passengers name list. Hint : Displaying all names in the list
c. If seats are available let the passenger choose a seat. Add the passenger to the seating chart.
d. If no seats are available, display message no seat available.
e. Remove a passenger from the list
2. The program should retain the list when it close (hint: use files to save list after each operation, and reload the list when the program start)
3. Passenger Record
a. Name
b. Seat number
c. Destination
d. Age
Please write in C
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started