Professional Documents
Culture Documents
Bus Reservation Project Report in CPP
Bus Reservation Project Report in CPP
P a g e |1
SHIVAJI VARMA
http://shivajivarma.com
P a g e |2
TABLE OF CONTENTS
SL NO
DESCRIPTION
PAGE NO
ABSTRACT
1.
ABSTRACT
03
2.
INTRODUCTION
05
3.
PROBLEM SPECIFICATION
06
3.1
Problem definition
06
3.2
Existing system
06
3.3
Proposed system
06
4.
08
4.1
08
4.2
08
4.3
09
5.
SYSTEM ANALYSIS
10
6.
SYSTEM DESIGN
10
6.1
Database design
10
A. Conceptual design
10
B. E R diagram
13
C. Logical DB design
14
7.
TESTING
17
8.
CONCLUSION
18
9.
BIBLIOGRAPHY
19
SHIVAJI VARMA
http://shivajivarma.com
P a g e |3
1. ABSTRACT
Traveling is a large growing business across all countries. Bus reservation system
deals with maintenance of records of details of each passenger who had reserved a seat
for a journey. It also includes maintenance of information like schedule and details of
each bus.
We observed the working of the Bus reservation system and after going through it,
we get to know that there are many operations, which they have to do manually. It takes
a lot of time and causes many errors. Due to this, sometimes a lot of problems occur and
they were facing many disputes with customers. To solve the above problem, and further
maintaining records of items, seat availability for customers, price of per seat, bill
generation and other things, we are offering this proposal of reservation system.
By using this software, we can reserve tickets from any part of the world, through
telephone lines, via internet. Customer can check availability of bus and reserve selective
seats. The project provides and checks all sorts of constraints so that user does give only
useful data and thus validation is done in an effective way.
SHIVAJI VARMA
http://shivajivarma.com
P a g e |4
2. INTRODUCTION
The focus of the project is to computerize traveling company to manage data, so that all
the transactions become fast and there should not be any error in transaction like calculation
mistake, bill generation and other things. It replaces all the paper work. It keeps records of all
bills also, giving to ensure 100% successful implementation of the computerized Bus reservation
system.
This reservation system has three modules. First module helps the customer to enquire
the availability of seats in a particular bus at particular date. Second module helps him to reserve
a ticket. Using third module he can cancel a reserved ticket.
First module retrieves data from tables required for enquire.
Second module inserts values into the tables on reservation.
Third module deletes values into from the table on cancellation of tickets.
As the database is hosted using Oracle Server onto internet, the application can access
data from any part of the world, by many number of people concurrently.
SHIVAJI VARMA
http://shivajivarma.com
P a g e |5
3. PROBLEM SPECIFICATION
Bus Reservation Systems that were suggested till now, are not up to the desired level.
There is no single system which automates all the process.
In order to build the system, all the processes in the business should be studied, System
study helps us under the problem and needs of the application. System study aims at establishing
requests for the system to be acquired, development and installed. It involves studying and
analyzing the ways of an organization currently processing the data to produce information.
Analyzing the problem thoroughly forms the vital part of the system study. In system analysis,
prevailing situation of problem is carefully examined by breaking them into sub problems.
Problematic areas are identified and information is collected. Data gathering is essential to any
analysis of requests. It is necessary that this analysis familiarizes the designer with objectives,
activities and the function of the organization in which the system is to be implemented.
3.1.
Existing system
Existing system is totally on book and thus a great amount of manual work has to be
done. The amount of manual work increases exponentially with increase in bus services.
Needs a lot of working staff and extra attention on all the records.
In existing system, there are various problems like keeping records of items, seats
available, prices of per/seat and fixing bill generation on each bill.
Finding out details regarding any information is very difficult, as the user has to go
through all the books manually.
Major problem was lack of security.
3.2.
Proposed system
The system is very simple in design and to implement. The system requires very low
system resources and the system will work in almost all configurations. It has got following
features:
Ensure data accuracy.
Records are efficiently maintained by DBMS.
DBMS also provides security for the information.
Any person across the world, having internet can access this service.
SHIVAJI VARMA
http://shivajivarma.com
P a g e |6
This would help the corporation prepare and organize its schedules more efficiently on
the basis of traffic demand.
SHIVAJI VARMA
http://shivajivarma.com
P a g e |7
Hard disk
: 1GB or above
Ram
: 256 MB or more
Internet
Server side:
Processor
Hard disk
4.2.
Ram
: 4 GB RAM
Internet
: 1 Gbps or more.
: Java Runtime.
: Oracle 10g.
SHIVAJI VARMA
http://shivajivarma.com
4.3.
P a g e |8
SHIVAJI VARMA
http://shivajivarma.com
P a g e |9
5. SYSTEM ANALYSIS
5.1.
System Architecture:
6. SYSTEM DESIGN
6.1.
Database design:
a) Conceptual design:
Requirement Analysis:
What data is needed?
List of Entities:
BUS
PASSENGER
ROUTE
RESERVE
List of attributes:
BUS:
a.
b.
c.
d.
e.
f.
SHIVAJI VARMA
Bus ID
Route ID
AC
Fare
Departure Time
Arrival Time
http://shivajivarma.com
P a g e | 10
Route information:
a. Route id
b. Origin
c. Destination
Reserve information:
a.
b.
c.
d.
e.
Ticket number
Route id
Passenger id
Time Stamp
Seat
Passenger information:
a.
b.
c.
d.
Ticket number
Name
Mobile number
E-mail
List of Relations:
Reserves
Has
b) E R model:
SHIVAJI VARMA
http://shivajivarma.com
BID
Fare
P a g e | 11
Depart
BUS
AC
Arrival
RID
has
RESERVE
Ticket ID
Destination
ROUTE
Origin
Seat no.
PID
PASSENGER
Name
Mobile no.
Email
Username
Password
c) Logical DB Design
SHIVAJI VARMA
http://shivajivarma.com
P a g e | 12
Field name
PID
NAME
MOBILE
EMAIL
USERNAME
PASSWORD
Data Type
Number
Char(40)
Number
Char(32)
Char(20)
Char(20)
Description
Passenger identity number.
Name of the passenger
Mobile number of passenger
Mail id of passenger
Username to login into application
Password to login into application
Constraints
Primary key
Schema definition:
CREATE TABLE "PASSENGER"
(
"PID" NUMBER,
"USERNAME" VARCHAR2(20) NOT NULL UNIQUE,
"PASSWORD" VARCHAR2(20) NOT NULL ENABLE,
"NAME" VARCHAR2(40) NOT NULL ENABLE,
"EMAIL" VARCHAR2(32) NOT NULL ENABLE,
"MOBILE" NUMBER(10,0) NOT NULL ENABLE,
PRIMARY KEY ("PID") ENABLE
)
/
Table:
PID
1
2
Mobile
9999999999
9898989898
E_mail
shivaji@BRS.com
pavan@example.com
http://shivajivarma.com
S. No
1
2
2
3
4
5
Field name
BID
RID
AC
FARE
DEPTTIME
ARRTIME
Data Type
Number
Number
Boolean
Number
Char(6)
Char(6)
P a g e | 13
Description
Bus identity number
Route in which bus travels
Type of bus. AC or Non AC
Price of the journey
Departure Time
Arrival Time
Constraints
Primary key
Foreign key
Schema definition:
CREATE TABLE "BUS"
(
"BID" NUMBER,
"RID" NUMBER NOT NULL ENABLE,
"AC" NUMBER(1,0) NOT NULL ENABLE,
"FARE" NUMBER NOT NULL ENABLE,
"DEPTTIME" VARCHAR2(6) NOT NULL ENABLE,
"ARRTIME" VARCHAR2(6) NOT NULL ENABLE,
PRIMARY KEY ("BID") ENABLE,
FOREIGN KEY ("RID")
REFERENCES "ROUTE" ("RID") ENABLE
)
/
Table:
BID
1001
1002
1003
RID
101
101
102
AC
1
0
1
Fare
2000
1500
600
DEPTTIME
20:00
10:00
1:00
ARRTIME
5:00
15:00
3:00
http://shivajivarma.com
S. No
1
2
3
Field name
RID
ORIGIN
DESTINATION
Data Type
Number
Char(15)
Char(15)
P a g e | 14
Description
Route identity number
Starting point
Destination point
Constraints
Primary key
Schema definition:
CREATE TABLE "ROUTE"
(
"RID" NUMBER,
"ORIGIN" VARCHAR2(15) NOT NULL ENABLE,
"DESTINATION" VARCHAR2(15) NOT NULL ENABLE,
PRIMARY KEY ("RID") ENABLE
)
/
Table:
RID
101
102
ORIGIN
Hyderabad
Vijayawada
DESTINATION
Visakhapatnam
Visakhapatnam
http://shivajivarma.com
S. No
1
2
3
4
5
6
Field name
TID
RID
PID
DT
TSTAMP
SEAT
Data Type
Number
Number
Number
Date
Date
Number
P a g e | 15
Description
Ticket number
Route identity number
Passenger identity number
Date of journey
Date of reservation
Seat number
Constraints
Primary key
Foreign key
Foreign key
"TID" NUMBER,
"PID" NUMBER NOT NULL,
"BID" NUMBER NOT NULL,
"DT" DATE NOT NULL,
"TSTAMP" DATE NOT NULL,
"SEAT" NUMBER NOT NULL,
PRIMARY KEY ("TID") ENABLE,
FOREIGN KEY ("PID")
REFERENCES "PASSENGER" ("PID") ENABLE,
FOREIGN KEY ("BID")
REFERENCES "BUS" ("BID") ENABLE
)
/
Table:
TID
RID BID DT
12111 101 1001 15 July 2015
TSTAMP
10 July 2015, 12:00:12
SEAT
30
12112 102
http://shivajivarma.com
P a g e | 16
7. TESTING
SHIVAJI VARMA
http://shivajivarma.com
P a g e | 17
Testing is an investigation to provide clients with information about the quality of the
product. Testing method can be implemented at each phase in the development process, however
the most test effort is employed after the requirements have been defined and coding process has
been completed.
TEST CASES
DETAILS OF
TEST
TEST RESULT
TEST
CERTIFICATE
Mobile_textbox
Checking of
numerals in phone
no.
It is not taking
Test successful.
alphabets and accept
mobile with 10 digits
only.
Email_textbox
Testing of Regular
expression of email
id
Test successful.
Reservation
Testing ticket
reservation
Test successful
Form_fill
Testing of null
values in entry
columns.
Cancellation
Test successful
Test successful
8. CONCLUSION
SHIVAJI VARMA
http://shivajivarma.com
P a g e | 18
This facility is helpful for the users and the organization as well. This is a simple yet
effective technology which helps the users to access the service concurrently from different
places.
Advantages:
a) It reduces the burden of the administrator to maintain numerous data of passengers.
b) It reduces wastage of time as it is fast and simple.
c) It is low cost.
d) Improves the efficiency of the organization.
9. BIBLIOGRAPHY
SHIVAJI VARMA
http://shivajivarma.com
P a g e | 19
Printed referential:
1. The Reference material for C# by Srikanth Pragada.
Electronic Referential:
The following websites were used for information gathering about the project. These
websites also gave adequate information for the project to be successfully completed.
1. http://www.srikanthtechnologies.com/
2. http://www.microsoft.com/NET
SHIVAJI VARMA
http://shivajivarma.com