Can\'t get this program to run. Need it in scanf/printf and saved in C. Write a
ID: 3527378 • Letter: C
Question
Can't get this program to run. Need it in scanf/printf and saved in C. Write a program that can be used to assign seats for a commercial airplane. The airplane has 13 rows, with 6 seats in each row. Rows 1 and 2 are first class, rows 3 through 7 are business class, and rows 8 through 13 are economy class. You program will prompt the user to enter their ticket type, and then their userid (this will just be an arbitrary number picked by you). This will be implemented by using a two-dimensional array. Every element in the array will be initialized to zero. You will be able to tell if a seat is open if it has a value of 0. The program will then fill the seats from smallest to largest in the appropriate row per the ticket type. It will print to the user which seat they were given, or if all seats for that ticket type were full, it will print a message indicating all seats for that ticket type are full. If there is an open seat, the userExplanation / Answer
please rate .. question is very clumsy
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.