Question: using a 2 dimensional array Write a program that can be used to assign seats for a commercial airplane. The airplane has 1 3 rows,

using a 2 dimensional array
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,
3 to 13 are economy class.
Your program prompts the user to enter the following information:
a. Ticket type (first class, or economy class)
b. Desired seat
Output the seating plan in the following format:
A B C D E F
Row 1 X *****
Row 2******
Row 3***** X
Row 4******
Row 5******
Row 6******
Row 7******
Row 8* X ****
Row 9******
Row 10******
Row 11** X ***
Row 12******
Row 13******
Here, * indicates that the seat is available; X indicates that the seat has been
assigned. Make this a menu-driven program; show the users choices and
allow the user to make the appropriate choices.
do all necessary error checking

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!