railway seminar repport

27
SRI JAYACHAMARAJENDRA COLLEGE OF ENGINEERING, MYSORE-570006 AFFFLIATED TO VISVESWARAIAH TECHNOLOGICAL UNIVERSITY BELGAUM-590018 A SEMINAR REPORT ON “RAILWAY RESERVATION SYSTEM” SUBMITTED BY ANANTH SHETTY K R 1 st Sem, M.Tech (Industrial Electronics) Department of Electronics and communication Engineering S.R.No P130114

Upload: ananth-setty

Post on 11-Feb-2016

226 views

Category:

Documents


0 download

DESCRIPTION

My Project

TRANSCRIPT

Page 1: Railway Seminar Repport

SRI JAYACHAMARAJENDRA COLLEGE OFENGINEERING,MYSORE-570006

AFFFLIATED TO VISVESWARAIAH TECHNOLOGICAL UNIVERSITY

BELGAUM-590018

A SEMINAR REPORT ON

“RAILWAY RESERVATION SYSTEM”

SUBMITTED BY

ANANTH SHETTY K R1st Sem, M.Tech (Industrial Electronics)

Department of Electronics and communication Engineering

S.R.No P130114

Under the guidance ofDr. C. R. Venugopal

ProfessorDepartment of Electronic and Communication Engineering,

SJCE, Mysore-570006.

Page 2: Railway Seminar Repport

ACKNOWLEDGEMENT

I take this opportunity to express my profound gratitude and deep regards to my guide Professor Dr.

C. R. Venugopal for his exemplary guidance, monitoring and constant encouragement throughout the

course of this project. The blessing, help and guidance given by him time to time shall carry me a

long way in the journey of life on which I am about to embark.

I am also thankful to him for his great patience, constructive criticism & useful suggestion apart from

invaluable guidance.  

A formal statement of acknowledgement will hardly do justice. It is a matter of expressing our deep

gratitude and obligations to all those who helped us in completion of our project.

Department of Electronics and Communication Enginnering,SJCE Mysore-570006 Page i

Page 3: Railway Seminar Repport

Railway Reservation System

ABSTRACT

As I am beginner and have no practical experience in the field of software development and

moreover the RAILWAY system is very wide. So, we limit the scope of our project by

computerizing the following fields of the RAILWAY system:

The Project is about Railway Reservation system. It has two users, Administrator and User of the

PRS (Passenger Reservation System) . Administrator have functions like

1. Add New User

2. Display all user Details

3. Add new train

4. Display all trains

5. Scheduled trains

6. Display Schedule

7. Logout

User have functions like

1. Show profile

2. Edit profile details

3. Display schedule based on train

4 .Display schedule based on source and destination

5. Display schedule based on date

6. Display all trains schedule

7. Check berth availability

8. Book tickets

9. Cancel ticket

10. Exit

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page ii

Page 4: Railway Seminar Repport

Railway Reservation System

Table of Contents

ACKNOWLEDGEMENT………………………………………………. i

ABSTRACT..................................................................................................... ii

Chapter 1 Introduction

1.1. General Introduction......................................................................................................... 1

1.2. Product Definition…………………………………………………………………… 1

1.3. Problem Definition………………………………………………………………… 1

1.4. Functionality to be provided………………………………………………………. 2

1.5. Processing environment – Hardware and Software…………………………… 2

1.6. Solution Strategy…………………………………………………………….. 2

1.6.1. Classic Life Cycle Model……………………………………………… 2

1.7. Overview of java ……………………………………………………. 3

Chapter 2 Design

2.1. Algorithm………………………………………………………………… 5

2.2. Flowchart................................................................ 6

Chapter 3 Testing

3.1. Tested Result.................................................................................. 7

Chapter 4 Feasibility Analysis

4.1. Economical Feasibility …………………………………………….. 9

4.2. Technical Feaasibility……………………………………………… 9

4.3. Operational Feasibility……………………………………………….. 10

Chapter 5

Advantages of Railway Reservation System…………………… 11

Chapter 6

Future Scope of the Project……………………………………. 12

Department of Electronics and Communication Enginnering,SJCE Mysore-570006 Page iii

Page 5: Railway Seminar Repport

Railway Reservation System

Chapter 7

Conclusions ……………………………………………………………… 13

References…………………………………………………………………… 13

List of Figures

Figure 1

The pictorial representation of SDLC…………………….. 2

Figure 2

Phases of System Development Life Cycle……………………. 3

Figure 3

Two ways of using Java…………………………………………….. 4

Figure 4

Railway Reservation System flow chart……………………………. 6

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page iv

Page 6: Railway Seminar Repport

Railway Reservation System

CHAPTER 1

Introduction

1.1 General Introduction

This project introduces railway reservation system . It explains how reservation is being done in

Indian Railways. The step by step procedure is explained . This project is developed in JAVA

language . Almost all the packages have been used in this project. Proper comments have been given

at desired locations to make the project user friendly. Various exceptions and classes are used to

