[Solved] Design a program that assigns seats on an airplane

$25

File Name: Design_a_program_that_assigns_seats_on_an_airplane.zip
File Size: 471 KB

SKU: [Solved] Design a program that assigns seats on an airplane Category: Tag:
5/5 - (1 vote)

AIRLINE SEATING:

Design and implement a program that assigns seats on an airplane. Assume the airplane has 20 seats in first class (5 rows of 4 seats each, separated by an aisle) and 180 seats in economy class ( 30 rows of 6 seats each, separated by an aisle). Your program should take three commands: add passengers, show seating and quit. When passengers are added, ask for the class (first or economy), the number of passenger traveling together (1 or 2 in first class; 1 to 3 in economy), and the seating preference (aisle or window in first class; aisle, center or window in economy). Then try to find a match and assign the seats. If no match exists, print a message.

Requirements:

Build a CRC card (Class Responsibility Collaboration)

Code by reading and writing text files

Throwing exceptions when necessary

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] Design a program that assigns seats on an airplane
$25