Question: java program Follow all the instructions below, and make sure to include constructors, as well as getters and setters for all the attributes. Implement the
java program

Follow all the instructions below, and make sure to include constructors, as well as getters and setters for all the attributes.
Implement the interface Event. It declares two methods, getStart() and getEnd(), both returning a value of type Date
Write the implementation of the abstract class Trip. It implements the characteristics that are common to its sub-classes, here CarTrip and PlaneTrip
Trip implements the interface Event
All the trips have a start and end date, as well as a departure location and a destination. Their initial values are passed to the constructor.
Trip declares an abstract method called checklist, which checks whether all the conditions for a trip are satisfied. If they are, it returns true. Otherwise, it returns false
Implement the class CarTrip
CarTrip has a constructor which, in addition to the default parameters of Trip, also assigns values to isFull (indicates whether or not the gas tank is full), breaksChecked (true or false), and the number of passengers (an integer)
CarTrip implements the method checklist. It returns true if the gas tank is full, the breaks were checked, and the number of people traveling is 4 or less, which is the capacity of the car
Implement the class PlaneTrip
PlaneTrip has a constructor which, in addition to the default parameters of Trip, also assigns values to ticketIssued (true or false), passportValid (true or false), numberCheckedLuggage (an integer), and numberCarryOn (an integer).
PlaneTrip implements the method checklist. It returns true if the ticket was issued, the passport is valid, the number of checked items is two or less, and the number of carry-on items is one or less.
Implement the class Agenda. Similarly to Assignment #1 Question #2, Agenda uses a fixedsize array to store elements. Give all the necessary class and instance variables, as well as a constructor. For simplicity, herein, you will only implement one method, add
boolean add(Event e): adds an event to the agenda. Events are kept in increasing order of start time. The method returns true if the event was added to the collection, and false otherwise.
Car Trip Trip Plane Trip interface Event Agenda
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
