Travel Booking System

develop a booking system for a travel company. The system should meet the following
requirements. The system should allow,
1. adding, updating, deleting customers in the system
2. adding, updating and deleting newly registered flights and hotels
3. Book a flight/hotel room:
a. System should receive customer ID then print all the details of the customer (either
citizen or company)
b. In case of flight, the system should receive the take off and landing destinations and
flight date, look for a flight of these details. If flight is found, check if the capacity isn’t
full yet. If not, create an operation object with all the details and increment the
number of booked seats by one. Add the new operation object to the arraylist of
operations.
c. In case of a hotel room, the user should enter the hotel name and booking date, the
system should check the hotel is fully booked. If not, create an operation object with all
the details, increment the number of booked rooms by one then add the operation
object to the arraylist of operations.
4. Cancel bookings:
a. System should receive customer ID then print all the details of the customer (either
citizen or company)
b. In case of flight, the system should receive the flight number and flight date, look for
the operation that has that flight in the operations arraylist, when found delete it from the
list and decrement of the number of booked seats of that flight by one everywhere.
c. In case of a hotel room, the user should enter the hotel name and booking date, the
system should look for that hotel in the operations arraylist, when found delete it from the
list and decrement of the number

This question has been answered.

Get Answer