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.
About author
Related posts
Maria manages a bakery that specializes in ciabatta bread, ans she has the following information on the bakery’s demand and costs: Bread sold per hour... Continue reading
Please submit one to two paragraphs regarding what you obtained from this course and how you will apply these concepts to your nursing practice or... Continue reading
Within your final composition you will be addressing: Managed Health Care Quality – Address what the emerging managed healthcare delivery model Patient-Centered Medical Homes has... Continue reading
Section 1: Project Plan All previous documentation should be combined into one document that will serve as the statement of work for the project. Your... Continue reading
Identify regulatory agencies that regulate health and the health care system within the US, create a table listing your 5 regulatory agencies and address the... Continue reading
Leave a reply