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

An airline has just purchased a computer for itsnew automated reservation system

ID: 3608822 • Letter: A

Question

An airline has just purchased a computer for itsnew automated reservation system. You are required toprogram

the new system in C. you have to assign seats oneach flight of the airline’s only plane (capacity = 20seats)

Your program should display the menu offollowing alternatives.

Please type 1 for“Smoking”

Please type 2 for “Non-smoking”

If person types 1, the seats from1-10 should be assigned. Otherwise seats from11-20 should be assigned. The program

should then display the boarding pass withperson’s seat number and whether it is smoking ornon-smoking.

Use single subscripted array. If all the seats are full printthe message “Next flight leaves in 3hours”

Explanation / Answer

please rate - thanks #include #include int main () { int Seats [ 10 ] = { 0 }; int Smoking = 0; int Nonsmoking= 10; int Input,assigned=0; while(assigned
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