Monday, September 9, 2019
Abbey Wood Playhouses Ticketing System Essay Example | Topics and Well Written Essays - 5000 words
Abbey Wood Playhouses Ticketing System - Essay Example    If it's a casual booking than it can be   So pseudo code for this application will be similar to below for booking.  if Show date is > 7 day and day = Sunday  Then   Check for the seat availability  If seat(s) is(are) available,   Check is patron is holding any discount ( i.e. student or other discount)  then ticket price = 2.5 and let the system book the ticket  If it's a bulk booking ( i.e. seats > 5 and Seats   then ticket price = 2.0 and let the system book the ticket  Else   If there is no discount then price = 3.0 and let system book the ticket.  End if   End if  End if  Pseudo code for this application will be similar to below for cancelling.  if Show date is > 7 day and day = Sunday  Then   Ask for seat to be cancelled.  If seat is in database then allow cancellation.   Else   Show error message that system can't cancel the ticket.  End if  End If.  3. Creating the Application in Visual Basic .NET.   Following program has been written as per the above design. This program has been written using Visual Basic .NET. Attached is the source code of the different forms and module.  Module code with ticket as an object:  Option Explicit  Type ticket  patron_name As String * 30  patron_phone As String * 10  patron_email As String * 30  patron_seat As String * 30  seat_status As String * 2  show_date As Date  price As Double  ID As Integer  End Type  Source for designing the form1.  Private Sub Command1_Click()  Form4.Show  Form1.Hide  End Sub  Private Sub Command2_Click()  Form2.Show  Form1.Hide  End Sub  Private Sub Command3_Click()  Form5.Show  Form1.Hide  End Sub  Source for designing the form2.  Option Explicit  Dim position As Integer  Dim rec As ticket  Dim fileno As...     This application has now been modified so that it uses the Microsoft access database, rather than a random access file. Following is the attached Access database file which has been created when data was entered in this application.       
Subscribe to:
Post Comments (Atom)
 
 
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.