Bus Management System Project (Repaired)
Bus Management System Project (Repaired)
Semester : Third
……………………………………………………………
Sr. No. Roll No. Name of Student Enrollment No. Seat No.
1. 064 Sanket Sanjay Patil 2200180537
2. 069 Pranav Suryakant Pawar 2200180545
3. 072 Akshay Madhukar Saitwal 2200180549
4 079 Shubham Girish Kulkarni 2200180560
5. 082 Aditya Sanjay Sonawane 2200180556
This is to that Roll No 064, 069, 072, 079, 082 of 3rd Semester of Diploma in
Computer Engineering of Institute, Government Polytechnic, Jalgaon (Code:
0018/1567) has Completed the Micro Project satisfactorily in the Subject – Object
Oriented Programming Using C++ (22316) for the Academic Year 2023-24 as
prescribes in the curriculum.
Seal Of
Institution
GOVERNMENT POLYTECHNIC, JALGAON
-SUBMISSION-
Roll No. 064, 069, 072, 079, 082 Seat No as a student of 3rd Sem/Year
2022-23 of the program humbly submit that I have completed from time to time
the Practical/Micro Project work as described in this report by my own skills and
study between the period from …….to……. as per the instructions/guidance of
Prof. Vinaya Savadekar.
And that following students were associated with me for this work,
however; quantum of my contribution has been approved by the Lecturer.
And that I have not copied the report on its any appreciable part from any
other literature in contravention of the academic ethics.
Semester : ………………..
…………………………………………………………………………………………………
Roll Name Of Student Marks out of 6 for Marks out of 4 Total out of
No. Performance in group for 10
activity performanceOra
l./presentation
Sr No. Title
2 Information
3 History
4 Some Question
6 Conclusion References:
❖ Aims:
1. Efficient Operations
2. Automated Processes
3. Enhanced Customer Experience
4. Resource
5. Data-Driven Decision Making
❖ Objectives:
1) Real-time Bus Tracking
2) Online Ticketing
3) Route Optimization
4) Maintenance Tracking
5) Driver Management
6) Integration with Payment Systems
Bus Management System Project
❖ Information
A bus is a large wheeled vehicle meant to carry many passengers along with the bus driver. It is
larger than a car or van. The name is a shortened version of omnibus, which means "for
everyone" in Latin. Buses used to be called omnibuses, but people now simply call them "buses".
Buses are an important part of public transport in places all over the world. Many people who do
not have cars, especially the third world countries, use buses to get around. Buses make it easy
for them to get to where they want to go.
Buses can have many types of bus. For example : The double Decker bus.
A place where people wait for a local bus is called a bus stop. A building where people wait for a
long-distance bus or where many buses meet is called a bus station.
❖ History
The first bus was probably a large, steam-driven stagecoach that operated in England in 1830.
The early vehicle was called an omnibus, a Latin word meaning “for all,” later abbreviated to
bus. In 1895 an eight-passenger bus powered by a four- to six-horsepower, single-cylinder
engine was built in Germany.
EVOLUTION OF BUSES
❖ Some Question
Bus Management System is an integrated electronic management system. This system can make
the management process easier. This method system will also help in decreasing error mostly
cause by human mistake.
• Before and after the bus management system?
bus management systems have revolutionized the way bus transportation services are planned,
operated, and experienced. They have led to increased efficiency, better customer service, and
more data-driven decision-making in the field of public and private bus transportation.
6.
• Hardware Components:
1. GPS Tracking Devices
2. Sensors and Data Collectors
3. Communication Infrastructure
• Software Components:
1. Centralized Management Software
2. Passenger-Facing Apps
3. Driver Interfaces
4. Analytics and Reporting Tools
• Key Functions and Workflow:
1. Route Planning and Optimization
2. Real-time Trackin
3. Schedule Management
4. Communication
5. Passenger Information
6. Maintenance Management
7. Data Analysis
Data store of bus management system by C++ algorithm, flowchart, and code. Here is the
information of how the code is made.
1. #include <iostream>
1. The "#include <iostream>" directive is a fundamental component in C++ programming
that enables input and output operations.
2. It is part of the C++ Standard Library and facilitates communication between a program
and the user through the standard input and output streams.
3. Here's a basic example of how "#include <iostream>" is used in a C++ program:
#include <iostream>
int main()
{int num;
std::cout << "Enter a number: ";
std::cin >> num;
std::cout << "You entered: " << num << std::endl;
return 0;
}
2. using namespace std;
1. The statement "using namespace std;" is a common directive found in C++ programs that
simplifies the usage of elements from the Standard Library.
2. In C++, the Standard Library (std) is a collection of pre-defined classes, functions, and
objects that provide a wide range of functionality, such as input/output operations, data
structures, algorithms, and more.
3. This directive allows programmers to access these elements without having to explicitly
specify the "std::" namespace prefix every time, thereby enhancing code readability and
reducing typing effort.
3. class
A class is a user-defined data type that encapsulates data and functions that operate on that
data. It serves as a template for creating objects, combining data (attributes) and functions
(methods) that define the object's behavior.
in classes the Attributes represent the characteristics or properties of an object, while
methods represent the actions or operations that an object can perform.
4. cout
1. The cout (pronounced "see-out") is a fundamental output stream in the C++ programming
language used for sending data to the standard output (usually the console).
2. It is part of the C++ Standard Library's iostream header, and it facilitates the display of
information to the user or other external destinations.
Example of cout
#include <iostream>
int main() {
std::cout << "Hello, world!" << std::endl;
return 0;
}
5. cin
In the world of C++, the "cin" stream is a vital tool for handling input from the
user or other sources. Short for "character input," cin is part of the Standard
Input/Output Library (iostream) and plays a crucial role in creating interactive
programs.
6. do
1. In C++, the do statement is used as part of a do-while loop to create a controlled repetitive
structure in a program.
2. The do-while loop is a type of iteration constructs that allows a block of code to be executed
repeatedly as long as a specified condition remains true.
7. While
8. Switch cases
1. A switch case statement is a powerful control structure in the C++
programming language that facilitates efficient decision-making based on the
value of a given expression.
2. It allows you to select one of several possible execution paths based on the
value of an expression.
#include <iostream>
int main()
{ int day = 3;
switch(day)
{
case 1: std::cout << "Monday"; break;
case 2: std::cout << "Tuesday"; break;
case 3: std::cout << "Wednesday"; break;
case 4: std::cout << "Thursday"; break;
case 5: std::cout << "Friday"; break;
default: std::cout << "Weekend"; break;
} return 0;
}
9. Default:
In C++, the concept of "default" primarily relates to default values, default arguments, and
the default constructor.
These features contribute to the language's versatility and usability by providing convenient
and consistent ways to handle various scenarios.
a. Default Values
b. Default Arguments
c. Default Constructor
10. String
1. Strings in C++ are sequences of characters represented as a data type. They are used to
store and manipulate text or character-based data.
2. In C++, strings are part of the Standard Template Library (STL) and provide a rich set of
functions and operations for working with textual data.
❖ FLOWCHAT
START
CHECK THE
CONDITION IF
THE INPUT IS
TRUE GO
INSIDE
IF FALSE GO TO THE
CHECK THE PROPER INPUT AND PRINT THE OUTPUT END STATEMENT
STATEMENT
END
❖ ALGORITHM
Steps :-
1. Start
2. Read the class as a (public and private) also read the string, vector, iostream as a
header file.
3. Give the instruction to print the menu by (cout,cin). In menu (ADD BUS,
DISPLAY BUSES, EXIT) by do while.
4. Give the command to choose one by switch case.
5. Print and display the output statement and check if it go the EXIT by if else
statement.
6. You need to choose one more then go to step-3 and select it then go to step-5. By
using do while.
7. End.
❖ Source code :-
#include <iostream>
#include <vector>
#include <string>
using namespace std;
class Bus{
public:
string busNumber;
string driverName;
string route;
Bus(string num, string name, string rt){
busNumber = num;
driverName = name;
route = rt; }
};
class BusManagementSystem
{private:
vector<Bus> buses;
public:
void addBus()
{string num, name, rt;
cout << "Enter Bus Number: ";
cin >> num;
cout << "Enter Driver's Name: ";
cin.ignore();
getline(cin, name);
cout << "Enter Route: ";
getline(cin, rt);
Bus newBus(num, name, rt);
buses.push_back(newBus);
cout << "\nBus added successfully!\n" << endl;}
void displayBuses(){
cout << "\nBus Information:\n" << endl;
for (const Bus& bus : buses){
cout << "Bus Number: " << bus.busNumber << endl;
cout << "Driver's Name: " << bus.driverName << endl;
cout << "Route: " << bus.route << endl;
cout << "----------------- \n" << endl;}
}
};
int main()
{
BusManagementSystem bms;
int choice;
do { cout<<"BUS MANAGEMENT SYSTEM\n"<<endl;
cout<<"1.ADD BUS"<<endl;
cout<<"2.DISPLAY BUSES"<<endl;
cout<<"3.EXIT\n"<<endl;
cout<<"Enter your choice: ";
cin>>choice;
switch (choice)
{case 1:
bms.addBus();
break;
case 2:
bms.displayBuses();
break;
case 3:
cout<<"\nExiting program."<<endl;
break;
default:
cout<<"Invalid choice. Please try again."<<endl;
}
} while (choice != 3);
return 0;
}
❖ Output
❖ Benefits of a (BMS)
1) Improved Passenger Experience
2) Digital Ticketing and Payment
3) Data Analytics and Reporting
4) Enhanced Safety and Security
5) Reduced Environmental Impact
6) Maintenance Management
7) Cost Savings
❖ References:
https://www.google.com/
https://ec.europa.eu/transport/themes/urban/urban_mobility_en
https://tfl.gov.uk/corporate/publications-and-reports/counting-passengers-using-
wi-fi-data
https://transloc.com/solutions/universities