make a complete use of this language. This project is well versed with the programming . Railway

reservation can easily be accompanied with the help of this.

1.2 Product Definition

We have come to final conclusion after analyzing the existing system of the “Solitaire Software”. We

came to know that it is very difficult for the person to maintain records manually, same in the case

with the person that done the reservation, so in order to provide the person with such a system that

helps him easy in maintaining the records of the passenger, we are going with this project.

1.3 Problem Definition

Data redundancy and inconsistency.

Difference in accessing data.

Data isolation.

Security problem

Communication gap

Updating problem

User friendly

Help user in viewing his data and privileges.

Help the administrator to handle all the changes.

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page 1

Page 7: Railway Seminar Repport

Railway Reservation System

1.4 Functionality to be provided

Maintenance of train information.

Maintenance of passenger information.

Maintenance of fares of sold tickets.

Maintenance of the reports.

1.5 Processing Environment – Hardware and Software

Operating system is a platform on which the specified application will be used. Once it has

been complete, the software we are about to make, will execute on both client machine and

server machine.

Configuration

O/S –Windows XP, Windows 7 Service pack-2, etc

RAM – Min. 128 MB

Eclipse IDE (Integrated Development Environment)

1.6 Solution Strategy

1.6.1 Classic Life Cycle Model

This is a sequential approach to software development.It begins with analysis and progresses through

design, coding, testing & maintenance.The pictorial representation of SDLC is shown below.

Figure 1

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page 2

Page 8: Railway Seminar Repport

Railway Reservation System

Figure 2

Phases of System Development Life cycle is shown above.

1.7 Overview of Java

Java is a general-purpose, object-oriented language

We can develop two types of JAVA programs

Stand-alone applications

Web applets

Stand-alone applications are programs written in Java to carry out certain tasks on a local

computer

Executing a stand-alone Java program involves two steps

Compiling source code into bytecode using javac compiler

Executing a bytecode program using java interpreter

Applets are small Java programs developed for internet applications

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page 3

Page 9: Railway Seminar Repport

Railway Reservation System

An applet located on a remote computer can bedownloaded via internet and executed on a

local computer using java-enabled browser.

Applets are embedded in a HTML document and run inside a Web page, creating and running

applets are more complex than creating an application.

Stand-alone programs can read and write files and perform certain operations that applets

cannot do. An applet can only run within a browser.

Figure 3

CHAPTER 2

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page 4

Page 10: Railway Seminar Repport

Railway Reservation System

Design

This process translates the requirement into a representation that can be accessed before putting into

actual code, design include the following activities:

1. Algorithm

2. Logical Design Flow Charts

3. Physical Design

4. Database Design

2.1 Algorithm

Under Admin class, 7 different functionalities has been achieved

1. Add new User

a) Read the file called “user.txt” using BufferedReader and write the same file using

FileWriter

b) Enter user id, user name, password, age, gender, address and print it

2. Display user details

a) Read the file “user.txt” using BufferedReader

b) Fill the user.txt with the above mentioned user details such as user id, user name etc

separated by $ symbol and print it

3. Add new train

a) Read the file called “train.txt” using BufferedReader and write the same file using

FileWriter

b) Enter train no, train departure time in hours and minutes, arrival time in hours and

minutes, SL seats, AC seats, SL fare, AC fare and print it

4. Display all trains

a) Read the file called “train.txt” using BufferedReader

b) Fill the train.txt with the above mentioned train features such as train no, SL seats etc

separated by $ symbol and print it

5. Scheduled trains

a) Write the file called “schedule.txt” into the “train.txt” file by using FileWriter, where

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page 5

Page 11: Railway Seminar Repport

Railway Reservation System

“train.txt” is read using BufferedReader

b) Enter the date, month, year, SL seats available, AC seats available separated by $

symbol and print that all trains are scheduled as per the date

6. Display schedule

a) Read the file called “schedule.txt” using BufferedReader and display the schedule by

entering trip no, train id, schedule date, SL seats, AC seats which will be read

2.2 Flowchart

Flowchart is drawn for “user” class to demonstrate how user make use of “admin” class details to

book the ticket and cancel the ticket.

railway reservation system flow chart

Figure 4

CHAPTER 3

Testing

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page 6

Page 12: Railway Seminar Repport

Railway Reservation System

Testing is the major control measure used during software development. Its basic function is to

detect errors in the software. During requirement analysis and design, the output is a document that is

usually textual and no executable. After the coding phase, computer programs are available that can

be executed for testing purpose. This implies that testing not only, has to uncover errors introduced

during coding, but also errors introduced during previous phase. Thus the goal of testing is to

uncover the requirements, design and coding errors in the programs. So after testing, the outputs of

my project are as follows:

3.1 Tested Result

1.Administrator2.User2

