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

Write a program that can be used to assign seats for acommerical airplane. The a

ID: 3608031 • Letter: W

Question

Write a program that can be used to assign seats for acommerical airplane. The airplane has 13 rows, with 6 seats in eachrow. Rows 1 and 2 are first class, the remaining rows are economyclass. Rows 1 through 7 are nonsmoking. The program must prompt theuser to enter the following information:
. Ticket type (first class or economy class). For economy class, the smoking or nonsmoking section. Desired seat. Output the seating plan in the following format: . .................A   B   C      D   E   F Row1        *   *   X      *   X   X Row2        *   X   *      X   *   X Row3        *   *   X      X   *   X Row4        X   *   X      *   X   X Row5        *   X   *      X   *   * Row6        *   X   *      *   *   X Row7        X   *   *      *   X   X Row8        *   X   *      X   X   * Row9        X   *   X      X   *   X Row10      *   X   *      X   X   X Row11      *   *   X      *   X   * Row12      *   *   X      *   X   * Row13      *   *   *      *   X   *        . Here, * indicates that the seat isavailable; X indicates that the seat has beenassigned. Make this a menu-driven program; showthe user's choices and allow the user to make the appropriatechoices.                                 Write a program that can be used to assign seats for acommerical airplane. The airplane has 13 rows, with 6 seats in eachrow. Rows 1 and 2 are first class, the remaining rows are economyclass. Rows 1 through 7 are nonsmoking. The program must prompt theuser to enter the following information:
. Ticket type (first class or economy class). For economy class, the smoking or nonsmoking section. Desired seat. Output the seating plan in the following format: . .................A   B   C      D   E   F Row1        *   *   X      *   X   X Row2        *   X   *      X   *   X Row3        *   *   X      X   *   X Row4        X   *   X      *   X   X Row5        *   X   *      X   *   * Row6        *   X   *      *   *   X Row7        X   *   *      *   X   X Row8        *   X   *      X   X   * Row9        X   *   X      X   *   X Row10      *   X   *      X   X   X Row11      *   *   X      *   X   * Row12      *   *   X      *   X   * Row13      *   *   *      *   X   *        . Here, * indicates that the seat isavailable; X indicates that the seat has beenassigned. Make this a menu-driven program; showthe user's choices and allow the user to make the appropriatechoices.                                

Explanation / Answer

Write a program that can be used to assign seats for acommerical airplane. The a

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