In Java, Design and implement an airplane ticket reservation system for Delta Airlines. The Delta Airlines has
Question:
In Java, Design and implement an airplane ticket reservation system for Delta Airlines. The Delta Airlines has two airplanes that fly between Greensboro and Washington DC every day. Flight 001 departures from Greensboro at 6:00 AM and arrives Washington DC at 7:00 AM. Flight 200 departures from Washington DC at 5:30 PM and arrives Greensboro at 6:30PM. Each airplane provides two types of airplane tickets. Economy class allows a passenger to select a window or aisle seat. Business class allows a passenger to select a window or an aisle seat, and select a snack. The snack can be cookies or peanuts. The price of an Economic class ticket is $300. The price of a Business class ticket is 50% more than the price of an economic class ticket. This system should allow an agent to input a customer name, starting city and destination, flight number, class selected, departure date and time. It will display all information on the screen. Use single inheritance to implement this system.
1) A GUI interface should be developed to allow an agent to input required information.
2) A constructor sets the number of seats.
3) A person reserves a ticket via ReserveTicket method. This method returns related seat information. If a customer tries to reserve a seat but all seats are sold out an error message should be displayed.
4) If a customer reserved a seat the person's name, departure date, flight number and total charge should be displayed.
5) Using single inheritance to implement the system.
Business Ethics A Stakeholder And Issues Management Approach
ISBN: 9781523091546
7th Edition
Authors: Joseph W. Weiss