0% found this document useful (0 votes)
117 views19 pages

Online DSK Print

The document describes an online ticket reservation system called AWATAR. It includes: 1) A problem statement describing AWATAR's functionality for passengers to reserve, cancel, and view ticket statuses online. 2) UML diagrams modeling the system, including use case, class, sequence, activity, and other diagrams. 3) Code implementation in Visual Basic for the login, reservation, cancellation, and other forms. 4) Screenshots of the system's user interface. 5) A test case report showing the system handles invalid train numbers as expected.

Uploaded by

Navratan Yadav
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
117 views19 pages

Online DSK Print

The document describes an online ticket reservation system called AWATAR. It includes: 1) A problem statement describing AWATAR's functionality for passengers to reserve, cancel, and view ticket statuses online. 2) UML diagrams modeling the system, including use case, class, sequence, activity, and other diagrams. 3) Code implementation in Visual Basic for the login, reservation, cancellation, and other forms. 4) Screenshots of the system's user interface. 5) A test case report showing the system handles invalid train numbers as expected.

Uploaded by

Navratan Yadav
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 19

Ex.

No:4

ONLINE TICKET RESERVATION SYSTEM

PROBLEM STATEMENT: The Any Where Any Time Advance Reservation system is the online ticket reserving system where the passengers can reserve the tickets for their travel, cancel the reserved ticket and they can view the status of the ticket before travelling. The passenger who is reserving the ticket in AWATAR unless they are the member of AWATAR .The passenger can reserve the ticket by giving the required detail in the form and submit it for the processing .They can reserve for at the max for five members and a single ticket is provided for them. The administrator the AWATAR can control the ticket reservation and the accounts of the passengers who are signing up in AWATAR. The administrator can reset the seats, fares of the tickets, and generates the PNR number for the ticket that are reserved. The sole control of the system is handled by the administrator. The printer prints the tickets that are reserved by the passenger. The passenger can sign-up for only one time and he can sign in for any number of times for reserving, cancelling and viewing the tickets. The AWATAR system provides flexibility for the persons based on the age, the passengers are fared based on the age and the place of travelling. This makes ease of use in using AWATAR system. The system tracks for the database any number of times for reserving, cancelling and status viewing. The passenger can see the status of the classes that are available in the train which he is going to travel by noticing the number of seats details from the display board. The cancellation of the tickets is also very easy so that the passenger can cancel the tickets that he has booked. PROBLEM REQUIREMENTS: 1.Basic Requirements: 1) Source place. 2) Destination place. 3) Date of journey. 2. Functional Requirements:

1) Details of passengers. 2) Details of the coach. 3) Pay the amount using visa card or debit card. 4) Give out the balance 5) Show the detail of ticket. 3.Non-Functional Requirements: 1) Trading system failure. 2) Unavailability of date. 3) Coach Unavailability 4) Insufficient amount for making payment. 5) Unavailability of berth.

MODELING: UML DIAGRAMS: Use case Diagram:

Login

Ticket Reservation Passenger Ticket Cancellation

Admin

Printer View Status

Figure1: Use Case diagram for Online reservation system

Class Diagram:
Login Form Username Password Login() Display()

Login Controller Username Password Validate()

Login Account Username Password Update() Save()

Figure2: Class Diagram for Login

Train Details Train name Train number Display()

Reservation Form Name Age Gender Train name Train number Class Date No. of passengers Submit()

Reservation Controller Name Age Train name Train number Class Date No. of passengers Validate()

Reservation Checker Name Age Gender Train name Train number Date Class No. of passenger Reserve() PNR Generator()

Station Name Source Destination Time Display()

PNR Status PNR Number Display()

Figure3: Class Diagram for Reservation

Activity Diagram:

S y s te m R e q u e s ts U s e rn a m e a n d P a s s w o rd

P a s s e n g e r e n t e rs U s e rn a m e a n d P a s s w o rd

S y s te m va lid a t e s th e g ive n d a ta fro m t h e p a s s e n g e r

S y s te m c h e c k s d a ta in d a t a b a s e

P a s s e n ge r e n t e rs in to t h e n e x t le ve l

S y s te m d is p la y s th e e rro r m e s s a g e

P a s s e n g e r vie w s o th e r o p tio n s a va ila b le P a s s e n g e r e x it s the s y s te m P a s s e n g e r re -e n te rs t h e re q u ire d d a t a

Figure4: Activity Diagram for Login

System requires for the Train number

Passengers enters the Train number System validates and displays the train name and days available

System requires for the travelling date

Passenger enter the travelling date

System validates the data entered by the passenger

System requires for class of travel

System displays the error message

Passenger enters the class of travel Passenger leaves the system System validates the data entered Passenger re-enters the required data

Passenger submits the completed form

System displays the error message

System displays the message

Passenger re-enters the required data

Figure5: Activity diagram for Reservation

Sequence Diagram:

PASSENGER Req username & password

SYSTEM

DATABASE

Enter username & password Validates data Permits to access

Figure6: Sequence diagram for Login

PASSENGER

SYSTEM

DATABASE

Requests train no Enter Train no Validates data Requires class Enter class Validates data Display resevation details

