You are on page 1of 31

***********************************************************************************

===============================================

Project Report
On
Transport
Management System

====================================================

***********************************************************************************
Aknowledgment
Primarly we would Thanks to Almighty Allah for being able to
complete this project with success… Then we would thank to my
teacher Sir Abdul Khalique who helped us to understand &
remember important details of the project who’s valuable
guidance has been the once that helped us the patched this
project and make it full proof success with his suggestions and
his instructions has served as the majbor contributor towards
the completion of the project.

Then we would thanks to our parents and friends who have


helped us with their valuable suggestions and guidance has been
successful in various phases of the completion of the project.

Shazmina
&
Roshni
BSCS-1
Content
1. Introduction
2. Existing System
3. Objectives
4. Tools
5. Functional Requirement
6. Non Functional Requirement
7. SDLC Model
8. Why Using This Model?
9. ER Diagram
10. Use Case Diagram
11. Content Diagram
12. Data Flow Diagram
13. Conclusion
14. Source Code
15. OutPut
Introduction
******************
The project is designed for Transport Management System in C++. In
transport reservation framework there has been an assortment of
transports, operator who are reserving tickets for client's excursion
which give transport number and takeoff time of the transport. As
indicated by its name it deals with the subtleties of all specialist, tickets,
rental subtleties, and timing subtleties, etc. It additionally deals with the
refreshing of the articles.

In the visit detail there is data about transport, who has been taking
clients at their goal, it additionally contain the nitty gritty data about the
client, who has been taken from which transport and at what are the
quantity of individuals the person is taking his/her excursion.

This area likewise contain the subtleties of booking time of the seat(s) or
gathering time of the tickets, this segment additionally contain the
booking date and the name of operator which is discretionary, by which
the client can hold the seats for his excursion.
Existing System

In this stage we have broke down the current system and examined
issues related with it. We comprehended the confinements of the current
system and got an away from of the prerequisites and requirement for
another system.
Objectives
 After the prerequisites have been resolved the fundamental
determinations for the equipment, programming,
individuals, and information assets and the data items that
will fulfill the utilitarian necessities of the proposed system
can be resolved

 After that we made a diagram for the proposed system.
Tools
Hardware Requirements:
 PC with Dual Core Or More Processor
 1 GB Ram Or Above
180 GB Hard Disk Or Above
Software Requirements:
 Visual Studio
 Microsoft SQL Server
 Operating System
 Windows Xp, 7,8,10
Functional Requirement
 This function shows Driver’s Name
 This functions shows the Bus Route
 This function shows that the bus arrival time
 This function shows that the seat is empty or not
 This function shows that how many seats are empty
Non Functional Requirement
 Reliablibilty: The application ought to be solid and it ought
to create all refreshed data in right request
 Availability: Application will be accessible and working
appropriately for constantly
 Security
Why Use This Model?
 Produces working programming rapidly and right on time
during the product life cycle.
 This model is increasingly adaptable less expensive to
change degree and necessities.
 It is simpler to test and troubleshoot during a little
emphasis.
 In this model client can react to each manufactured.
 Brings down at first conveyance cost
Content
 This administration framework which gives online
transport reservation.

 This framework is easy to use and precise.

 This framework is accessible and precise.

 This framework is accessible and effective in reservation.

 It has no shrouded cost.


Source Code
#include <conio.h>

#include <iostream>

#include <string.h>

using namespace std;

static int p = 0;

class Bus_Reservation

char busn[5];

char driver[10];

char arrival[5];

char depart[5];

char from[10];

char to[10];

char seat[8][4][10];

public:

void add_bus();

void reserve_bus();

void empty();

void show_bus();
void is_bus_available();

void position(int i);

bus[10];

void Bus_Reservation::add_bus()

cout<<"Enter bus number: ";

cin>>bus[p].busn;

cout<<"Enter Driver's name: ";

cin>>bus[p].driver;

cout<<"Arrival time: ";

cin>>bus[p].arrival;

cout<<"Departure: ";

cin>>bus[p].depart;

cout<<"From: ";

cin>>bus[p].from;

cout<<"To: ";

cin>>bus[p].to;
cout<<"\n Added Successfully....";

bus[p].empty();

p++;

getch();

void Bus_Reservation::reserve_bus()

int seat;

char number[5];

top:

cout<<"Bus number: ";

cin>>number;

int n;

for(n=0;n<=p;n++)

if(strcmp(bus[n].busn, number)==0)

break;

while(n<=p)

