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

This is NOT a standard airplane problem that you see on the net all the time. Th

ID: 3646431 • Letter: T

Question

This is NOT a standard airplane problem that you see on the net all the time. This should be easier, but our teacher prides herself on making our homework assignments extremely hard. Any help will be greatly appreciated, and if you have time, I would LOVE an explanation! Its a lot to ask I know, but being an accelerated program, it is too much and to hard to complete in her ridiculous time frame of 24 hours!


Write a program that can be used to maintain the assigned 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 information about themselves. They will enter their first name, last name, and phone number. This information should be stored in a structure.

This will be implemented by using a two-dimensional array of your structure type. 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 user

Explanation / Answer

//header declaration #include #include using namespace std; //function declaration int main() { int i, j; char seat resvr; char ticket type; char availability [13][6], reserved[2]; int row_num, col_num; char seats; cout
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