0% found this document useful (0 votes)
211 views

Uml Ooad

This document describes an online ticket reservation system called AWATAR. The system allows passengers to reserve tickets, cancel reservations, and check ticket statuses. It includes requirements like passenger and travel details. UML diagrams like use case, class, sequence, and deployment diagrams are included to model the system. Screenshots show forms for login, reservation, cancellation, and viewing train details. The system was coded in Visual Basic using forms and modules to handle reservations, cancellations, and database interactions. Software testing was done using sample test cases to check functionality like validating train numbers.

Uploaded by

hema2791
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
211 views

Uml Ooad

This document describes an online ticket reservation system called AWATAR. The system allows passengers to reserve tickets, cancel reservations, and check ticket statuses. It includes requirements like passenger and travel details. UML diagrams like use case, class, sequence, and deployment diagrams are included to model the system. Screenshots show forms for login, reservation, cancellation, and viewing train details. The system was coded in Visual Basic using forms and modules to handle reservations, cancellations, and database interactions. Software testing was done using sample test cases to check functionality like validating train numbers.

Uploaded by

hema2791
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

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:

Figure1: Use Case diagram for Online reservation system

Class Diagram:

Figure2: Class Diagram for Login

Figure3: Class Diagram for Reservation

Activity Diagram:

Figure4: Activity Diagram for Login

Figure5: Activity diagram for Reservation

Sequence Diagram:

Figure6: Sequence diagram for Login

Figure7: Sequence diagram for Reservation

Collaboration Diagram:

Figure8: Collaboration diagram for Login

Figure9: Collaboration diagram for Reservation Component Diagram:

Figure10: Component diagram for Online Reservation System

Deployment Diagram:

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