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(assignedRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.