Answered step by step
Verified Expert Solution
Link Copied!

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.
Use python. image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

03 Strategic planning process and implementation.

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago