Você está na página 1de 21

Java report

ONINE RAILWAY RESERVATION SYSTEM


OOPST

B.S. (SE) Project Report

Submitted by: MISS ANUM

Name

Enrolment

Seat Number

Samra Shaukat

2013/comp/BS(SE)/15479

1315543

17-Dec-2015
DEPARTMENT

OF

COMPUTER SCIENCE

AND

INFORMATION TECHNOLOGY

J INNAH U NIVERSITY FOR W OMEN


5-C NAZIMABAD, KARACHI 74600

OOPST

Page 1

ACKNOWLEDGEMENT
I take this opportunity to present our votes of thanks to all those who guide me and acted as
lightening pillars to enlighten our way throughout this project that has led to successful and
satisfactory completion of this study.
I am really grateful to my subject teacher Miss Anum for providing us with an opportunity to
undertake this project in this university and providing us with all the facilities and knowledge. I
am highly thankful for her active support, valuable time and advice, whole-hearted guidance,
sincere cooperation and involvement during the study and in completing the preparation of our
project within the time stipulated.
Lastly, I am thankful to all those, particularly the various friends , who have been instrumental
in creating proper, healthy and conductive environment and including new and fresh innovative
ideas for me during the project, their help, it would have been extremely difficult for me to
prepare the project in a time bound framework.
Thank You.

SAMRA SHAUKAT

ACKNOWLEDGEMENT......................................................................1
2

Table Of
Content
.1
TABLE OF
FIGURES
.3

CHAPTER 1: INTRODUCTION...........................................................1

1.1 Project Overview..............................................................................................1


1.2 Aims and Objective..........................................................................................1
1.3 Project Scope....................................................................................................1
CHAPTER 2: SYSTEM DESIGN..............................................................2

2.1 DATA DICTIONARY......................................................................................2


2.2 ENTITY RELATIONSHIP DIAGRAM.........................................................................2
CHAPTER 3: TOOLS & TECHNOLOGY..........................................................3
3.1.1 Netbeans........................................................................................................3
3.2.1 java................................................................................................................4
CHAPTER 4: SNAPSHORTS..................................................................5

4.1ADD Employee
4.2 Passeneger
4.3 Train
4.4 Train Seat
4.5 Train Schedule
4.6 Reservation
CHAPTER 5: Conclusion

Table of figure

FIGURE 3.1..................................................................................... 8
FIGURE 4.1..................................................................................... 4
FIGURE 4.2
FIGURE 4.3
FIGURE 4.4
FIGURE 4.5
FIGURE 4.6
FIGURE 4.7

CHAPTER 1
INTRODUCTION
1.1 Project Overview
This project will help in solving all the problems in existing system of Railway Reservation
System. In existing system all data is stored in files which is awkward method and many
problems are faced by the users and passengers, so this project will help to enter data easily in
computer database then no problems will be faced by the users and passengers. The user can
easily find any data at any time in a few seconds. It includes modules required to successfully
operate railway reversion process smoothly. It has train master to add modify train information,
Train schedule to enter train schedule details include all the source and destination station names,
arrival time and departure time. It includes automatic fare calculation as per the distance between
two stations. Reservation modules consist of automatic seat no and train no allocation system.
Daily scheduling and updating of not available seats in train can be done easily. All master like
train master, train schedule, reservation fees, can be modified individually from front end and
changes reflect in all modules immediate. Therefore proposed Online Railway Reservation
System has been designed to automate the process of railway for ticket reservation and back
office activities. System can make the daily activities efficient and providing the fast response.

Saves Time and Effort


You can save the time needed to travel to the railway reservation office and waiting in the queue
for your turn.

1.2 Aims and Objectives


Our project introduces Railway Reservation System with an objective to make
the reservation system more efficient, easier and fast. This project explores
how computer technology can be used to solve the problem of user. The
main objectives provided by this software are as follows:
We can enquire about availability of trains
We can reserve seats anytime
We can modify the information related to Trains, Time Table, Train
Name, Train Number, and Ticket Fares.

This project is dedicated to model existing Railway Reservation Systems that


Aim at development of Railway Reservation System that facilitates the
railway customer to manage their reservation and the railway administrator
to modify the backend database in a user-friendly manner.

1.3 Project Scope


The scope of our project is to solve all existing problems in Railway
Reservation System. Pakistan has some of the most spectacular and
unforgettable rail journeys in the world. Here you experience a simple way.
There's no better way to enjoy Pakistan's outback, cities, coastal towns and
regional areas in comfort. An advantage of this DBMS is that DBMS allows
large amounts of data to be stored in the most efficient manner. The data is
stored in lists of independent information. Additional data sets can be added
at any time. Relationships between the data sets are defined in the DBMS,
and can be altered without affecting the data.

CHAPTER 2
SYSTEM DESIGN
2.1 Data Dictionary
Following are the tables along with their attributes and Meta data
Table name
Add Employee

Passenger

Column name
Emp_ID
Full_Name
Gender
Joinning_Date
Shit_Postion
Address
Password
Mobile_No

Null\not null
Not null
Not null
Not null
Not null
Not null
Not null
Not null
Not null

Data type\size
Int
Char(49)
nvarchar(40)
nvarchar(20)
Varchar(40)
Varchar(60)
Varchar(40)
int

Primary key
yes
No
No
No
No
No
No
No

Foreign key

P_ID
Full_Name
Gender
City
Mobile

Not null
Not null
Not null
Not null
Not null

Int
Varchar(40)
Varchar(50)
Varchar(30)
Char(60)

Yes
No
No
No
No

No
No
No
No
No

