subject

A travel agency is looking to implement a flight reservation system to improve its productivity and services. You are being supplied with an existing backend JAR file. The JAR file contains the following packages: sait. frs. manager – Holds class responsible for managing flights and reservations.
sait. frs. problemdomain – Holds classes representing a flight and a reservation.
sait. frs. exception – Holds exceptions that are thrown when a problem occurs.
The existing JAR file is to be placed in the lib/ directory and imported into your project. The supplied data files are to be placed in the res/ directory. Your task is to create a functional event driven program. It will allow the user to do the following:
Find flights
Travel agent can find a flight by providing the origin airport, the destination airport, and a day of the week the flight is departing.
Make a reservation
The travel agent can make a flight reservation for a traveler. A reservation code will be generated and assigned to the traveler’s name and citizenship.
Find reservations
A travel agent can find existing flight reservations using the reservation code, airline, and traveler name. The criteria can match any combination of the three fields.
Modify a reservation
An existing flight reservation can be modified. The travelers name and citizenship can be updated.
An existing flight reservation can be soft-deleted, marking it as inactive and freeing up a seat on the flight.
Details
You are supplied with the Javadoc documentation of the implemented backend JAR file containing the manager, problem domain, and exception classes. You are required to use only the backend JAR file to access and manipulate the records in the database. All required functionality exists in the classes in the existing JAR file and can be used with your graphical user interface.
Upon the graphical user interface being launched the user can chose to either search flights and make a reservation or search for and modify a reservation.
Find Flights
The findFlights method receives as its input arguments: the originating airport, the destination airport, and the day of week. The method returns an ArrayList of any matching Flight objects. If no matches are found, the list control will be empty.
Make Reservation
When a travel agent selects a flight from the list, the text fields will be populated with the selected flight code, airline, day, time and cost. The travel agent will enter the traveler’s full name and citizenship. The flight code, airline, day, time and cost cannot be edited. An error message will be displayed if a reservation is to be made and no flight is selected, the name field is empty, or the citizenship field is empty.
The makeReservation method receives as its input arguments: a Flight object, the travelers name and citizenship. An exception is thrown if the flight is completely booked, or the flight is null, or the name is empty/null, or the citizenship is empty/null. If there are no exceptions thrown a Reservation object is created, saved to the binary file and returned by the method.
Find Reservations
A travel agent can search for an existing reservation that contains the specified reservation code, or airline or traveller’s full name. The list will be populated with any reservations that are found. Each row in the list displays the code of the corresponding reservation record.
The findReservation method receives as its input arguments: reservation code, airline and traveler’s full name. The method returns an ArrayList ofmatching Reservation objects. If no matches are found, the list control will be empty.
Update Reservation
When a reservation in the list is selected, the corresponding fields will be populated. These fields will display the:
Reservation code
Flight code
Airline name
Cost
Name
Citizenship
Status (Active or inactive)
The only fields that can be edited are the name, citizenship, and status. None of the other fields can be modified in any way by the user. After the travel agent has made any changes to the reservation, the update button will be clicked. The mutator methods in the Reservation object will be called and an error maybe displayed if an exception occurs. The persist method in the Manager class saves all Reservation and Flight objects to a binary file on the hard drive.
Notes
The Manager class generates the reservation code.
Each reservation is for one seat only.
The name and citizenship do not need to follow any specific format; however, they cannot be empty.
Each problem domain class overrides the toString() method.
Flight codes use the following format: (L meaning Letter, D meaning Digit)
LL- (I. e.: GA-1234)
Reservation codes use the following format: (L meaning Letter, D meaning Digit)
L (i. e.: I1234)
Times are in 24-hour format:
HH:MM
A reservation that is set to inactive is persisted and retained when the program opens again.
The user interface is to be designed using Swing.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
question
Computers and Technology, 24.06.2019 20:20
Write python code that prompts the user to enter his or her age and assigns the user’s input to an integer variable named age.
Answers: 1
You know the right answer?
A travel agency is looking to implement a flight reservation system to improve its productivity and...
Questions
question
Spanish, 26.02.2021 19:40
question
Mathematics, 26.02.2021 19:40
question
Mathematics, 26.02.2021 19:40
question
English, 26.02.2021 19:40
Questions on the website: 13722363