- C C++ Java Programs - Examples

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Friday, April 1, 2011




Problem Statement

Online ticket reservation system for railway department has to be developed.
The System developed should contain following features
1. The System should provided information about arrival and departure trains along with information about stations through which it passes.
2. Search about train passing through stations can be obtained either by means of train no, train name or specifying the source and destination stations.
3. While displaying information about train it has provide following information’s 
a) Stations through which train passes along with arrival and departure time.
b) Availability of seats in different classes along with waiting list.
4. While reserving ticket online the system obtain following information’s from the user
a)      Passenger name, Sex, Age, Address
b)      b) Credit Card No, Bank Name
c) Class through passenger is going to travel i.e First class or Second class or AC
d) Train no and Train name, Date of Journey and number of tickets to be booked.
5. Based on the availability of tickets the ticket has to be issued. The ticked issued should contain the following information’s PNR NO, Train No, Date, K.M., no of adults and children, Ticket No, Class, Ticket No, Coach, Seat/Berth, Sex, Age, Reservation fee, Total Cash, Train Name, Departure time.
6. Cancellation of booked tickets should be available.

2.LOGIN

2.1Brief Description

The use case describes how Passenger logs into the Online Ticket Reservation system

2.2 Flow of Events

2.2.1 Basic Flow

This use case starts when the passenger wishes to Login to the Online Ticket Reservation system
  1. The System requests that the passenger enter his/her name and password
  2.  The passenger enters his/her name and password
3. The System validates the entered name and password and logs the passenger into the System

2.2.2 Alternative Flows

2.2.2.1Invalid Name/Password
If, in the Basic flow, the passenger enters an invalid name and/or password, the system displays an error message. The passenger chooses to either return to the beginning of the Basic flow or cancel the login, at which point the use case ends.

2.3Special Requirements

None

2.4Pre-Conditions

None

2.5Post-Conditions

If the use case was successful, the passenger is now logged into the system. If not, the system State is unchanged.

2.6Extension Points

None

3. Display Train List

3.1Brief Description

This use case gives passenger the list of trains along with information about the train name, Stations passes, Arrival and Departure time etc

3.2 Flow of Events

3.2.1 Basic Flow

This use case gives passenger information about each train namely train no, train name, Stations passes, Arrival Time, Departure Time etc

3.2.2 Alternative Flows

None

3.3Special Requirements

None

3.4Pre-Conditions

None

3.5Post-Conditions

If the use case was successful, the passenger information about each train namely train no, train name, Stations passes, Arrival Time, Departure Time etc

3.6Extension Points

None

4. Search for Train

4.1Brief Description

This use case helps the passenger to search for information about a Train

4.2.1 Basic flow

The passenger can obtain train information either by entering train no or Source and Destination Station
1. If the passenger train no gives the information about train
2. If the passenger enter Source and Destination Station from list gives information about list of trains passing through station. From the list link will be provided to each train, which contains the information

4.2.2 Alternate flow

If the passenger enters an invalid train no then it gives error message invalid train no and asks the passenger to enter a valid train no.

4.3Special Requirements

None

4.4Pre-Conditions

None

4.5Post-Conditions

If the use case was successful, the passenger can able to view the list of trains.

4.6Extension Points

None

5.Reservation

5.1Brief Description

This use case helps the passenger to reserve for tickets in a train

5.2.1 Basic flow

1. The user reserves the ticket by giving following
a) Passenger name, Sex, Age, Address
b) Credit Card No, Bank Name
c) Class through passenger is going to travel i.e First class or Second class or AC
d) Train no and Train name, Date of Journey and number of tickets to be booked.
2. If the ticket is available in a train then the ticket will be issued with PNR No.else the ticket will be issued with a waiting list number.

5.2.2 Alternative flow

If the passenger gives an invalid credit card no or specified a bank where does have any account. Error message will be displayed.

5.3Special Requirements

None

5.4Pre-Conditions

The passenger has to decide about the train he is going to travel.

5.5Post-Conditions

If the use case was successful, the passenger will get the ticket.

5.6Extension Points

None

6. Cancellation

6.1Brief Description

This use case helps the passenger to cancel the ticket, which he/she had booked earlier

6.2.1 Basic flow

This use case used by passenger to cancel the ticket, which he/she booked earlier by
Entering PNR No. The cancellation has been done reallocating the tickets allotted to the Passenger.

6.2.2 Alternate flow

If the Passenger had entered invalid PNR No then has been asked to enter valid PNR No.

6.3Special Requirements

None

6.4Pre-Conditions

The Passenger had reserved tickets in a train.

6.5Post-Conditions

If the use case was successful, the passenger can cancel the ticket.

6.6Extension Points

None

7 Ticket Status

7.1Brief Description

The passenger to know status of ticket has used this usecase by entering PNR No.

7.2.1 Basic flow

1. The passenger should give PNR No to know the status of ticket, which he/she booked earlier.
2. If the PNR No is valid, the status of the ticket will be displayed.

7.2.2 Alternate flow

If passenger had entered an invalid no or PNR NO, which does not exists then error Message will be displayed.

7.3 Special Requirements

None

7.4 Pre-Conditions

The Passenger had reserved tickets in a train.

7.5 Post-Conditions

If the use case was successful, the passenger can view status of the ticket.

7.6 Extension Points

None

No comments:

Post a Comment