Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Create a program that executes the following. Use expection to handle an airplane full situation.
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 Use python.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started