{
cout<<"\nSeat Number: ";

cin>>seat;

if(seat>32)

cout<<"\nThere are only 32 seats available in this bus.";

else

if (strcmp(bus[n].seat[seat/4][(seat%4)-1], "Empty")==0)

cout<<"Enter passanger's name: ";

cin>>bus[n].seat[seat/4][(seat%4)-1];

break;

else

cout<<"The seat no. is already reserved.\n";

if(n>p)

cout<<"Enter correct bus no.\n";

goto top;

cout<<"\n Added Successfully....";

getch();
}

void Bus_Reservation::empty()

for(int i=0; i<8;i++)

for(int j=0;j<4;j++)

strcpy(bus[p].seat[i][j], "Empty");

void Bus_Reservation::show_bus()

int n;

char number[5];

cout<<"Enter bus number: ";

cin>>number;

for(n=0;n<=p;n++)

if(strcmp(bus[n].busn, number)==0)

break;

}
while(n<=p)

cout<<"\
n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@\n";

cout<<"Bus no: "<<bus[n].busn

<<"\nDriver: "<<bus[n].driver<<"\nArrival time: "

<<bus[n].arrival<<"\nDeparture time: "<<bus[n].depart

<<"\nFrom: "<<bus[n].from<<"\nTo: "<<

bus[n].to<<"\n";

cout<<"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@\n";

bus[0].position(n);

int a=1;

for (int i=0; i<8; i++)

for(int j=0;j<4;j++)

a++;

if(strcmp(bus[n].seat[i][j],"Empty")!=0)

cout<<"\nThe seat no "<<(a-1)<<" is reserved for "<<bus[n].seat[i][j]<<".";

break;
}

if(n>p)

cout<<"Enter correct bus no: ";

getch();

void Bus_Reservation::position(int l)

int s=0;p=0;

for (int i =0; i<8;i++)

cout<<"\n";

for (int j = 0;j<4; j++)

s++;

if(strcmp(bus[l].seat[i][j], "Empty")==0)

cout.width(5);

cout.fill(' ');

cout<<s<<".";

cout.width(10);

cout.fill(' ');

cout<<bus[l].seat[i][j];

p++;
}

else

cout.width(5);

cout.fill(' ');

cout<<s<<".";

cout.width(10);

cout.fill(' ');

cout<<bus[l].seat[i][j];

cout<<"\n\nThere are "<<p<<" seats empty in Bus Number: "<<bus[l].busn;

void Bus_Reservation::is_bus_available()

for(int n=0;n<p;n++)

cout<<"\
n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@\n";

cout<<"Bus number: "<<bus[n].busn<<"\nDriver: "<<bus[n].driver

<<"\nArrival time: "<<bus[n].arrival<<"\nDeparture Time: "

<<bus[n].depart<<"\nFrom: "<<bus[n].from<<"\nTo: "

<<bus[n].to;
cout<<"\
n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@\n";

getch();

int main()

system("cls");

int w;

while(1)

system("cls");

cout<<"***********************************************************************
*****"<<endl;

cout<<"* *"<<endl;

cout<<"* *"<<endl;

cout<<"* *************************************************
*"<<endl;

cout<<"* * * *"<<endl;

cout<<"* * Welcome To Our Project * *"<<endl;

cout<<"* * Transport Management * *"<<endl;

cout<<"* * System * *"<<endl;

cout<<"* * Project By: * *"<<endl;

cout<<"* * Shazmina * *"<<endl;


cout<<"* * & * *"<<endl;

cout<<"* * Roshni * *"<<endl;

cout<<"* * Supervisior * *"<<endl;

cout<<"* * Sir Abdul Khalique * *"<<endl;

cout<<"* * * *"<<endl;

cout<<"* *************************************************
*"<<endl;

cout<<"* *"<<endl;

cout<<"* *"<<endl;

cout<<"***********************************************************************
*****"<<endl;

cout<<"\n\t\t\t press any key to continue:-> ";

cin>>w;

switch(w)

cout<<"\n";

cout<<"\t\t\
t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@\n";

cout<<"\t\t\t1. Add Bus\n\t\t\t"

<<"2. Reservation\n\t\t\t"

<<"3. Show Bus\n\t\t\t"

<<"4. Exit \n\t\t\t";

//<<"5. Exit";

cout<<"\n\t\t\
t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@\n";

cout<<"\n\t\t\tEnter your choice:-> ";


cin>>w;

switch(w)

case 1: bus[p].add_bus();

break;

case 2: bus[p].reserve_bus();

break;

case 3: bus[0].show_bus();

break;

case 4: exit(0);

return 0;

}
Output
This is 1st output which shows welcome screen

After That This Is Main Menu, In this we have to add bus info like bus
number, driver’s name etc
After Add Bus, Now we have to reserved the seats so here is the output
for this:

And Now the Final Output which shows all of the details of buses and
reserved seats, and about empty seats:

You might also like