Project Railway Reservation System
Project Railway Reservation System
Project Proposal
reservation system.
different trains.
maintenance.
1
FEASIBILITY STUDY
Thus, since the feasibility study may lead to the commitment of large
resources, it becomes necessary that it should be conducted competently
and that no fundamental and that no fundamental errors of judgment are
made.
1. Statement of constraints.
3. Description of outputs.
2
Once the constraints are spelled out, the analyst identifies the system’s
specific performance objectives, which are the candidate system’s
anticipated benefits, and measurable objectives.
• Cost savings.
Feasibility study is a high level version of the entire system analysis and
design a process. The purpose of the feasibility is not to solve the problem
but to determine if the problem is worth solving. It is conduct performance is
defined by the identification of specific system objects and descriptive of
output.
• Technical Feasibility.
3
TECHNICAL FEASIBILITY
4
• The facility to produce output in a given time.
• Response time under certain conditions.
• Easy debugging.
It center’s around the existing computer system (Hardware & Software) and
to what extent it can support the proposed system. The necessary hardware
and software tools available in the organization and the software
recommended support the system objects.
5
Technical feasibility is based on three questions :
Generally the technology for any defined solution is available. The question
which should be consider is whether that technology is mature enough to be
easily applied to the problem. We can say that the technical feasibility, the
analyst must find out whether current technology resources which are
available in the organization are capable of handling the user requirement.
6
ECONOMIC FEASIBILITY
So, total cost of the proposed system is very cheap. Hence the organization
will not find any difficulty at the installation time and after installation
user also newer find difficulty i.e. Hang, slow speed or slow response
time.
Economic analysis is the most frequently used method for evaluating the
effectiveness of the proposed system. This is an on going effort that
improves in accuracy at each phase of the system life cycle. As the
necessary software and hardware is available in the organization. In the
initial investment for proposed system is nil. The proposed system
minimizes the time and the effort of the data collection answering queries
and generates reports which result significant saving of the operating cost.
Thus the proposed system is economically feasible.
7
• Management time.
8
OPERATIONAL FEASIBILITY
Users are inherently resistant to change and computers have been known to
facilitate change. An estimate should be made of how strong a reaction the
user is likely to towards the development of a new system. As the proposed
system is user friendly package with all visual aids the effort that goes into
education and training the user is almost negligible. Therefore resistance to
the proposed system is nil.
• What to the end users & the management feal about the problem or
solution.
9
5. Efficiency :- The system should make the optimum use of the
available resources including time, minimum process delay & other
related activities.
10
MODULE DESCRIPTIONS
ENQUIRY :
RESERVATION :
This module includes booking of the ticket by any passenger as per the
inputs (like station, date of journey, class of reservation, etc.). And then after
checking the availability and status of reservation tending passenger a
unique PNR No. along with a reservation ticket with full details of journey
viz., arrival, departure, etc.
The booking officer has to collect, either verbally or in written, the personal
data of the passenger(s) and then enters to the database. The passenger is
issued a PNR No.
CANCELLATION :
11
In Cancellation module, the advance booking for a train by a passenger is
cancelled by on passenger's request. It requires only PNR No. to enter. The
computer-based system cancels the reservation by deleting the passenger's
record and automatically adding a seat to the seats available field for that
train or converting the waiting status of first applicant in waiting list to
confirmed passenger (as per which is applicable).
PASSWORD :
12
PROBLEM ANALYSIS
To develop software the first thing, which comes in mind, is that why we
need to develop software. What are the problems faced by the user or staff to
maintain manually their records so that they decided to computerized their
working.
In Railway Reservation there are so many tasks, which are tedious and time
consuming. The person who maintain the reservation manually face so many
problems like searching details of a booked tickets, security problem is the
main problem which is faced by the person that they maintain registers and
any one can change details easily.
13
REQUIREMENT SPECIFICATIONS
ANALYSIS :
We collected data needed for the project by:
• From manuals.
• From catalogues.
• From Internet.
FACT FINDING :
The requirement gathering is an art the person who gathers requirement
should have knowledge of what & when together information & by what
resources. The requirements are gather regarding organization which include
14
information regarding its policies, objectives & organization structure,
regarding user staff. It includes the information about job function & their
personal details, regarding the functions of the organization including
information about workflow, work schedules & working procedures.
• Record Reviews.
• On-site observations.
• Interviews.
• Questionnaires.
15
In On-site Observation we find that the person who maintain railway
reservation. In that system he faces so many problems. Like He maintains
ticket details register and maintain registers for passenger details, reservation
ticket issue and cancellation records. This may results error in calculations.
This system is time consuming too. The main problem faced by passengers
is that the manual process is very time consuming.
SOFTWARE ENVIRONMENT
The wide spread use of Basic with various type computer and led to many
enhancements to the language. With developments of the Microsoft
Windows Graphical User Interface (GUI) in the late of 1980’s and the early
1990’s the natural evaluation of BASIC was Visual Basic, which was
created by Microsoft Corporation in 1991.
Visual Basic Programs are easily readable and understandable because their
statements are almost similar to the English Language Statements. Visual
Basic Programs are created in an Integrated Development Environment
16
(IDE). The IDE allows the programmer to create run and debug Visual Basic
Programme conveniently.
The "Visual" part refers to the method used to create the graphical user
interface (GUI). Rather than writing numerous lines of code to describe the
appearance and location of interface elements, you simply add rebuilt
objects into place on screen. If you've ever used a drawing program such as
paint, you already have most of the skills necessary to create an effective
user interface.
The visual Basic programming language is not unique to Visual Basic. The
Visual Basic programming system, Applications Edition included in
Microsoft Excel, Microsoft access, and many other Windows applications
17
uses the same language and a subset of the Visual Basic language the
investment you make in learning Visual Basic will carry over to these other
areas.
MICROSOFT ACCESS :
Using Microsoft Access, you can manage all your information from a single
database file. Within the file, you can use:
• Data access pages to view, update, or analyze the database's data from
the Internet or an Intranet.
Store data once in one table, but view it from multiple locations. When you
update the data, it's automatically updated everywhere it appears.
18
SYSTEM REQUIREMENT
SPECIFICATION
Once the system analyst have identified the precise user requirements and
analyzed these requirements to weed out inconsistencies, they proceed to
write the document called the Software Requirements Specification (SRS). It
is the final output of the requirements analysis and specification phase.
(i) Introduction
(a) Purpose
(b) Scope
(c) Definition, Acronyms
19
(d) References
(e) Overview
(ii) Description
BACKGROUND :
The basic objective behind the creation of this project was the innumerable
problems faced by the users in managing database of Railway Reservation
System. Normally if someone decides to check the information of Railway
Reservation of any year then he/she face a lot of task for that. For example,
User wants to know information of Railway Reservation of particular
subject in a particular state then no present system that generate directly
reports in this concern and we have collect information from different
documents . The entire process was very time consuming and monotonous.
20
A system was needed which can overcome these problems and make the
entire process very simple.
OVERALL DESCRIPTION :
This project is being developed with the intention of fixing all the problems
currently affecting the manual system. It contains all the important links to
the various tasks or categories of topics related to manage Railway database.
The project is an important resource for people, who want studies about the
Railway Reservation degree outturn in a different subjects and different
field’s also state wise estimation. With the help of this project, user can
collect details about doctoral degree, the related tasks that they wants to
perform and that is all with just few clicks of mouse.
REQUIREMENT ANALYSIS :
Requirement analysis is done in order to understand the problem,
which the software system is solve. The emphasis is on identifying
what is needed for the system and not how the system will achieve
the same. Often at least two parties are involved in software
development-A client and a developer. The developer has to develop
the system to satisfy the client’s needs. Here is this case the problem
is to automate an existing manual system. Analysis of existing system
is done to identify the requirement of the client and interaction with
the client and end user. By studying the existing manuals and
procedures new requirements are identified.
DEVELOPMENT GUIDELINES :
The following aspects are generally recognized in the industry as the goals
of software engineering, which are kept in mind during development
of software systems.
• Modifiability
• Accuracy
• Reliability
21
• Efficiency
• Simplicity
• Future Proofing
• Modularity
• Scalability
• Integrability
22
Usability :- The effort required for learning to operate the input and
interpreting the output of an application.
23
SYSTEM DESIGN :
The design of the information system produce the detail that state
how a system will meet the requirement identified during system
analysis, is often referred to as stage of logical design, in contrast to
the process of developing program software, which is referred to as
physical design.
24
The output of requirements management defines what the system will do;
the output of design (design document or design model) defines how it will
be done and provides the relevant amount of information to the developers
to enable him/her to write a valid and efficient code.
DESIGEN OVERVIEW :
The design stage takes the final specification of the “DATABASE ON
RAILWAY RESERVATION SYSTEM ” from analysis and finds the
best way of fulfilling them, give the technical environment and
previous decision on required level of automation.
25
LOW LEVEL DESIGN :
This utility create column and constraint definitions form the entity
model and the table / entity mapping entered in :
CASE* dictionary :
• Generation of table.
• Primary key.
• Unique key.
• Foreign key.
MODULE DESIGN :
26
USER PREFERENCE :
Based on user preference like form name, validation of primary key,
layout of forms, layout of fields. Creating title for forms, mandatory
input field prompts etc. was incorporated here.
DESIGN METHODOLOGY :
27
replication. It should be noted that connectivity between tiers can be
dynamically changed depending upon the user's request for data and
services.
28
HARDWARE REQUIREMENTS
• A Mouse.
• A Keyboard.
• A Monitor.
29
LIMITATIONS :
We have made humble efforts in preparing the software, so that it can be in
the functioning condition. But due to lack of time some conditions cannot be
applied like – This project cannot work in client/server environment.
Another limitation is that software will not run under 3.11 operating system.
FURTHER IMPROVEMENTS :
The further improvements can be done in project, are list can be generated in
different format as according to the requirements, printing of list on printer
directly given the commands or by pressing the command button, backup of
all the records in the database. It can be made like it can work in
client/server environment.
30
DATABASE MANAGEMENT SYSTEM
The most important thing in a database is that the database should be treated
as a foundation stone for the future application for the organization.
31
DATA TABLE
LOGIN :-
The field Login is used to accept the Login-IDs of the User which are
provided only to a few persons in the railway to provide security.
The Field Password is used to accept password from the user to prevent
unauthorized access.
ENQUIRY :-
32
This relation is used to store the passenger details for reservation
of the train.
The Field USERNAME is used to accept the name of the
passenger for whom the reservation is required.
The Field PASSWORD is used to accept password from the user to prevent
unauthorized access.
The Field PINCODE is used to accept pin code of the city of the user.
RESERVATION :-
33
11. SEAT NO. NUMBER
12. CLASS TEXT
13. RENT NUMBER
The field TRAIN NO. is used to accept the train number of the
trains.
The field TICKET NO. is used to accept the ticket number of the
trains.
The Field NAME is used to accept the name of the passenger for
whom the reservation is required.
The Field AGE is used to accept the age of the passenger for
whom the reservation is required.
The Field GENDER is used to accept the name of the sex for
whom the reservation is required.
The Field SEAT NO. is used to accept the seat no. of the
passenger of the reservation.
34
The Field RENT is used to accept the rent of the reservation.
TRAIN ENQUIRY :-
35
The field TRAIN NO. is used to accept the train number of the
trains.
The field TRAIN NAME is used to accept the train name.
The field FROM is used to accept the initial point of the train.
The field DEP is used to accept the time of the departure of the train.
The field TO is used to accept the time of the destination of the train.
The field ARR is used to accept the time of the arrival time of the train.
The field TRAVEL is used to accept the travel time of the train.
36
DATA FLOW DIAGRAM
The Data Flow Diagram shows the flow of data or information. It can be
partitioned into single processes or functions. Data Flow Diagrams can be
grouped together or decomposed into multiple processes. As information
moves through software, it is modified by a series of transformations. A data
flow diagram (DFD) is a graphical representation that depicts information
flow and the transform that are applied as data move from input to output at
any level of data abstraction. In fact Data Flow Diagrams may be partitioned
into levels that represent increasing information flow and functional details.
Therefore the DFD provides a mechanism for functional modeling as well as
information flow modeling.
37
Input Data Input Data
External Entity Level 1 External Entity
Processing
Intermediate Data
Output Data
Intermediate Data
Level 3
Processing
Data store
Output Data
External Entity
In this diagram the external entities provide input data for the processing
during the processing some intermediate data is generated. The data store is
the repository of data.
38
I1
Process Output
I2
DFD’s can represent the system at any level of abstraction. DFD of ‘0’ level
views entire software elements as a single bubble with indication of only
input & output data. Thus ‘0’ level DFD is also called as “Context diagram”.
• Keep a note of all the processes & external entities, give unique
names to them identify the manner in which they interact with each
other.
• Do numbering of processes.
• The data store should contain all the data element that flow as input
& output.
39
Types of DFD : -
Different levels of DFD show the application at different levels of detail-
The next level down (Level 1) shows the whole application again but with
the main Processes, the data flows between them and their individual links
to the data Stores. Data Stores remain the same at all levels of abstraction
but new stores may be introduced at any level. These are usually temporary
stores such as views and cursor, which are required in lower level processes.
The physical DFD defines who is doing a particular operation. It shows how
things happen in the physical components.
A logical DFD shows what a system is doing rather than what is being done.
It shows what occurs i.e. it only specifies type of the operation perform.
40
DATA FLOW DIAGRAM FOR RAILWAY
RESERVATION SYSTEM : -
Customer
Railway
Edit Reservation Reservation Cancellation
System
41
ENTITY RELTIONSHIP DIAGRAM
The E-R data model is based on a perception of a real word which consist of
a set of basic object. The overall logical structure of a database can be
expressed graphically by an E-R diagram.
• Entity
• Attributes
• Relationship
• Key Attributes
ENTITY :
Entities are the principal data object about which information is to be
collected. Entities are usually recognizable concepts, either concrete or
abstract, such as person, places, things, or events, which have relevance to
the database. An entity is analogous to a table in the relational model.
(a) Entity Set :- An entity set is the collection of entities of the same type
i.e. the entities which are share common properties or attributes.
42
ATTRIBUTE :
Each entity can have a number of characteristics which is called “attribute”
of that entity.
TYPES OF ATTRIBUTES :-
Ex :- The loan number attributes for a specific loan entity refers to only
one loan number, such attributes are said to be single value.
43
Ex :- Suppose that the customer entity set has an attribute age, which
indicates the customer’s age. If the customer entity set also has an
attribute date of birth, we can calculate age from date of birth and the
current date. Thus age is a derive attribute.
RELATIONSHIP :
A data relationship is a natural association that exists between one or more
entities. The connectivity of a relationship describes the mapping of
associated entity instances in the relationship. The values of connectivity are
“one” or “many”. The cardinality of a relationship is the actual number of
related occurrences for each of the two entities. The basic types of
connectivity for relations are :
• One-to-one (1:1)
• One-to-many (1:m)
• Many-to-many (m:m)
KEY ATTRIBUTES :
The key attribute is an attribute that uniquely identifies an entity in the entity
set.
Ex :- Employee_code can be the key attribute for the entity set employee
because it uniquely identifies each employee entity.
44
SYMBOLS OF E-R DIAGRAM :
45
• Double Ellipses : Which represent multi-valued attributes.
46
E-R DIAGRAM OF RAILWAY RESERVATION
DATABASE :-
Source
Date
Entry Date
Destination
Train Availability
Train Name
Class Distance
New Rates
47
Address
Age
Name
State
Pin code
Sex
Login_id
Password
48
ACTIVITY DIAGRAM FOR RAILWAY
RESERVATION SYSTEM
Customer Administrator
Start
No
View Details Check
Yes Rese-
rvation
Inform Customer
List
Fill Form No
Give Details
Yes
Submit Form Issue Ticket
Give Form
Stop
Return Payment
49
TESTING & DEBUUGGING
SYSTEM TESTING :
Testing Methodology :
The various test cases have been made to find out the bug if any in the
application. The test cases have been made keeping in mind to test the
individual module as well as system as a whole. The test cases have been
given by the client which in my application was NISTADS team. Now the
application is fully functional without any bugs.
The testing activities are done in all phases of the lifecycle in an iterative
software development approach. However, the emphasis on testing activities
varies in different phases. This procedure explains the focus of testing in
inception, elaboration, construction and transition phases. In the inception
phase most of requirements capturing is done and the test plan is developed.
In elaboration phase most of design is developed, and test cases are
developed. Construction phase mainly focuses on development of
components and units, and unit testing is the focus in this phase. Transition
phase is about deploying software in the user community and most of the
system testing and acceptance testing is done in this phase.
There are following rules that can serve well as testing objectives:
50
UNIT TESTING :
Unit testing is done as per Testing Guidelines. It refers to the process of
changes made to a new or existing system. Unit testing is a process in which
a tester test the each module individually.
MODULE TESTING :
Module testing is also known as unit or component testing phase, module
testing is concerned with the testing of the smallest piece of software for
which a separate specification exists. It focuses on verification of the
smallest unit of software design -- the module. Using the detailed design
specification as a guide, important control paths are tested to uncover errors
within the boundary of the module. The man to machine interfaces are tested
to assure that information properly flows into and out of the module,
allowable boundary values are verified, and module-data structure interface
is tested to assure that data is properly stored according to established
integrity rules. Module testing is performed during the Build Stage.
INTEGERATION TESTING :
The system integrator compiles and links the system in increments. Each
increment needs to go through testing of the functionality that has been
added, as well as all tests the previous builds went through (regression tests).
Within iteration, integration testing is executed several times until the whole
system has been successfully integrated.
Testing is done as per the Test Plan for the project. A Testing Team who
may be an independent team or may include members of the project team
carries out the tests.
51
SYSTEM TESTING :
System testing is initiated through a System release and a Release Note from
Development team to the testing team. The purpose of the System Testing is
to ensure that the complete system functions are intended. The system roles
in PMP compile and link the system in increments.
System Testing is similar to the Integration testing except that it is run under
customer environment or in an environment as similar as to the customer
environment, as possible. During the System testing the performance criteria
is tested and factors like stress, transaction timing, volume of data,
transaction frequency etc. are validated. The ability of the Software to be
installed in an environment likely to be encountered at the site of the
customer is also checked here.
System testing of the software is performed against base lined software and
the base lined documentation of the customer requirements and the software
requirements specification documentation.
• Regression testing (to ensure that changes have not caused unintended
effects on the baseline).
52
processing and the results examine. A limited number of users try to
use it in unforeseen ways. It is preferable to discover any surprise
before the organization implements the system and depend upon it.
In many organizations persons other than those who wrote the original
programs to ensure more complete and unbiased testing and more
reliable testing perform testing.
The norms that were followed during the phase were that after the
developer of the software has satisfied regarding every aspect of the
software under consideration he is required to release the program
source code. A setup name release is used to copy the name file
from the developers’ user area to a project area in the directory
named with developer user name. Here all the final testing used to be
done by persons other than the developer himself .if some changes
were desired in the program the developer were required to use
another setup. Retrieve, which copied back the latest version of the
program to developer areas.
Since the user are not familiar to the new system the data screens
were designed in such a way that were-.
• Consistent
• Easy to use
• Has a fast response time
53
program graph to derive the set of linearly independent test that will
ensure coverage.
In white box testing the test developer has access to the source code and can
write code that links into the libraries which are linked into the target
software. This is typical of unit tests, which only test parts of a software
system. They ensure that components used in the construction are functional
and robust to some degree.
Condition Testing :
Condition testing is tests case design method that exercise the logical
conditions contain in a program module. a simple condition is a
Boolean variable or a relational expression.
Branch Testing :
I have used data flow testing due to check the path of program
according to the locations of definitions and uses of variables in the
program.
54
derive set of input conditions that will fully exercise all functional
requirements for a program.
In black box testing the test engineer only accesses the software through the
same interfaces that the customer or user would, or possibly through
remotely controllable, automation interfaces that connect another computer
or another process into the target of the test.
In this test overall functioning of the product is tested. Inputs are given &
outputs are checked. It does not care about internal structure of the product.
Black box test treats the system as black box, so it does not explicitly use
knowledge of internal structure. Black box test design usually described as
focusing on testing functional requirement. Black box testing is also known
as Behavioral, Functional & Closed box testing.
Black box testing test the overall functional requirements of the product.
Inputs are supplied to the product & outputs are verified. If the output
obtained are same as the expected once then the product needs the functional
requirement. In this approach internal procedures are not considers.
• Interface errors.
• Performance errors.
55
I have used graph-based testing method for removing errors associated
with relationships. The first step in this testing is to understand the
objects that are modeled in software and the relationship that connect
these objects.
Equivalence Partitioning :
For example :
56
USER ACCEPTANCE TESTING :
An Acceptance Plan is prepared and handed over to the customer. However
it is at the discretion of the Project Manager to decide when to prepare the
Acceptance Plan but the Project Manager should ensure that it is at least
prepared before the completion of construction phase.
This Plan helps the customer in planning, scheduling and providing
resources to carry out the customer acceptance testing. The acceptance
testing is done during deployment.
The Acceptance Plan is reviewed and based on the Review Procedure and
the review records are maintained properly.
Test Plan :
Initial test plan addresses system test planning, and over the elaboration,
construction and transition phases this plan is updated to cater other testing
requirements of these phases, like, unit & integration testing.
Identification of various forms to be used to record test cases and test results
The Test Plan is reviewed as per the Review Procedure as defined by the
Project Manager. Adequate Review Records are maintained.
57
Test Reports and Debugging :
The testing team prepares all the defects are reported in the organization’s
standard defect tracking system. The defects found are categorized,
prioritized and reported as Testing Guidelines. Development team also uses
the defect tracking system to report the status of defects. Testing team before
closure validates the defects eliminated by development team.
• Formal verification
58
The following error messages and validations are used in the system.
Error 1: When Userid and password fields both are blank or invalide
59
Test Data and Test Cases :
Test cases describe the details of every test for each feature of the module.
The inputs for preparation of test cases are the software requirement
specifications and/or Design document/model. System test cases are
prepared in elaboration phase, and initial integration test cases are prepared
which are refined and completed in construction phase. These test cases are
reviewed as per Review Procedure as defined by the Project Manager and
adequate review records are maintained. These reviews are done against
requirements and Design to ensure adequacy and completeness.
The expected results are specified in test cases, against test to be carried out.
60
WORKING DETAILS
(CODING & OUTPUT)
Dim A As Integer
Dim s As String
Dim n As Integer
61
ProgressBar1.Max = 100
ProgressBar1.Min = 1
Timer1.Interval = 100
s = " Railway Reservation Project System"
Image1.Stretch = True
Image1.Picture = LoadPicture(App.Path + "\" + "TRAIN.JPG")
End Sub
Output :-
62
FORM 2 : (LOGIN)
Dim db As Database
Dim rs As Recordset
63
Text2.Text = ""
Text1.SetFocus
rs.MoveNext
End If
Next A
End Sub
64
Output :-
65
MDI FORM :
66
End Sub
67
Output :-
68
Dim db As Database
Dim rs As Recordset
69
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Else
Text1.SetFocus
End If
End Sub
70
End If
End Sub
Output :-
71
Dim db As Database
Dim rs As Recordset
72
MDIForm1.cancelreservation.Enabled = True
f=1
Exit For
End If
rs.MoveNext
Next K
If (f = 0) Then
MsgBox ("Your username & Password not match")
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
End If
If (f = 1) Then
Unload Me
End If
End Sub
73
Form5.Text6.Text = rs.Fields(6).Value
Form5.Text7.Text = rs.Fields(7).Value
Form5.Text8.Text = rs.Fields(8).Value
Unload Me
End If
Else
MsgBox ("user not found")
End If
End Sub
Output :-
74
FORM 5 : (USER INFORMATION)
75
Dim db As Database
Dim rs As Recordset
76
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Else
Text1.SetFocus
End If
End Sub
77
Output :-
78
Dim db As Database
Dim rs As Recordset
79
Private Sub Form_Load()
Set db = DBEngine.OpenDatabase(App.Path + "\" + "db2c")
Set rs = db.OpenRecordset("db2", dbOpenDynaset)
Combo1.AddItem "ALIGARH"
Combo1.AddItem "AGRA"
Combo1.AddItem "DELHI"
Combo1.AddItem "JAMMU"
Combo1.AddItem "ALLAHBAD"
Combo1.AddItem "GAZIABAD"
Combo1.AddItem "LACKHNOW"
Combo1.AddItem "BANGLOR"
Combo1.AddItem "CALCUTTA"
Combo1.AddItem "MUMBAI"
Combo1.AddItem "MADRAAS"
Combo1.AddItem "DEHRADUN"
Combo2.AddItem "ALIGARH"
Combo2.AddItem "AGRA"
Combo2.AddItem "DELHI"
Combo2.AddItem "JAMMU"
Combo2.AddItem "ALLAHBAD"
Combo2.AddItem "GAZIABAD"
Combo2.AddItem "LACKHNOW"
Combo2.AddItem "BANGLOR"
Combo2.AddItem "CALCUTTA"
Combo2.AddItem "MUMBAI"
Combo2.AddItem "MADRAAS"
Combo2.AddItem "DEHRADUN"
With MSFlexGrid1
.Cols = 31
.Rows = 1
.ColWidth(0) = 1000
.ColWidth(1) = 2000
.ColWidth(2) = 1400
.ColWidth(3) = 1000
.ColWidth(24) = 2000
.ColWidth(25) = 2000
.ColWidth(26) = 2000
80
.Row = 0
.Col = 0
.Text = "Train no"
.Col = 1
.Text = "Train Name"
.Col = 2
.Text = "P"
.Col = 3
.Text = "From"
.Col = 4
.Text = "Dep"
.Col = 5
.Text = "To"
.Col = 6
.Text = "Arr"
.Col = 7
.Text = "Travel"
.Col = 8
.Text = "R"
.Col = 9
.Text = "MON"
.Col = 10
.Text = "TUE"
.Col = 11
.Text = "WED"
.Col = 12
.Text = "THU"
81
.Col = 13
.Text = "FRI"
.Col = 15
.Text = "SUN"
.Col = 16
.Text = "1A"
.Col = 17
.Text = "2A"
.Col = 18
.Text = "3A"
.Col = 19
.Text = "CC"
.Col = 20
.Text = "FC"
.Col = 21
.Text = "SL"
.Col = 22
.Text = "2S"
.Col = 23
.Text = "3E"
.Col = 24
.Text = "AC_1st_class_charge"
.Col = 25
.Text = "AC_2nd_class_charge"
.Col = 26
.Text = "AC_3rd_class_charge"
.Col = 27
82
.Text = "CC_charge"
.Col = 28
.Text = "FC_charge"
.Col = 29
.Text = "SL_charge"
.Col = 30
.Text = "2S_charge"
End With
Image1.Stretch = True
Image1.Picture = LoadPicture(App.Path + "\" + "ll.JPG")
End Sub
83
rs.Fields(26).Value & vbTab & rs.Fields(27).Value & vbTab &
rs.Fields(28).Value & vbTab & rs.Fields(29).Value & vbTab &
rs.Fields(30).Value & vbTab & rs.Fields(31).Value
K=K+1
End If
rs.MoveNext
Next n
End Sub
84
End Sub
Output :-
85
Dim db As Database
Dim rs As Recordset
Dim DB1 As Database
Dim RS1 As Recordset
86
ElseIf (Combo1.ListIndex = 6) Then
Text12.Text = rs.Fields(31).Value
End If
End Sub
87
Set DB1 = DBEngine.OpenDatabase(App.Path + "\" + "DB3c")
Set RS1 = DB1.OpenRecordset("DB3", dbOpenDynaset)
Combo1.AddItem "AC_1st_class_charges"
Combo1.AddItem "AC_2nd_class_charges"
Combo1.AddItem "AC_3rd_class_charges"
Combo1.AddItem "CC_class_charges"
Combo1.AddItem "FC_class_charges"
Combo1.AddItem "SL_class_charges"
Combo1.AddItem "2S_class_charges"
Combo2.AddItem "s1"
Combo2.AddItem "s2"
Combo2.AddItem "s3"
Combo4.AddItem "Female"
Combo4.AddItem "Male"
Combo3.AddItem "Lower"
Combo3.AddItem "Middle"
Combo3.AddItem "Upper"
Image1.Stretch = True
Image1.Picture = LoadPicture(App.Path + "\" + "qq.JPG")
End Sub
Output :-
88
FORM 8 : (CANCEL RESERVATION)
89
Dim db As Database
Dim rs As Recordset
90
Text12.Text = ""
End If
End Sub
91
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text13.Text = ""
Text14.Text = ""
End If
End If
End Sub
Output :-
92
FORM 9 : (SEARCH BY PASSENGER NAME)
93
Dim db As Database
Dim rs As Recordset
94
K=K+1
f=1
End If
rs.MoveNext
Next b
If (f = 0) Then
MsgBox ("record not found ")
End If
End Sub
.ColWidth(0) = 1000
.ColWidth(1) = 1000
.ColWidth(2) = 2000
.ColWidth(3) = 1000
.ColWidth(4) = 2000
.ColWidth(5) = 2000
.ColWidth(8) = 2000
.ColWidth(12) = 2000
.Row = 0
.Col = 0
.Text = "ID"
.Col = 1
.Text = "Train no"
.Col = 2
.Text = "Train Name"
95
.Col = 3
.Text = "tno"
.Col = 4
.Text = "Name"
.Col = 5
.Text = "F_Name"
.Col = 6
.Text = "Age"
.Col = 7
.Text = "Sex"
.Col = 8
.Text = "Date_of_journey"
.Col = 9
.Text = "Coach"
.Col = 10
.Text = "Berth"
.Col = 11
.Text = "seat_no"
.Col = 12
.Text = "class"
.Col = 13
.Text = "rent"
End With
Image1.Stretch = True
Image1.Picture = LoadPicture(App.Path + "\" + "pp.JPG")
End Sub
96
Output :-
97
Dim db As Database
Dim rs As Recordset
98
K=K+1
f=1
End If
rs.MoveNext
Next b
If (f = 0) Then
MsgBox ("record not found ")
End If
End Sub
.ColWidth(0) = 1000
.ColWidth(1) = 1000
.ColWidth(2) = 2000
.ColWidth(3) = 1000
.ColWidth(4) = 2000
.ColWidth(5) = 2000
.ColWidth(8) = 2000
.ColWidth(12) = 2000
.Row = 0
.Col = 0
.Text = "ID"
.Col = 1
.Text = "Train no"
.Col = 2
.Text = "Train Name"
99
.Col = 3
.Text = "tno"
.Col = 4
.Text = "Name"
.Col = 5
.Text = "F_Name"
.Col = 6
.Text = "Age"
.Col = 7
.Text = "Sex"
.Col = 8
.Text = "Date_of_journey"
.Col = 9
.Text = "Coach"
.Col = 10
.Text = "Berth"
.Col = 11
.Text = "seat_no"
.Col = 12
.Text = "class"
.Col = 13
.Text = "rent"
End With
Image1.Stretch = True
Image1.Picture = LoadPicture(App.Path + "\" + "pp.JPG")
End Sub
100
Output :-
101
Dim db As Database
Dim rs As Recordset
102
rs.Fields(12).Value = Text13.Text
rs.Fields(13).Value = Text14.Text
rs.Update
Text1(0).Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text13.Text = ""
Text14.Text = ""
End If
End Sub
103
Text7.Text = rs.Fields(6).Value
Text8.Text = rs.Fields(7).Value
Text9.Text = rs.Fields(8).Value
Text10.Text = rs.Fields(9).Value
Text11.Text = rs.Fields(10).Value
Text12.Text = rs.Fields(11).Value
Text13.Text = rs.Fields(12).Value
Text14.Text = rs.Fields(13).Value
f=1
End If
If (f = 0) Then
MsgBox ("no is not found ")
Text1(0).Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text13.Text = ""
Text14.Text = ""
End If
End Sub
Output :-
104
INTRODUCTION
105
In today`s world, computers are making us manage different fields much
more easily and efficiently. Through there are difference areas where
computer has gained a prominent place like Entertainment, Education,
Banking and various industries, various colleges, universities are using
computers for accomplishing different kinds of tasks.
106
This railways system tries to perform each of the activity stated above in an
effective manner. It is easy to use, user-friendly software. The system allows
Railway lines personnel to different laid of activities such as:
107
FACILITY OF INDIAN RAILWAYS
Indian Railways offers the facility of general Train Enquiry and reserving
the ticket in advance. It allows the people to plan out their journey in
advance comfortably and almost effortlessly. The Railway Administration
provides the reservations of seats, berths, compartments, or carriage as per
the rules and conditions documented in the Coaching Tariff.
108
General Conditions for Train Reservation
109
Passengers are advised to quote PNR number for any enquiry or complaint
concerning to reservations. Computerized Reservation ticket should be
accompanied by the journey tickets on train. Passengers should note down
the correct departure time printed on the ticket and must make certain
timings from the Railway station on the journey day. As the tickets are
issued up to 60 days in advance, it is not possible to advise any changes in
timing.
110
berths, compartments, or carriage as per the rules and conditions
documented in the Coaching Tariff. A passenger looking for reservation of
berth or seats should acquire tickets from the Railway Reservation Offices
or Authorized Travel Agency only. The timings for booking the reservation
and general enquiry are usually between 8 am to 8 pm every day except for
Sunday when the timings are 8 am to 2 pm. Facility for enquiry related to
the seats, berth and train timings are also available at all these reservation
counters. In order to ease the booking procedure in metros like Mumbai,
Delhi and Chennai, multiple centers of ticket booking are set up.
111
THE LOGO OF INDIAN RAILWAYS
112
ROUTE MAP
113
Passenger
114
Mountain Railway (NMR) which still relies on Swiss-built X class steamers
to do the job.
Trains are classified by their average speed. A faster train has fewer stops
("halts") than a slower one and usually caters to long-distance travel.
115
Rank Train Description
These are the non-stop point to point rail services (except
for operational stops) introduced for the first time in 2009.
These trains connects the metros and major state capitals of
Duronto
1 India and are faster than Rajdhani Expresses. The Duronto
Expresses
services consists of classes of accommodation namely first
AC, two-tier AC, three-tier AC, AC 3 Tier Economy,
Sleeper Class,General Class.
These are all air-conditioned trains linking major cities to
Rajdhani New Delhi. The Rajdhanis have high priority and are one of
2
Expresses the fastest trains in India, travelling at about 140 km/h
(87 mph). There are only a few stops on a Rajdhani route.
Shatabdi and
The Shatabdi trains are AC intercity seater-type trains. Jan-
3 Jan Shatabdi
Shatabdi trains consists of both AC and non-AC classes.
Expresses
Fully air conditioned trains, designed for those who cannot
afford to travel in the expensive Shatabti and Rajdhani
4 Garib Rath
Expresses, Garib Rath means "Chariot of the Poor". The
maximum speed is 130 km/h.
These are trains that have an average speed greater than
Superfast
5 55 km/h (34 mph). Tickets for these trains have an
Mail/Express
additional super-fast surcharge.
These are the most common kind of trains in India. They
6 Mail/Express have more stops than their super-fast counterparts, but they
stop only at relatively important intermediate stations.
These are slow trains that stop at most stations along the
Passenger and
7 route and are the cheapest trains. The entire train consists of
Fast Passenger
the General-type compartments.
Trains that operate in urban areas, usually stop at all
8 Suburban trains
stations.
Suburban rail
116
Many cities have their own dedicated suburban networks to cater to
commuters. Currently, suburban networks operate in Mumbai, Chennai,
Kolkata, Delhi, Hyderabad, Ahmedabad, Pune and Lucknow-Kanpur.
Hyderabad, Pune and Lucknow-Kanpur do not have dedicated suburban
tracks but share the tracks with long distance trains. New Delhi, Kolkata,
and Chennai have their own metro networks, namely the New Delhi Metro,
the Kolkata Metro,and the Chennai MRTS, with dedicated tracks mostly laid
on a flyover.
Suburban trains that handle commuter traffic are mostly electric multiple
units. They usually have nine coaches or sometimes twelve to handle rush
hour traffic. One unit of an EMU train consists of one power car and two
general coaches. Thus a nine coach EMU is made up of three units having
one power car at each end and one at the middle. The rakes in Mumbai run
on direct current, while those elsewhere use alternating current.[26] A
standard coach is designed to accommodate 96 seated passengers, but the
actual number of passengers can easily double or triple with standees during
rush hour.
Accommodation classes
117
Several long trains are composed of two to three classes of travel, such as a
1st and 2nd classes which have different pricing systems for various
amenities. The 1st Class refers to coaches with separate cabins, coaches can
be air-conditioned or non air-conditioned.
Further, other AC classes can have 2 or 3 tier berths, with higher prices for
the former, 3-tier non-AC coaches or 2nd class seating coaches, which are
popular among passengers going on shorter journeys.
The amenities depend on the popularity and length of the route. Lavatories
are communal and feature both the Indian style as well as the Western style.
The following table lists the classes in operation. Not all classes may be
attached to a rake though.
Class Description
1A The First class AC: This is the most expensive class, where the fares
are on par with airlines. Bedding is included with the fare in IR. This
118
air conditioned coach is present only on popular routes between
metropolitan cities and can carry 18 passengers. The coaches are
carpeted, have sleeping accommodation and have privacy features like
personal coupes.
2A AC-Two tier: Air conditioned coaches with sleeping berths, ample
leg room, curtains and individual reading lamps. Berths are usually
arranged in two tiers in bays of six, four across the width of the coach
then the gangway then two berths longways, with curtains provided to
give some privacy from those walking up and down. Bedding is
included with the fare. A broad gauge coach can carry 48 passengers.
FC First class: Same as 1AC, without the air conditioning. This class is
not very common.
3A AC three tier: Air conditioned coaches with sleeping berths. Berths
are usually arranged as in 2AC but with three tiers across the width
and two longways as before giving eight bays of eight. They are
slightly less well appointed, usually no reading lights or curtained off
gangways. Bedding is included with fare. It carries 64 passengers in
broad gauge.
3E AC three tier (Economy): Air conditioned coaches with sleeping
berths, present in Garib Rath Trains. Berths are usually arranged as in
3AC but with three tiers across the width and three longways. They
are slightly less well appointed, usually no reading lights or curtained
off gangways. Bedding is not included with fare.
CC AC chair car: An air-conditioned seater coach with a total of five
seats in a row used for day travel between cities.
EC Executive class chair car: An air-conditioned seater coach with a
total of four seats in a row used for day travel between cities.
SL Sleeper class: The sleeper class is the most common coach, and
usually ten or more coaches could be attached. These are regular
sleeping coaches with three berths vertically stacked. In broad gauge,
it carries 72 passengers per coach. Railways have modified certain
Sleeper Coaches on popular trains to accommodate 81 passengers in
place of regular 72 passengers. This was done in order to facilitate
benefits like clear the Passenger rush and simultaneously earn more
revenue. But this has got lukewarm response with criticism from the
travellers and railways has decided to remove them.
2S Seater class: same as AC Chair car, but with bench style seats and
without the air-conditioning.
119
UR Unreserved: The cheapest accommodation, with seats made of
pressed wood and are rarely cushioned. Although entry into the
compartment is guaranteed, a sitting seat is not guaranteed. Tickets
issued are valid on any train on the same route if boarded within 24
hours of buying the ticket. These coaches are usually very crowded.
At the rear of the train is a special compartment known as the guard's cabin.
It is fitted with a transceiver and is where the guard usually gives the all
clear signal before the train departs. A standard passenger rake generally has
four general compartments, two at the front and two behind, of which one is
exclusively for ladies. The exact number varies according to the demand and
the route. A luggage compartment can also exist at the front or the back. In
some trains a separate mail compartment is present. In long-distance trains a
pantry car is usually included in the centre.
Freight Rail
120
A single line rail bridge IR carries a huge variety of goods ranging from
mineral ores, fertilizers and petrochemicals, agricultural produce, iron &
steel, multimodal traffic and others. Ports and major urban areas have their
own dedicated freight lines and yards. Many important freight stops have
dedicated platforms and independent lines.
Indian Railways makes 70% of its revenues and most of its profits from the
freight sector, and uses these profits to cross-subsidise the loss-making
passenger sector. However, competition from trucks which offer cheaper
rates has seen a decrease in freight traffic in recent years. Since the 1990s,
Indian Railways has switched from small consignments to larger container
movement which has helped speed up its operations. Most of its freight
earnings come from such rakes carrying bulk goods such as coal, cement,
food grains and iron ore.
Indian Railways also transports vehicles over long distances. Trucks that
carry goods to a particular location are hauled back by trains saving the
trucking company on unnecessary fuel expenses. Refrigerated vans are also
available in many areas. The "Green Van" is a special type used to transport
fresh food and vegetables. Recently Indian Railways introduced the special
'Container Rajdhani' or CONRAJ, for high priority freight. The highest
speed notched up for a freight train is 100 kilometres per hour (62 mph) for a
4,700 metric tonne load.
121
Recent changes have sought to boost the earnings from freight. A
privatization scheme was introduced recently to improve the performance of
freight trains. Companies are being allowed to run their own container trains.
The first length of an 11,000-kilometre (6,800 mi) freight corridor linking
India's biggest cities has recently been approved. The railways has increased
load limits for the system's 225,000 freight wagons by 11%, legalizing
something that was already happening. Due to increase in manufacturing
transport in India that was augmented by the increase in fuel cost,
transportation by rail became advantageous financially. New measures such
as speeding up the turnaround times have added some 24% to freight
revenues.
122
resources and construction, maintenance and operation of the Dedicated
Freight Corridors. DFCCIL has been registered as a company under the
Companies Act 1956 on 30 October 2006. Rail budget and finances
Indian Railways, which a few years ago was operating at a loss, has, in
recent years, been generating positive cash flows and been meeting its
123
dividend obligations to the government, with (unaudited) operating profits
going up substantially.[40] The railway reported a cash surplus of 900 crore
(US$195.3 million) in 2005, 14,000 crore (US$3 billion) in 2006, 20,000
crore (US$4.3 billion) in 2007 and 25,000 crore (US$5.4 billion) for the
2007-2008 fiscal year. Its operating ratio improved to 76% while, in the last
four years, its plan size increased from 13,000 crore (US$2.8 billion) to
30,000 crore (US$6.5 billion). The proposed investment for the 2008-2009
fiscal year is 37,500 crore (US$8.1 billion), 21% more than for the previous
fiscal year. Budget Estimates-2008 for Freight, Passenger, Sundry other
Earnings and other Coaching Earnings have been kept at 52,700 crore
(US$11.4 billion), 21,681 crore (US$4.7 billion), 5,000 crore (US$1.1
billion) and 2,420 crore (US$525.1 million) respectively. Maintaining an
overall double digit growth, Gross Traffic Earnings have been projected as
93,159 crore in 2009–10 (19.1 billion USD at current rate), exceeding the
revised estimates for the current fiscal by 10,766 crore (US$2.3 billion).
Around 20% of the passenger revenue is earned from the upper class
segments of the passenger segment (the air-conditioned classes).
124
As most of the business documentation works through computer
therefore this is useful for railway lines. The purpose of computerization
is basic need for organizations at this time because it is helpful to
decrease the lot of mistakes which are comes through manual work and
reduce the calculation graph, that`s why such modification &
improvement is nothing but computerization in India.
This project focuses on how we can maintain the all transaction like
Reservation of passengers. At this time project is developed only for
single user and my future scope is to add all operations regarding multi
user so as to connect all Reservation counters with each other to find out
the any transaction and records of any train and also we can find out the
current information of any train.
CONCLUSION
125
This project is one of the modules of “RAILWAY RESERVATION
SYSTEM” . We have taken different forms and try to cover or fulfill all the
requirements of the RAILWAY RESERVATION.
This project is helpful for Railway reservation which deals with reserving
tickets for different categories and maintains their database.
BIBLIOGRAPHY
126
• Information Practices – (Sumita Arora)
• MS – Access
127