Professional Documents
Culture Documents
Movie Ticket Booking
Movie Ticket Booking
ON THE TITLE
MOVIE TICKET BOOKING
FOR
AISSCE 2022 EXAMINATION
SUBMITTED BY:
________________________________
1
2
DECLARATION
is submitted in partial fulfillment of CBSE’s AISSCE Examination 2021-22 and has been
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.
____________________________________________
4
CONTENTS
Abstract 1
Objectives 2
Coding 4
Screen shots 16
Limitations 28
Conclusion 29
Bibliography 30
5
ABSTRACT
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)
9
# (2) THE MODULES 'PAY CHEQUE' & 'REPORTS' ARE FUTURE
SCOPE OF THE PROJECT, WHICH WILL BE DEVELOPED IN COURSE
OF TIME]
# --------------------Library imports
# --------------------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()
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()
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()
cursor.execute(sql)
conn.close()
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()
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()
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()
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
33
CONCLUSION
34
BIBLIOGRAPHY
http://geeksforgeeks.org/
http://realpython.com
35