No
No
No
No
No
No
No

Train

Train_ID
Train_Name
Source_Station
Destination_Station
Price_ticket

Not null
Not null
Not null
Not null
Not null

Int
Varchar(40)
Varchar(40)
Varchar(40)
Varchar(40)

Yes
No
No
No

No
Yes
Yes
No

Train_Seat

Seat_ID
Train_ID
Seat_Status

Not null
Not null
Not null

int
int
nvarchar(40)

Yes
No
No

No
Yes
No

Train_Schedule

T_SID
Train_ID
Arrival_Time
Depature_Time
Date

Not null
Not null
Not null
Not null
Not null

int
int
Datetime
Datetime
DateTime

Yes
No
No
No
Yes

No
Yes
No
No
No

Reservation

Ticket_No
Train_ID
Train_Name
Station_From
Station_To
Arrival
Depature
Seat_No
Current_Date
Reservation_Date
Emp_ID
Passenger_Name
Price_Ticket

Not null
Not null
Not null
Not null
Not null
Not null
Not null
Not null
Not null
Not null
Not null
Not null
Not null

Varchar(50)
Varchar(30)
Varchar(40)
Varchar(20)
Varchar(40)
DateTime
DateTime
Varchar(60)
DateTime
DateTime
Int
Varchar(70)
Varchar(40)

yes
No
No
No
No
No
No
No
No
No
No
No
No

No
No
No
No
No
No
No
No
No
No
No
No
No

2.2 Entity Relationship Diagram

CHAPTER 2
8

TOOLS & TECHNOLOGY


3.1 TOOLS
3.1.1 Netbeans

NetBeans is a software development platform written in Java. The


NetBeans Platform allows applications to be developed from a set of modular software
components called modules. Applications based on the NetBeans Platform, including the
NetBeans integrated development environment (IDE), can be extended by third party
developers.

The NetBeans IDE is primarily intended for development in Java, but also supports other
languages, in particular PHP, C/C++ and HTML5.

NetBeans is cross-platform and runs on Microsoft Windows, Mac OS


X, Linux, Solaris and other platforms supporting a compatible JVM.

The NetBeans Team actively support the product and seek feature suggestions from the
wider community. Every release is preceded by a time for Community testing and
feedback

10

Database System

3.2

Project Report

TECHNOLOGY

3.2.1 Java

Java is a general-purpose computer programming language that is concurrent, classbased, object-oriented, and specifically designed to have as few implementation dependencies as
possible. It is intended to let application developers "write once, run anywhere"
(WORA), meaning that compiled Java code can run on all platforms that support Java without
the need for recompilation. Java applications are typically compiled to byte code that can run on
any Java virtual machine (JVM) regardless of computer architecture. As of 2015, Java is one of
the most popular programming languages in use, particularly for client-server web applications,
with a reported 9 million developers. Java was originally developed by James Gosling at Sun
Microsystems (which has since been acquired by Oracle Corporation) and released in 1995 as a
core component of Sun Microsystems' Java platform. The language derives much of
its syntax from C and C++, but it has fewer low-level facilities than either of them.
The original and reference implementation Java compilers, virtual machines, and class
libraries were originally released by Sun under proprietary licenses. As of May 2007, in
compliance with the specifications of the Java Community Process, Sun relicensed most of its
Java technologies under the GNU General Public License. Others have also developed
alternative implementations of these Sun technologies, such as the GNU Compiler for Java (byte
code compiler), GNU Class path (standard libraries), and Iced Tea-Web (browser plug-in for
applets).
The latest version is Java 8, which is the only version currently supported for free by Oracle,
although earlier versions are supported both by Oracle and other companies on a commercial
basis.

3.3.1 SQL
26th December 2014

Database System

Project Report

Use sql for database Through sql we can insert and update our data
stands for Structured Query Language. SQL is used to communicate with a database. According
to ANSI (American National Standards Institute), it is the standard language for relational
database management systems. SQL statements are used to perform tasks such as update data on
a database, or retrieve data from a database. Some common relational database management
systems that use SQL are: Oracle, Sybase, Microsoft SQL Server, Access, Ingres, etc. Although
most database systems use SQL, most of them also have their own additional proprietary
extensions that are usually only used on their system. However, the standard SQL commands
such as "Select", "Insert", "Update", "Delete", "Create", and "Drop" can be used to accomplish
almost everything that one needs to do with a database. This tutorial will provide you with the
instruction on the basics of each of these commands as well as allow you to put them to practice
using the SQL Interpreter.

CHAPTER 4

SNAPSHORTS
4.1 Login Page:

26th December 2014

Database System

4.2 ADD Employee:

26th December 2014

Project Report

Database System

4.3 Passenger

26th December 2014

Project Report

Database System

4.4 Train

26th December 2014

Project Report

Database System

4.5 Train Seat

26th December 2014

Project Report

Database System

26th December 2014

Project Report

Database System

4.6 Train Schedule

26th December 2014

Project Report

Database System

4.7 Reservation

26th December 2014

Project Report

Database System

Project Report

4.8 Ticket slip

CHAPTER 5
CONCLUSION
This project is used to keep a track on reserving the seat to the passenger. It helps
managing the system very efficiently and conveniently.

26th December 2014

Database System

Project Report

Finally,This gives us a lot of mental satisfaction that the project i have worked upon
is a real time project, which will be installed at the customer site after some more
session of regress testing.
Although the project work has been done in a complete and detailed manner but
due to the constraint of time, i could not include some more features I wanted to.i
left these features as a part of the future future development

26th December 2014

Você também pode gostar