Professional Documents
Culture Documents
AU22B1041 Course Project OOPs
AU22B1041 Course Project OOPs
Programming
Course Project
Shaurya Mishra
AU22B1041
Content
What is Bus Reservation System?
Features of Bus Reservation System Project in C++
Modules of Bus Reservation System
Working of Project
Create Bus Record
Display Bus record
Search specific Bus
Reserve Ticket in Bus
Modify/Update Bus Record
Delete Bus Record
Exit
1. What is Bus Reservation System?
As the name suggests Bus Reservation System is software that handles the entire
booking data of the Bus.
It is fully based on the concept of reserving bus tickets for various destinations.
Previously the task of handling the tickets at a time was very difficult, so there was
a need for software that can handle all Bus Reservation systems that was made
many time ago.
But I have made this as my course project and showcase my learning from the
course.
2. Features of Bus Reservation System Project in C++
There are no admin rights given, anyone can handle this project.
In this project anyone can add buses and do the reservation.
The passenger can book the bus only if bus is available.
Passengers will be able to check the availability of seats of particular bus, whether seats are
reserved or not.
3. Modules of Bus Reservation System
Inheritance
The BusReservationSystem class demonstrates
inheritance by inheriting attributes and methods
from other class l Bus. This allows the
BusReservationSystem class to access and reuse
the functionalities provided by these base
classes, promoting code reuse.
CONCEPTS OF OOPS USED IN THE
PROJECT
Abstraction
This class abstracts the functionality related
to the bus reservation system, such as
creating, reading, updating, and deleting bus
records.
The member functions of the
BusReservationSystem class abstract the
operations on bus records, providing an
interface to work with the system.
CONCEPTS OF OOPS USED IN THE
PROJECT
Encapsulation
The Bus class encapsulates data members
(private attributes) and member functions
(methods) related to bus information.
CONCEPTS OF OOPS USED IN THE
PROJECT
Polymorphism
The << operator is overloaded using
a friend function to allow the Bus
class objects to be displayed using
the << operator. This demonstrates
polymorphism.
Working of Project
Main Screen:
When you run the project from any compiler or directly
clicking on the executable .exe file you’ll see the following
screen shown in the picture.
Add Bus:
By choosing this menu option you’ll be able to add the bus
which is going to depart from the particular location. To
add a new one you have to choose the menu as 1. After
choosing the first menu software ask you to enter some
details of the bus which are:
Working of Project
View all Buses:
By choosing menu option 3 you’ll be able to see all buses.
All the details will come on terminal through fill handling.
Exit:
By choosing the 6th option the bus reservation system
project in c++ will be closed.
File Handling