You are on page 1of 35

A PROJECT REPORT

ON THE TITLE
MOVIE TICKET BOOKING
FOR
AISSCE 2022 EXAMINATION

As a part of the Computer Science (083)

SUBMITTED BY:

________________________________

Under the guidance of

Ms. LAVANYA M [M.Sc, M Phil] PGT in COMPUTER SCIENCE

DEPARTMENT OF COMPUTER SCIENCE

SRI CHAITANYA TECHNO SCHOOL


Kathir Campus, 806-Wisdom Tree, Avinashi Rd, Neelambur, Coimbatore – 641062

1
2
DECLARATION

I hereby declare that my project on the title ‘Movie ticket booking'

is submitted in partial fulfillment of CBSE’s AISSCE Examination 2021-22 and has been

carried out by me under the guidance and supervision of Ms. M Lavanya.

Neelambur, Coimbatore. ___________________________________

3
ACKNOWLEDGMENT

At the outset, I bow down before the God Almighty for his blessings
without which I would not have completed this endeavor successfully.

I am thankful to the PRINCIPAL, SRI CHAITANYA TECHNO


SCHOOL, for the approval of the project.

I gratefully acknowledge my indebtedness to my guide Ms. M Lavanya,


for her meticulous guidance and constant encouragement throughout my
project. I would also extend my thanks to Mr. Anson P Varghese, for all the
technical support put forward to my work. I would like to extend my
wholehearted gratitude to the Management and all those who have directly
and indirectly helped me during the course of my work.

____________________________________________

4
CONTENTS
Abstract 1

Objectives 2

System requirements and Specifications 3

Coding 4

Screen shots 16

Limitations 28

Conclusion 29

Bibliography 30

5
ABSTRACT

The project is entitled as “Movie Ticket Booking”.

Movie ticket management system is all about making ticket booking


for movies easier. It involves maintaining the database of new
movies, record of tickets booked by people on specific dates and also
a menu in which it helps the user to book his/her snacks whether
during an interval or before the movie starts. This Project provides an
easily organized system for movie ticket management. This project so
provides features and interface for maintaining movie records, tickets
booked for movies and snacks provided for the customers. The admin
can easily update the data by deleting and inserting data in the
database with this project.

6
OBJECTIVE

In many theatres, box office booking has become an issue due to the
admin not being able to track all records of movie booking
management has become a problem. The objective is to develop a
movie booking management system, with the mentioned
functionalities to facilitate quicker and easier tracking of movie
bookings. The functions are:

1. Book movie
2. Tickets sold
3. View movie list
4. Replace existing movie
5. Add new movie
6. Snacks list
7. Revise snacks
8. Revise price

This project also simplifies the task and reduces confusion for the
theatre admin. This project is user friendly and it is anticipated that
the functions of the management system are easily accessed by the
theatre admin. This project helps the too keep track of theatre
resources.

7
SYSTEM REQUIREMENTS AND SPECIFICATIONS

HARDWARE COMPONENTS:

1. VGA Monitor
2. Qwerty keyboard
3. 2 GB RAM
4. 2.6 GHz Processor
5. Graphics card

SOFTWARE COMPONENTS:

1. Windows 7 or above
2. Python 3.7 with suitable modules
3. MySQL Command Client

8
FRONT END CODING (PYTHON)

# --------------- Movie Ticket Booking System (MTBS) -----------------


# -------------------------------- Project Start-------------------------------
'''Project outline and menu segregations
1. Book movie
Used to book multiple tickets for movies.
2. Tickets sold
Summarizes the total number of tickets sold on that particular day.
3. View movies list
Displays all the movies screening.
4. Replace existing movie
Used to replace an old film.
5. Add new movie
Adds upcoming movies.
6. Snacks list
Displays the menu of the cafeteria.
7. Revised snacks list
Used to change or alter snack item names
8. Revised snacks price
Used to change or alter snack item prices
'''
# [NOTE: (1) THE PROJECT IS LIMITED TO DEMO, THAT NO
EXCEPTION IS HANDLED THOUGHOUT THE PROJECT

9
# (2) THE MODULES 'PAY CHEQUE' & 'REPORTS' ARE FUTURE
SCOPE OF THE PROJECT, WHICH WILL BE DEVELOPED IN COURSE
OF TIME]

# --------------------Library imports

import MySQL. Connector


from datetime import date

