`
ONLINE RAILWAY RESERVATION SYSTEM
PROBLEM DEFINITION : The Railway Reservation System is basically developed in order to perform Online ticket reservation and enquiry. Every time a ticket is booked there must be a proper record to be maintained and also the ticket status, availability status must be updated time to time. There may be any new addition of trains and train being deleted or a station added or deleted which must be updated prior in the database. The reservation option enables a person to reserve for a ticket in an easier and efficient manner. Once the train is available the person will be asked to enter his personal details and his requirements regarding the coach and berth. After this the reservation database is updated with the person details, train name and also the source and destination place and a unique PNR number is generated and given as the reference number for the . The availability status is changed according to the number of tickets booked. The enquiry option allows the to enter the PNR number and get the current details about the ticket. The software ensures safety and security of details about the engers, his payment details and ensures integrity of the data being processed
`
DATA FLOW DIAGRAM
[Invalid customer] ing
Reserve Tickets
Check for Availabilit y
Book the tickets
PNR Enquiry
Display the Ticket status
`
ENTITY RELATIONSHIP DIAGRAMS:
`
UML DIAGRAMS:
CLASS DIAGRAM: Class Diagram ONLINE TICKET RESERVATION
# SOURCE #DESTINATION
DISPLAY TRAINS
BOOK TICKETS
# NAME
# NAME
# SOURCE
# AGE
# AGE
# DESTINATION
# SEX
# SEX
# NO OF TICKETS
# NO OF TICKETS
Display() Get details()
Update() Get details()
Delete()
`
USE CASE DIAGRAM
Use case: Railway Reservation system
using Valid ID ,
Check for Train Availability
Reserve the Ticket Server
Check for PNR status
Display the confirmation status
`
Activity Diagram: Enter Id and
Valid ID
No
Yes
PNR Enquiry
Reserve Tickets
Enter the PNR Number
Display the confirmation status
Enter Train name, No and check for Availability
Yes
Reserve Ticket
Train Availability
No
` SEQUENCE DIAGRAM
Database
Train
Enter train Details
Details are ed View the list
Trains are selected Train details are displayed
No of seats required No of seats Available No of seats Displayed
Train is ed
Registration is Confirmed
`
TEST CASES : 1. To check the availability of the train and status details using the Pnr No. 2. To reserve for the tickets for travel using the Identity proofs.
RESULT : Thus the project to implement Online railway reservation system and to model the data using UML diagram has been executed.