OOP
BUS PBL
RESERVATION
SYSTEM
23R11A6702- Athang
Deshmukh 23R11A6703 - A.
Rohith Ryna 23R11A6727 - N.
Introduction
In many cities and regions, bus transportation is a primary mode of travel.
However, managing bus reservations manually or through in efficient systems can
lead to errors, overbookings, and user dissatisfaction. Therefore, a reliable and
efficient Bus Reservation System is needed to streamline the process of booking,
managing, and tracking reservations for bus services.
The goal of this system is to provide a user-friendly, automated solutionthat
allows passengers to view available buses, reserve seats, cancel reservations,
and track the status of bus routes in real-time.
Key Functional
Requirements
Bus Management:
->The system must allow the addition of multiple buses with details such as bus
number, route, total seats, and reserved seats.
->Display the list of buses with their respective details, including available and reserved
seats
Reservation System:
->Users should be able to reserve a seat on a bus, provided there are available seats.
->The system should prevent overbooking and ensure that a user cannot reserve more seats
than are available.
->A passenger should be able to cancel a reservation on a bus if needed.
Seat Availability:
->The system should allow users to check the current availability of seats on a particular bus.
->After a reservation is made, the system should update the bus's available seat count.
User Interaction:
->The system should provide a simple and intuitive interface for passengers to interact with
either via a text-based or graphical interface.
->The system should handle various user inputs, including seat reservations, cancellations,
and viewing bus details.
Error Handling:
->The system should handle invalid inputs and prevent actions like overbooking, invalid
bus numbers, or canceling non-existent reservations.
Existing System
The existing system requires more computational time, more
manual calculations, and the complexity involved in
Selectionof features is
high
The other disadvantages are lack of security of data, Deficiency ofData
accuracy, Time consuming etc.
To avoid all these limitations and make the working more
accurately the system needs to be computerized
Details
Management of Route:
This model include information about how we can Manage the routes for particular bus services so In the case
of Route management module we must know the details about route number,
number of stops, fare stages and running time of the particular bus more over we want to manipulate and
stored these information successfully.
Trip information:
Each journey is identified as a trip. Each ticket must contain the trip no so that calculation of passenger can be
done easily. Here in this section we want to know start time and route number
of the bus this information can be manipulate and stored successfully.
Bus Detail:
In this module all bus details are stored and manipulated, in bus detail module
contains minimum charge, type, depot, fare increment, bus number, and passenger’s
states (child or adult) are manipulate and stored
Bus Stops:
Bus stops module includes information about what are the main bus stops ofa particular
bus. This module connected to the route of the bus and it is used to store stop
number, stop name and fare stages and Route number.
Bus Ticketing:
Ticketing is the most important module in this Project which uses all the tables
together and calculates fare for the passengers. Venting the tickets is done using the
route number, bus type, beginning stop, end stop, ticketnumber, persons(Adult/child)rate,
date and time also we want to print the all these information. In order to do
the calculation data has to be pulled out from stops, bus, trip and route.
Number of passengers & the states are entered by the Venter and to
produce the tickets.
Conclusion
In conclusion, the bus reservation system implemented using Object-Oriented Programming (OOP) in
Java effectively demonstrates how key OOP principles like encapsulation, modularity, and
abstraction can be applied to create a functional and organized solution. By organizing the system
into distinct classes such as Bus, Reservation System, and Bus Reservation App, each responsible for
specific tasks, the code remains clean, maintainable, and easily extendable. Encapsulation ensures
that internal data, such as the number of seats and reserved seats, is protected, while providing
controlled access through getters and setters. The system allows users to view bus details, reserve
seats, and cancel reservations via a simple text-based interface, making it user-friendly and
interactive. The modular design also ensures that the system can be easily extended with additional
features, such as persistent storage for data or a graphical user interface (GUI), to improve user
experience and scalability.
Overall, this system serves as a solid foundation for building more complex reservation
systems, demonstrating the power and flexibility of OOP concepts in real-world applications.
Thank You