Write a program that can be used to assign seats for a commercial airplane. The airplane has 13 rows, with six seats in each row. Rows 1 and 2 are first class. 3-7 are business rows. 8-13 are economy rows. The program should prompt the user to: A. Enter ticket type. (first class, business class, economy class.) B. Desired seat. Output the seating plan as follows: Row 1 = * * x * X X Row 2 = * X * X * X Row 3 = * * X X * X Row 4 = X * X * X X Row 5 = * X * X * * Row 6 = * X * * * X Row 7 = X * * * X X Row 8 = * X * X X * Row 9 = X * X X * X Row 10 = * X * X X X Row 11 = * * X * X * Row 12 = * * X X * X Row 13 = * * * * X * X = seat is taken *= seat is available.
Paper#66421 | Written in 18-Jul-2015Price : $32