M-TICKET – Mobile Booking

Chapter 5: SYSTEM IMPLEMENTATION

5.1 Pseudocode for counter based ticket reservation:

Input : Movie, date of show, show, class and number of seats.

Output : On success – Reservation code

On failure – Failure message

Algorithm:

Step 1: Enter the movie, date of show, show, class and number of seats required.

Step 2: Select the screen in which the specified movie is running.

Step 3: Check for the availability of seats.

Step 4: If the required number of seats are available in the same row then go to step 6. Else go to step 5.

Step 5: If the required number of seats are not available in the same row then ask the customer if he wants to reserve the seats in different rows. If ‘yes’ then go to step 6. Else go to step 7.

Step 6: Reserve the seats. Display the reservation code, screen, seat numbers and total price. Go to step 8.

Step 7: Display Reservation failed message. Go to step 8.

Step 8: Go to step 1 to perform another reservation.

5.2 Pseudocode for counter based ticket cancellation:

Input : Reservation date, reservation number and number of seats to be

cancelled.

Output : Success message or failure message.

Algorithm:

Step 1: Enter the reservation date, reservation number and number of seats to be cancelled.

Step 2: If the entries are valid then cancel the seats else display the error message.

5.3 Pseudocode for SMS based ticket reservation:

Input : SMS of a particular form.

Output : According to the input, the resultant output SMS.

Algorithm:

Step 1: Receive the “RESV” message.

Step 2: Check whether the cell phone from which message is received is registered. If ‘yes’ go to step 3. Else go to step 10.

Step 3: Validate the message format. If the format is valid, then go to step 4.Else go to step 9.

Step 4: Fetch the fields.

Step 5: Process the fields.

Step 6: Check the availability of seats. If the required seats are available, then go to step 7. Else go to step 8.

Step 7: Reserve the seats. Send the reservation code, show time and total price to the customer. Go to step 11.

Step 8: Send the “RESV UNSUCCESSFUL” message to the customer. Go to step 11.

Step 9: Send the proper format to the user. Go to step 11.

Step 10: Send an error message informing the customer to register first. Go to step 11.

Step 11: Go to step 1 to process another message.

5.4 Pseudocode for SMS based ticket cancellation:

Input : SMS of a particular form.

Output : According to the input, the resultant output SMS.

Algorithm:

Step 1: Receive the “CANCEL” message.

Step 2: Check whether the cell phone from which message is received is registered. If ‘yes’ go to step 3. Else go to step 8.

Step 3: Check whether the reservation code is valid. If ‘yes’ go to step 4. Else go to step 9.

Step 4: Validate the message format. If the format is valid, then go to step 5. Else go to step 10.

Step 5: Fetch the fields.

Step 6: Process the fields. If the fields are valid, then go to step 7. Else go to step 9.

Step 7: Cancel the seats. Send the “SUCCESS” message to the customer. Go to step 11.

Step 8: Send an error message informing the customer to register first. Go to step 11.

Step 9: Send an error message to the customer. Go to step 11.

Step 10: Send the proper format to the user. Go to step 11.

Step 11: Go to step 1 to process another message.

5.5 Class Diagram:

class diagram
class diagram

28 Responses to “M-TICKET – Mobile Booking”

  1. ROTIMI

    INTERESTING, I’VE BEEN CONTEMPLATING A PROJECT IN SAME DOMAIN AS WELL AS FOR TAXI BOOKING. IS IT POSSIBLE FOR US TO RUN A PILOT/ EVALUATION OF YOUR PROJECT IN OUR TERRITORY? I’D LOVE TO COLLABORATE, KINDLY SEND ME MORE DETAILS BY EMAIL

    Reply
  2. Elizabeth

    please.can i get the code for this program? I’m doing a similar project. thanks

    Reply
  3. Dilip Singh Kasana

    [email protected] : Hey If you want code for this I have.Mail me and I will send.

    Reply

Leave a Reply