0% found this document useful (0 votes)
6 views13 pages

Movie Ticket Booking System Program

Uploaded by

saifshekh991790
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views13 pages

Movie Ticket Booking System Program

Uploaded by

saifshekh991790
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Movie Ticket Booking System

Movie Ticket Booking System

Cover Page

Movie Ticket Booking System

By: Your Name

Date: November 28, 2024


Movie Ticket Booking System

Abstract

This Python program is a Movie Ticket Booking System that allows users to:

- View available movies.

- Book tickets for a selected movie.

- View booking history.

It also calculates the total price including GST for the tickets booked.
Movie Ticket Booking System

Introduction

The program demonstrates how Python can be used to create interactive, console-based applications for

ticket booking.
Movie Ticket Booking System

System Features

- Display available movies with prices.

- Book tickets for a chosen movie.

- View previous bookings.

- Calculate total cost including GST.


Movie Ticket Booking System

Class Overview

The main class in the program is `MovieTicketBooking`, which contains methods to handle all functionalities

like booking tickets, viewing movies, and calculating prices.


Movie Ticket Booking System

Function Descriptions

1. `__init__()`: Initializes the class with movies, prices, and GST rate.

2. `display_movies()`: Displays the list of available movies and their prices.

3. `select_movie()`: Allows the user to select a movie by entering its number.

4. `get_ticket_count()`: Prompts the user to enter the number of tickets.

5. `calculate_total()`: Computes the total price, including GST, based on the ticket count and movie price.

6. `book_ticket()`: Handles the booking process, including confirmation and summary.

7. `show_bookings()`: Displays a summary of all previous bookings.


Movie Ticket Booking System

Main Function

The `main()` function serves as the entry point for the program. It provides a menu-driven interface for users

to:

1. Book Tickets.

2. View Bookings.

3. Exit the System.


Movie Ticket Booking System

Flowchart

A flowchart representing the program's workflow:

1. Start.

2. Display menu.

3. User selects option:

- Book Tickets: Go through booking process.

- Show Bookings: Display history.

4. Exit system.
Movie Ticket Booking System

Sample Output

Sample outputs demonstrate:

1. Display of available movies.

2. Successful booking process with calculated GST.

3. Viewing the booking summary.


Movie Ticket Booking System

Testing

Example test cases:

1. Input: Select 'Avatar', 3 tickets

Output: Total price including GST displayed correctly.

2. Input: View bookings after booking tickets

Output: Summary of previous bookings displayed correctly.


Movie Ticket Booking System

Conclusion

The Movie Ticket Booking System is a robust and user-friendly application that demonstrates Python's

capabilities in handling real-world problems.


Movie Ticket Booking System

References

1. Python Official Documentation

2. TutorialsPoint Python Programming

3. RealPython Articles

You might also like