Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Airline Reservations System A small airline has just purchased a computer for it

ID: 3618595 • Letter: A

Question

Airline Reservations System A small airline has just purchased a computer for its newautomated reservation system. The president has asked you toporgram the new system. You are to write a program to assign seatson each flight of the airlines' only plane (capacity: 10seats).    Your program should display the followingmenu of alternatives:        Please type 1 for "First Class"    Please type 2 for "Economy" If the person types 1, then your program should assign a seatin the first class section(seats 1-5). If the person types 2, thenyour program should assign a seat in the economy section(seats6-10). Your program should then print a boarding pass indicatingthe person's seat number and whether it is the first class oreconomy section of my plane. Use a single-subscripted array to represent the seating chartof the plane. Initialize all the elements of the array to 0 toindicate that all seats are empty. As each seat is assigned, setthe corresponding element of the array to 1 to indicate that theseat is no longer available. Your program should, of course, never assign a seat that hasalready been assigned. When that first class section is full, yourporgram should ask the person if it is acceptable to be placed inthe economy section(and vice versa). If yes, the make theappropriate seat assignment. If no, then print the message "Nextflight leaves in 3 hours." Airline Reservations System A small airline has just purchased a computer for its newautomated reservation system. The president has asked you toporgram the new system. You are to write a program to assign seatson each flight of the airlines' only plane (capacity: 10seats).    Your program should display the followingmenu of alternatives:        Please type 1 for "First Class"    Please type 2 for "Economy" If the person types 1, then your program should assign a seatin the first class section(seats 1-5). If the person types 2, thenyour program should assign a seat in the economy section(seats6-10). Your program should then print a boarding pass indicatingthe person's seat number and whether it is the first class oreconomy section of my plane. Use a single-subscripted array to represent the seating chartof the plane. Initialize all the elements of the array to 0 toindicate that all seats are empty. As each seat is assigned, setthe corresponding element of the array to 1 to indicate that theseat is no longer available. Your program should, of course, never assign a seat that hasalready been assigned. When that first class section is full, yourporgram should ask the person if it is acceptable to be placed inthe economy section(and vice versa). If yes, the make theappropriate seat assignment. If no, then print the message "Nextflight leaves in 3 hours."

Explanation / Answer

x.Hlor="red">please rate-thanks # include # include # include #include int main () { int Seats [ 10 ] = { 0 }; int first_class = 1; int Economy = 6; int Customer_Input; char YesNo; int i; while(first_class
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote