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, 21.06.2019 22:00
Signal sets company contracts to deliver one hundred 52-inch plasma high-definition television sets to a new retail customer, tuner tv store, on may 1, with payment to be made on delivery. signal tenders delivery in its own truck. tuner's manager notices that some of the cartons have scrape marks. tuner's owner phones signal's office and asks whether the sets might have been damaged as they were being loaded. signal assures tuner that the sets are in perfect condition. tuner tenders signal a check, which signal refuses, claiming that the first delivery to new customers is always for cash. tuner promises to pay the cash within two days. signal leaves the sets with tuner, which stores them in its warehouse pending its "grand opening sale" on may 15. two days later, tuner's stocker opens some of the cartons and discovers that a number of the sets are damaged beyond ordinary repair. signal claims tuner has accepted the sets and is in breach by not paying on delivery. will signal succeed on these claims? explain.
Answers: 1
question
Computers and Technology, 22.06.2019 13:50
The instruction ishl (shift left integer) exists in jvm but not in ijvm. it uses the top two values on the stack, replacing the two with a single value, the result. the sec- ond-from-top word of the stack is the operand to be shifted. its content is shifted left by a value between 0 and 31, inclusive, depending on the value of the 5 least signifi- cant bits of the top word on the stack (the other 27 bits of the top word are ignored). zeros are shifted in from the right for as many bits as the shift count. the opcode for ishl is 120 (0x78).a. what is the arithmetic operation equivalent to shifting left with a count of 2? b. extend the microcode to include this instruction as a part of ijv.
Answers: 1
question
Computers and Technology, 23.06.2019 03:50
Iam a bacterium. i cause stomach cramps and diarrhea. i am caused by eating rotten foodssuch as chicken, fish, or eggs. sometimes turtles carry my bacteria.what am i?
Answers: 2
question
Computers and Technology, 23.06.2019 07:00
Why is investing in a mutual fund less risky than investing in a particular company's stock? a. mutual funds only invest in blue-chip stocks. b. investments in mutual funds are more liquid. c. mutual funds hold a diversified portfolio of stocks. d. investments in mutual funds offer a higher rate of return.
Answers: 2
You know the right answer?
A travel agency is looking to implement a flight reservation system to improve its productivity and...
Questions
question
Physics, 04.10.2019 17:50
question
English, 04.10.2019 17:50
question
Mathematics, 04.10.2019 17:50
Questions on the website: 13722362