The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
(Airplane Seating Assignment) I need help writing 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, rows 3 through 7 are business class, and rows 8 through 13 are economy class. Your program must prompt the user to enter the following information: a.Ticket type (first class, business class, or economy class) b.Desired seat Output the seating plan in the following form:
     ABCDEF
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 * X
Row13 * * * * X *
Here, * indicates that the seat is available; X indicates that the seat is occupied. Make this a menu-driven program; show the user’s choices and allow the user to make the appropriate choices.