Structures
Write the Program in C++ only.
Task: Create a seating reservation program for Podunk Airlines. The air fleet consists of a single plane with a seating capacity of 12. The plane makes one flight daily. Your program will maintain the reservation information for a single day.
Processing: Use a 12-element array of structures to store information about the 12-seat plane. The structures will include this information:
seat identification number (an integer from 1 to 12)
a Boolean variable that indicates whether or not the seat is currently assigned
the first name of the seat holder
the last name of the seat holder
The program should be user-friendly, providing a menu of these functions:
a). show the count of empty seats
b). show a list of all seats in numeric order, including assigned passenger names
c). show an alphabetical list of passengers and their seat numbers; don't include empty seats
d). assign a passenger to a seat
e). cancel a seat reservation
f). quit
After the completion of a menu task other than f, the program should clear the screen and redisplay the menu for the user. When searching for a name or when sorting names, note that passengers may have the same last name; however, we will assume for our program that two passengers don't have identical first and last names.
Input: Choice d in the menu will require the user to input the name of a passenger and a desired seat number. Choice e should permit the user to provide a passenger's name or a seat number.
Output: All output may be directed to the screen.