Answered step by step
Verified Expert Solution
Question
1 Approved Answer
General Lab Rule Each lab must have its own directory ( folder ) . For the first lab, the directory is lab 1 . For
General Lab Rule
Each lab must have its own directory folder For the first lab, the directory is lab For the second lab,
the directory is lab etc.
Objectives
Review Java, JUnit and Netbeans.
Write subclasses.
Use composition.
Use instance and static variables.
Duration: two weeks.
Flight Booking System
Implement a straightforward model of a flight booking system. In our model, we will have Flight
objects representing flights and passengers either a frequent flyer member or a nonmember who
want to book a flight for travel. If a seat is available on a given flight, then a ticket will be issued at a
price depending on whether the ticket is for a member or a nonmember. To develop this system, we
will need six classes.
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