1.Show profile2.Edit profile details3.Display schedule based on train4.Display schedule based on source and destination5.Display schedule based on date6.Display all trains schedule7.Check berth availability 8.Book tickets9.Cancel ticket10.exit8Enter user id2Enter user nameningappaEnter passwordp130109Enter trip number8Enter no of tickets2Enter type of classacEnter passanger1detailsName:ninguAge:24gender:MEnter passanger2detailsName:anantAge:23gender:M

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page 7

Page 13: Railway Seminar Repport

Railway Reservation System

|----------------------------------------------------------------------------|| Railway Reservation System || Version 1.o developed by ANANT ||----------------------------------------------------------------------------||Ticket NO/PNR No:1386-8-2-2-ac-R ||----------------------------------------------------------------------------||Booked by Date and Time:31-12-2013|Booked by userId:2 ||----------------------------------------------------------------------------||Train No:1386|Train Name:krishna Express|Trip No:8 ||----------------------------------------------------------------------------||Source Station:adilabad|Destination Station:tirupathi ||----------------------------------------------------------------------------||Travel Date and Time:31/12/2013,6:5 ||----------------------------------------------------------------------------||Passanger Details ||----------------------------------------------------------------------------||S.NO |Name |Age |Gender |Class |Seat No|R/wr|Fare ||----------------------------------------------------------------------------||1 |ningu |24 |M |ac |1|R |1000| ||2 |anant |23 |M |ac |1|R |1000| ||----------------------------------------------------------------------------|| Total charges|2000 ||----------------------------------------------------------------------------|

Maintenance is done after the software has been installed at the user sight. As error bound to occur,

so changes has to be done to meet the user needs.

CHAPTER 4

Feasibility Analysis

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page 8

Page 14: Railway Seminar Repport

Railway Reservation System

Depending on the results of the initial investigation, the survey is expanded to a more detailed

feasibility study. A feasibility study is a test of a system proposal. According to its workability,

impact on the organization, ability to meet user’s needs and effective use of the resources. Main task

done during the feasibility study are:-

1. Evaluation of existing system and procedures. I went through various codes written in

C and C++ to gather information about the software system. They are using and

evaluating those system and the procedures invoked in it during the period of

feasibility study.

2. Analysis of alternative systems:- after studying the various systems I derived various

alternatives through which I develop my project and evaluated the alternative. The

most appropriate is selected.

4.1 Economic Feasibility

The only tangible benefit provided by the proposed system is that the paper work is Reduced to the

minimum and hence the reduction in code incurred on Feasibility and its usage in reservation. The

system provide many benefits that can’t be measured in terms of Money for e.g. user’s friendliness,

more over, user response being more efficient.

4.2 Technical Feasibility

The proposed system is technically feasible as it can be developed easily with the help of available

technology. The proposed system requires MS office 97 or 2000 with Eclipse IDE & Eclipse has a

back-end tool storing a database. The database can be easily interconnected using Eclipse IDE.

4.3 Operational Feasibility

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page 9

Page 15: Railway Seminar Repport

Railway Reservation System

Automation make our life easy. The proposed system is highly user friendly and is much easily able

to interact with the system. Therefore the users will readily accept the system as data entry and

making queries can be easily done.

CHAPTER 5

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page 10

Page 16: Railway Seminar Repport

Railway Reservation System

Advantages of Railway Reservation System

Now one can easily plan the journey comfortably as the process is efficient and fast with being easy

to access. Reservations can be made through the Indian railways site or at the ample reservation

centers all over the country. Also now there are authorized agencies which provide reservation

facility on behalf of India railways and without waiting in long line one can easily book a ticket. The

booking is done through an Eticket issue which have a PNR number of which one has to take a print

and just have to show at the station.

It not only provide reservation but cancellation can also be done through this system at ease and one

can use a credit card to complete the process.

This being a big step in terms of improvement in the railway system it is widely accepted across the

country.

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page 11

Page 17: Railway Seminar Repport

Railway Reservation System

CHAPTER 6

Future Scope of the Project

This project will be able to implement in future  after making some changes and modifications as i

made my project at a very low level. So the modifications that can be done in this project are:

Tatkal ticket booking

With the help of this project we are not able to calculate number of reserved and unreserved

seats, so we have to make a project to calculate numbers of seats

We cannot book one sleeper and one ac different tickets,which can be modified in future

SMS receiving in the mobile after the ticket is booked

Booked History

Refund of money after cancelling the ticket during general type of reservation

Internet banking and credit card facility

CHAPTER 7

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page 12

Page 18: Railway Seminar Repport

Railway Reservation System

Conclusions

Train record is achieved i.e. the schedule of various trains and no of trains

Passengers details can be stored which ease user to make reservation

Secured code is achieved by giving unique password and user name to administrator

User details can be modified by the user and user can change the password

Display schedule based on source and destination as well based on date and train

We can book unlimited number of tickets through this code

References

Head First Java by Kathy Sierra & Bert Bates. Your Brain on Java- A Learner’s Guide 2nd

Edition – Covers Java 5.0

www.wikipedia.com

www.scribd.com

Department of Electronics and Communication Enginnering, SJCE Mysore-570006 Page 13