Vous êtes sur la page 1sur 13

Saint Mary’s Convent Senior

Secondary School
Jaipur

A Project Report on

RAILWAY RESERVATION SYSTEM

For
AISSCE 2020 Examination
[As a part of the Informatics Practices Course (265)]

SUBMITTED BY
ANCHAL BHARDWAJ
[Roll N0. ]

Under the Guidance of:


Mr. Amit Verma
PGT (Computer Science)
CERTIFICATE

This is to certify that the Project entitled Railway Ticket

Booking System is a bonafide work done by Miss

Anchal Bhardwaj of class XII-A Session 2019-20 in partial

fulfillment of CBSE’s AISSCE Examination 2020 and has

been carried out under my direct supervision and

guidance. This report or a similar report on the topic has

not been submitted for any other examination and does

not form a part of any other course undergone by the

candidate.

Signature of Student Signature of Teacher

Name : Anchal Bhardwaj Name: Mr. Amit Verma


Roll No. : Designation: PGT (Computer Sci.)
ACKNOWLEDGEMENT

I undertook this Project work, as the part of my class XII-Informatics

Practices course. I had tried to apply my best of knowledge and


experience, gained during the study and class work experience. However,
developing software system is generally a quite complex and time-
consuming process. It requires a systematic study, insight vision and
professional approach during the design and development. Moreover, the
developer always feels the need, the help and good wishes of the people
near you, who have considerable experience and idea.

I would like to extend my sincere thanks and gratitude to my teacher Mr.


Amit Verma . I am very much thankful to my Principal Rev. Sister
Anusha for giving valuable time and moral support to develop this
software.

I would like to take the opportunity to extend my sincere thanks and


gratitude to my parents for being a source of inspiration and providing
time and freedom to develop this software project.

I also feel indebted to my friends for the valuable suggestions during the
project work.

Anchal Bhardwaj
Class XII-A
CONTENTS

1. Introduction

2. System Implementation

2.1 The Hardware used:

2.2 The Softwares used:

3. System Design & Development

3.1 Database Design:

3.2 I/O Forms Design & Event Coding:

4. References
INTRODUCTION

Railway management system is a project which aims in developing a


computerized system to maintain all the daily work of Railway Ticket
Booking.This project has many features which are generally not available
in normal stores.It is a type of information system that is designed &
developed for easy and error free recording of information on various
Rilway Management processes.

Following project can be used to manage Train Details,Reservation


Details,Coustomer Details and many more.The details of the train is
provided along with price.The customer can choose the train according to
their requirements.
The Train and Reservation details are assigned through the project to
prevent any tamper or loss of information. It includes options such as
modifying and deleting records to update the Train and Reservation
database. Train Booking and Reservation details can be searched when
required.

The project also provides total cost. The project also includes customer
care frames where they can provide their views and complaints. The
project can be customized according to the needs of the users without
much trouble. Although this project has been developed with a great deal
of care, research, thought and hard work but still some smaller and
insignificant areas may have been left unaddressed, so scope has been left
for customization.
System Implementation

The Hardware used:

While developing the system, the used hardware’s are:


PC with AMD A8-7410 APU With AMD RADEON R5 Graphics processor having
4.00 GB RAM and other required devices.

The Softwares used:


➢ Microsoft Windows® 10 as Operating System.

➢ Java NetBeans 6.5.1 as Front-end Development environment.

➢ MySQL as Back-end Sever with Database for Testing.

➢ MS-Word 2007 for documentation.


System Design & Development
Database Design:
An important aspect of system design is the design of data storage structure. To begin with a
logical model of data structure is developed first. A database is a container object which
contains tables, queries, reports and data validation policies enforcement rules or contraints etc.
A logical data often represented as a records are kept in different tables after reducing
anomalies and redundancies. The goodness of data base design lies in the table structure and its
relationship.
This software project maintains a database named Railway which contains the following
tables.

Table Design:
The database of Farming System contains 5 tables. The tables and their structure are given
below.

Table: users
Column Name Type Size
name varchar 40
password int 11
mobile varchar 30
address varchar 40
emailid varchar 40
dob date

Table: Train_names
Column Name Type Size
name varchar 40
price varchar 11

Table: Train
Column Name Type Size
start varchar 20
end varchar 30
trainno int 11
train_name varchar 30
price int 11
Table: Reservation
Column Name Type Size
pnrno int 11
startingplace varchar 40
endingplace varchar 40
trainno int 11
train_name varchar 30
ticketprice int 11
dateofjourney date
customer_name varchar 30
address varchar 40
phone_no varchar 20
email_id varchar 20

Table: Customer_care
Column Name Type Size
name varchar 30
address varchar 40
emailid varchar 30
complaints varchar 40
I/O Forms Design & Event Coding:
The software project for Railway reservation contains various forms along with
programming codes. Forms (JFrames) and their event coding are given below

Frame: Start_Screen.java

Coding for Start_Screen.java

Private void formWindowGainedFocus(java.awt.event.WindowEvent evt)


{
jButton1.setVisible(false);
jButton1.doClick(5000);
LoginFrame a=new LoginFrame();
a.setVisible(true);
this.dispose();
}
Frame: LoginFrame.java

Coding for LoginFrame.java


private void exitActionPerformed(java.awt.event.ActionEvent evt) {
System. exit(0);
}
private void aboutUsActionPerformed (java.awt.event.ActionEvent evt) {
Aboutus ab=new Aboutus() ;
ab.setVisible(true);
this.dispose();
}
private void loginActionPerformed (java.awt.event.ActionEvent evt) {
String name=userTextField.getText();
String password=new String(pwdPasswordField.getPassword());
if(name.isEmpty() && password.isEmpty())
{
jLabel6.setText("Please enter username");
jLabel7.setText("Please enter password");
} else if (name.isEmpty())
{
jLabel6.setText("Please enter username");
jLabel7.setText("");
} else if (password.isEmpty())
{
jLabel6.setText("");
jLabel7.setText("Please enter password");
}
else
{
try
{
Class.forName("java.sql.DriverManager");
Connection c;
c=DriverManager.getConnection("jdbc:mysql://localhost/railway","root","123");
Statement st;
st=c.createStatement();
String query;
query="select name,password from users where name='"+name+"' &&
password="+password+";";
ResultSet rs;
rs=st.executeQuery(query);
if(rs.next())
{
String user,pwd;
user=rs.getString(1);
pwd=rs.getString(2);
if(name.equals(user) && password.equals(pwd))
{
JOptionPane.showMessageDialog(null,"login sucessful");
Main m=new Main();
m.setVisible(true);
this.dispose();
}
else
{
JOptionPane.showMessageDialog(null,"Please type correct user name and
password");
}
}
else
{
JOptionPane.showMessageDialog(null,"No user exists");
}
}
catch (Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
}
References

In order to work on this project titled –Railway Reservation System, the following books and
literature are referred by me during the various phases of development of the project.

(1) Together with Informatics Practices

(2) http://www.mysql.org/

(3) Informatics Practices for class XII


-by Sumita Arora
(4) Various Websites of Discussion Forum and software development activities.

Other than the above-mentioned books, the suggestions and supervision of my teacher and my
class experience also helped me to develop this software project.

Vous aimerez peut-être aussi