# --------------------Global functions

defadd_movies():

conn = mysql.connector.connect(
host='localhost', database='movies', user='root', password='multitude')
cursor = conn.cursor()
movie = input('Enter Movie Title :')
show = input('Enter Book Author : ')
price = input('Enter Book Price : ')
sql = 'insert into movieslist(title,show,price) values ( "' + \
movie + '",'+show+','+price+');'
cursor.execute(sql)
conn.close()
print('\n\nNew Book added successfully')
wait = input('\n\n\n Press any key to continue....')

10
defrepl_movies():

conn = mysql.connector.connect(
host='localhost', database='movies', user='root', password='multitude')
cursor = conn.cursor()

m_id = int(input('Enter Movie ID :'))


movie = input('Enter Movie Title :')
show = input('Enter Movie Timing : ')
price = input('Enter Ticket price : ')
sql = 'UPDATE movieslist SET title = "' + movie + '", price= '+price+'
WHERE m_id = '+m_id+' ;'
cursor.execute(sql)
conn.close()
print('\n\nNew Movie replaced successfully')
wait = input('\n\n\n Press any key to continue....')

defreport_movies():

conn = mysql.connector.connect(
host='localhost', database='movies', user='root', password='multitude')
cursor = conn.cursor()
sql = 'select* from movieslist;'

cursor.execute(sql)
records = cursor.fetchall()
print("All Movies List :")

11
for record in records:
print(record)
conn.close()
wait = input('\n\n\nPress any key to continue.....')
conn.close()

defbook_movie():

conn = mysql.connector.connect(
host='localhost', database='movies', user='root', password='multitude')
cursor = conn.cursor()

print('\n MOVIE BOOKING SCREEN ')


print('-'*120)
m_id = input('Enter Movie ID : ')
no = int(input('Enter no of Tickets: '))

today = date.today()
sql = 'insert into transaction(m_id,no_of_tickets,dob)
values('+m_id+','+no+',"'+str(today)+'");'
cursor.execute(sql)
print('\n\n\n Movie Booked Successfully')

conn.close()
wait = input('\n\n\n Press any key to continue....')

12
defreport_tickets():

conn = mysql.connector.connect(
host='localhost', database='movies', user='root', password='multitude')
cursor = conn.cursor()
today = date.today()
sql = 'select sum(no_of_tickets) from transaction where dob =
"'+str(today)+'"; '
cursor.execute(sql)

records = cursor.fetchall()
print("Number of tickets sold :")
for record in records:
print(record)
conn.close()
wait = input('\n\n\nPress any key to continue.....')
conn.close()

defsnack_list():

conn = mysql.connector.connect(
host='localhost', database='movies', user='root', password='multitude')
cursor = conn.cursor()
sql = 'select* from snacks;'

13
cursor.execute(sql)

records = cursor.fetchall()
print("All Snacks List :")
for record in records:
print(record)
conn.close()
wait = input('\n\n\nPress any key to continue.....')

defrevised_snacks_name():

conn = mysql.connector.connect(
host='localhost', database='movies', user='root', password='multitude')

cursor = conn.cursor()

s_id = int(input('Enter Snack ID :'))


sname = input('Enter Snack name :')
sql = 'UPDATE snacks SET snackname = "' + sname + '" WHERE s_id =
'+s_id+' ;'

cursor.execute(sql)

conn.close()

print('\n\nSnack Revised Successfully')


wait = input('\n\n\n Press any key to continue....')

14
defrevised_snacks_price():

conn = mysql.connector.connect(
host='localhost', database='movies', user='root', password='multitude')
cursor = conn.cursor()
s_id = int(input('Enter Snack ID :'))
price = input('Enter Ticket price : ')
sql = 'UPDATE snacks SET snackprice= '+price+' WHERE s_id =
'+s_id+' ;'

cursor.execute(sql)

conn.close()

print('\n\nSnack Revised Successfully')


wait = input('\n\n\n Press any key to continue....')

defnew_movies():

conn = mysql.connector.connect(
host='localhost', database='movies', user='root', password='multitude')
cursor = conn.cursor()
movie = input('Enter Movie Title :')
show = input('Enter Book Author : ')
price = input('Enter Book Price : ')

15
sql = 'insert into movieslist(title,show,price) values ( "' + \
movie + '",'+show+','+price+');'
cursor.execute(sql)
conn.close()
print('\n\nNew Book added successfully')
wait = input('\n\n\n Press any key to continue....')

