Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Work on this in the following order: Flight, Aircraft, Reservation, FlightManager, FlightReservationSystem, LongHaulFlight, Passenger. And then the exception handling in FlightManager and FlightReservationSystem as described
Work on this in the following order:
Flight, Aircraft, Reservation, FlightManager, FlightReservationSystem, LongHaulFlight, Passenger.
And then the exception handling in FlightManager and FlightReservationSystem as described below :)
Aircraft.java
Flight.java
FlightManager.java
FlightReservationSystem.java
LongHaulFlight.java
Reservation.java
Very important things to keep in mind:
Please make sure to avoid insufficient comments or bad program structure or bad use of inheritance and interfaces
Expected Outputs:
Aircraft: class Aircraft models an aircraft type (e.g. Boeing 747) and contains information about the model name, the maximum number of economy seats and the maximum number of first class seats (most often this is 0). Most of the code for this class is already written for you. You are to make class Aircraft implement the Comparable interface see the skeleton code for comments.
Step by Step Solution
★★★★★
3.30 Rating (153 Votes )
There are 3 Steps involved in it
Step: 1
FlightManagerjava import javautilArrayList import javautilCollections import javautilComparator import javautilRandom import javautilScanner public class FlightManager ArrayList flightsnew ArrayList S...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