Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/commercial-airplane-java/
- 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. The first two rows are first class. The remaining rows are economy class. The first seven rows are nonsmoking. Your program must prompt the user to enter the following information:
- a. Ticket type (first class or economy class)
- b. For economy class, the smoking or nonsmoking section
- c. Desired Seat
- d. Output the seating plan in the following format:
- Here, the * indicates that the seat is available. The X’s indicate seats that have been assigned. Make this a menu-driven program. Show the user’s choices and allow the user to make the appropriate choices.
- Download: http://solutionzip.com/downloads/commercial-airplane-java/
Advertisement
Add Comment
Please, Sign In to add comment