defswap_movies():

conn = mysql.connector.connect(
host='localhost', database='movies', user='root', password='multitude')
cursor = conn.cursor()

m_id = int(input('Enter Movie ID :'))


movie = input('Enter Movie Title :')
show = input('Enter Movie Timing : ')
price = input('Enter Ticket price : ')
sql = 'UPDATE movieslist SET title = "' + movie + '", price= '+price+'
WHERE m_id = '+m_id+' ;'
cursor.execute(sql)
conn.close()
print('\n\nNew Movie replaced successfully')
wait = input('\n\n\n Press any key to continue....')

16
defviewlist_movies():

conn = mysql.connector.connect(
host='localhost', database='movies', user='root', password='multitude')
cursor = conn.cursor()
sql = 'select* from movieslist;'

cursor.execute(sql)
records = cursor.fetchall()
print("All Movies List :")
for record in records:
print(record)
conn.close()
wait = input('\n\n\nPress any key to continue.....')
conn.close()

deftickets_movie():

conn = mysql.connector.connect(
host='localhost', database='movies', user='root', password='multitude')
cursor = conn.cursor()

print('\n MOVIE BOOKING SCREEN ')


print('-'*120)
m_id = input('Enter Movie ID : ')
no = int(input('Enter no of Tickets: '))

17
today = date.today()
sql = 'insert into transaction(m_id,no_of_tickets,dob)
values('+m_id+','+no+',"'+str(today)+'");'
cursor.execute(sql)
print('\n\n\n Movie Booked Successfully')

conn.close()
wait = input('\n\n\n Press any key to continue....')

definsights_tickets():

conn = mysql.connector.connect(
host='localhost', database='movies', user='root', password='multitude')
cursor = conn.cursor()
today = date.today()
sql = 'select sum(no_of_tickets) from transaction where dob =
"'+str(today)+'"; '
cursor.execute(sql)

records = cursor.fetchall()
print("Number of tickets sold :")
for record in records:
print(record)
conn.close()
wait = input('\n\n\nPress any key to continue.....')
conn.close()

18
defmain_menu():

while True:
print(' M O V I E B O O K I N G M E N U ')
print("\n1. Book Movie")
print('\n2. Tickets Sold')
print('\n3. View Movies List ')
print('\n4. Replace Existing Movie ')
print('\n5. Add New Movie ')
print('\n6. Snacks List ')
print('\n7. Revised Snacks')
print('\n8. Revised Price')
print('\n0. ')

print('\n\n')
choice = int(input('Enter your choice ...: '))

if choice == 1:
book_movie()
if choice == 2:
report_tickets()
if choice == 3:
report_movies()
if choice == 4:
repl_movies()
if choice == 5:
add_movies()

19
if choice == 6:
snack_list()
if choice == 7:
revised_snacks_name()
if choice == 8:
revised_snacks_price()
if choice == 0:
break
if __name__ == "__main__":
main_menu()

# --------------------Callable functions

20
SCREENSHOTS

Python Screenshots:

Main Menu:

21
Movie booking screen:

22
Replace existing movie:

23
Add new movie:

24
Revise snack name:

25
Revise snack price:

26
Movies List Table Description:

27
Snacks Table Description:

28
Transaction Description:

29
Movies list:

30
Snacks Table:

31
Transaction Details:

32
LIMITATIONS

Following are the limitations in this project:

 There is no backup facility.


 It cannot be used over internet.
 It does not provide specific seat numbers.
 It does not provide history of movies that ran in the theatre.
 It is language specific.
 No regular updates are provided.
 Food inventory cannot be accessed.

33
CONCLUSION

Our project “Movie ticket booking system” with the functional


module is successfully developed with digitalized and user friendly
movie ticket booking system . This project is created to overcome the
problem faced by non-computerized movie ticket booking
management. Our project is a humble venture to satisfy the needs in a
Theatre. Several user-friendly coding has been used. I thank all my
friends and teachers and the school management for providing time,
helping and guiding me complete this project. Last but not least it is
the work that paved the ways to success but ALMIGHTY.

34
BIBLIOGRAPHY

 Informatics practices text book for class 12


 Internet reference:
 https://www.w2schools.com/

 http://geeksforgeeks.org/

 http://realpython.com

35

You might also like