Question: Create a program that executes the following. Use expection to handle an airplane full situation. Use python. The United Airlines has multiple airplanes that fly
The United Airlines has multiple airplanes that fly between Greensboro and N December 6 there are two airplanes. One will departure at 7:00 AM and the other will departure at 2:00 PM. E with it. The reservation system must satisfy the following requirements: ewark every day. On ach airplane has 20 seats that are all economic class. Each seat has a number associated 1. A constructor sets the date, time and number of seats. 2. A method airplaneFull to check if there are any seats available 3. A person purchases an airplane ticket via purchaseTicket method. 4. If a customer tries to buy a ticket but the all tickets were sold an allTicketSold exception will occur. The corresponding exception handler must display tickets sold out information that must include date and time. 5. If a customer bought a ticket the date, time and seat number should be displayed 6. If a customer returned a ticket the seat will become available
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