Figure7: Sequence diagram for Reservation

Collaboration Diagram:
2: Enter username & password PASSENGER 1: Req username & password 4: Permits to access 3: Validates data SYSTEM

DATABASE

Figure8: Collaboration diagram for Login


2: Enter Train no 5: Enter class PASSENGER 1: Requests train no 4: Requires class 7: Display resevation details 3: Validates data 6: Validates data SYSTEM

DATABASE

Figure9: Collaboration diagram for Reservation Component Diagram:


Online Reservation System

Update

Front Panel

Figure10: Component diagram for Online Reservation System

Deployment Diagram:

Online Reservation System

Counter PC

Figure11: Deployment diagram for Online Reservation System

SOFTWARE DEVELOPMENT: CODE IMPLEMENTATION:

LOGIN FORM:
MAIN FORM: Private Sub Command1_Click() Form2.Show Form1.Hide End Sub Private Sub Command2_Click() End End Sub ENTRY FORM: Public a As New NewClass Private Sub Command1_Click() a.viewdetails End Sub Private Sub Command2_Click()

Form4.Show Form2.Hide End Sub Private Sub Command3_Click() Form5.Show Form2.Hide End Sub Private Sub Command4_Click() End End Sub Private Sub Form_Load() Set a = New NewClass End Sub TRAIN DETAILS FORM: Private Sub Command1_Click () Form2.Show Form3.Hide End Sub RESERVATION FORM: Public B As New System Public a As New NewClass Private Sub Combo2_Click() Form4.Label11.Caption = Form4.Combo2.Text End Sub Private Sub Command1_Click() a.reservation End Sub Private Sub Command2_Click() End End Sub Private Sub Command3_Click() B.delete End Sub Private Sub Command4_Click() Form2.Show Form4.Hide End Sub Private Sub Form_Load()

Set B = New System Set a = New NewClass End Sub CANCELLATION FORM: Public a As New NewClass Public B As New System Private Sub Command1_Click() B.update End Sub Private Sub Command2_Click() a.cancellation End Sub Private Sub Command3_Click() Form2.Show Form5.Hide End Sub Private Sub Command4_Click() End End Sub Private Sub Form_Load() Set a = New NewClass Set B = New System End Sub

CLASS MODULE: NEW CLASS: Option Explicit Dim db As Database Dim rs As Recordset Public Sub viewdetails() Form3.Show End Sub Public Sub reservation() Set db = OpenDatabase("D:\06bei7876\OnlineRail\railway.mdb") Set rs = db.OpenRecordset("details") rs.AddNew rs(1) = Form4.Text1.Text rs(2) = Form4.Text2.Text

rs(3) = Form4.Text3.Text rs(4) = Form4.Text7.Text rs(5) = Form4.Label11.Caption rs(6) = Form4.Text4.Text rs(7) = Form4.Text5.Text rs(8) = Form4.Text6.Text rs.update MsgBox "YOUR TICKET IS RESERVED" End Sub Public Sub cancellation() Set db = OpenDatabase("D:\06bei7876\OnlineRail\railway.mdb") Set rs = db.OpenRecordset("details") rs.MoveFirst While rs.EOF = False If rs(1) = Form5.Text1.Text Then rs.delete MsgBox " YOUR TICKET IS CANCELLED" Form5.Text1.Text = "" Form5.Label6.Caption = "" Form5.Label7.Caption = "" Form5.Label8.Caption = "" End If rs.MoveNext Wend End Sub SYSTEM: Option Explicit Dim db As Database Dim rs As Recordset Public Sub update() Set db = OpenDatabase("D:\06bei7876\OnlineRail\railway.mdb") Set rs = db.OpenRecordset("details") rs.MoveFirst While rs.EOF = False If rs(1) = Form5.Text1.Text Then Form5.Label6.Caption = rs(4) Form5.Label7.Caption = rs(8) Form5.Label8.Caption = rs(5) End If

rs.MoveNext Wend End Sub Public Sub delete() Form4.Text1.Text = "" Form4.Text2.Text = "" Form4.Text3.Text = "" Form4.Text4.Text = "" Form4.Text5.Text = "" Form4.Text6.Text = "" Form4.Label10.Caption = "" Form4.Label11.Caption = "" End Sub

SCREEN SHOTS:

FORM 1

Figure12: Home Page Form

FORM 2

Figure13: Option selection Form

FORM 3

Figure14: Train details Form

FORM 4

Figure15: Ticket Reservation Form

FORM 5

Figure16: Ticket cancellation Form

FORM 6

Figure17: Entering Name for Cancelling ticket

SOFTWARE TESTING: TEST CASE REPORT: TEST CASE NAME: Train number Availability OBJECTIVE: Usability Test TEST CASES: SCENARIO 1: Train Number: 6655 EXPECTED OUTPUT: Error Message TEST RESULT ACTUAL OUTPUT: Train number not available

CONCLUSION:
Thus the application on student mark list analysis system is developed using rational rose
and implemented using visual basic. The main aspects that are behind this application is that they

enabled us to bring out the new ideas that sustained within us for many days. This application enables the student to retrieve their student details and mark details at anywhere with a system.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy