Professional Documents
Culture Documents
===============================================
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.
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.
#include <iostream>
#include <string.h>
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();
bus[10];
void Bus_Reservation::add_bus()
cin>>bus[p].busn;
cin>>bus[p].driver;
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:
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)
else
if (strcmp(bus[n].seat[seat/4][(seat%4)-1], "Empty")==0)
cin>>bus[n].seat[seat/4][(seat%4)-1];
break;
else
if(n>p)
goto top;
getch();
}
void Bus_Reservation::empty()
for(int j=0;j<4;j++)
strcpy(bus[p].seat[i][j], "Empty");
void Bus_Reservation::show_bus()
int n;
char number[5];
cin>>number;
for(n=0;n<=p;n++)
if(strcmp(bus[n].busn, number)==0)
break;
}
while(n<=p)
cout<<"\
n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@\n";
bus[n].to<<"\n";
cout<<"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@\n";
bus[0].position(n);
int a=1;
for(int j=0;j<4;j++)
a++;
if(strcmp(bus[n].seat[i][j],"Empty")!=0)
break;
}
if(n>p)
getch();
void Bus_Reservation::position(int l)
int s=0;p=0;
cout<<"\n";
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];
void Bus_Reservation::is_bus_available()
for(int n=0;n<p;n++)
cout<<"\
n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@\n";
<<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<<"* * * *"<<endl;
cout<<"* *************************************************
*"<<endl;
cout<<"* *"<<endl;
cout<<"* *"<<endl;
cout<<"***********************************************************************
*****"<<endl;
cin>>w;
switch(w)
cout<<"\n";
cout<<"\t\t\
t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@\n";
<<"2. Reservation\n\t\t\t"
//<<"5. Exit";
cout<<"\n\t\t\
t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@\n";
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: