Wa0007.
Wa0007.
SUBMITTED BY:
Mrs. S h r u t i D G u g g a l i
PGT in Informatics Practices
Page 1
Sri chaitanya school uttrahalli 4th Main road, near AGS layout
Arehalli uttrahalli hobli banglore karnataka-560061
CERTIFICATE
Page 2
ACKNOWLEDGEMENT
We would like to thank our Informatics Practices teacher Mrs. Shruti D Guggali
for having patience to guide us at every step in the project.
We are also grateful to the CBSE BOARD for challenging and giving us this
project.
We would also like to thank our parents and friends who helped us in getting
the right information for this Project.
Page 3
INDEX
1. Abstract 5
2. System 6
Requirements
3. Python Introduction 7
4. MySQL Introduction 9
5. Coding 10
4. Graph 24
5. Output Screenshots 25
6. Bibliography 34
ABSTRACT
Page 4
The purpose of this project is to help improve our knowledge of coding
in a fun and creative way. The Movie Reservation System has been
coded on Python. Python is an interpreter, high-level, general-purpose
programming language. It’s language constructs and object-oriented
approach aim to help programmers write clear, logical code for small
and large-scale projects.
Our program can be extended to show the use of MySQL and Python.
MySQL can be used as the back end to store the data in form of database
and Python can be used as the connecting programming language.
SYSTEM REQUIREMENTS
HARDWARE COMPONENTS
1. VGA Monitor
2. Qwerty Keyboard
3. 4 GB RAM
4. 2.6 GHz Processor
5. Graphics Card
SOFTWARE COMPONENTS
1. Windows 7
2. Python 3.0 with suitable modules
3. MYSQL 8.0 Command Line Client
Python Introduction
Page 5
It is used for:
Software development, web development (server-side), system scripting, Mathematics.
Features of Python:
1. Easy to use : Due to simple syntax rule
2. Interpreted language : Code execution & interpretation line by line.
3. Cross-platform language : It can run on Windows, Linux, Macintosh etc. equally 4.
Expressive language : Less code to be written as it itself express the purpose of
the code.
5. Completeness : Support wide range of library.
6. Free & Open Source : Can be downloaded freely and source code can be modify for
improvement.
Shortcomings of Python:
1. Lesser libraries : as compared to other programming languages like c+
+,java,.net
2. Slow language : as it is interpreted languages, it executes the program slowly.
3. Weak on Type-binding : It will not pin point on use of a single variable for
different data types.
Page 6
directly from the class, whereas you must invoke instance methods on a
particular instance.
Abstraction - Hiding the Unnecessary details from the user and providing
only the required details, is called Data Abstraction.
Polymorphism - This means the ability to take more than one form. An
operation may exhibit different behavior in different instances. The
behavior depends upon the types of data used in the operation. It plays an
important role in allowing objects having different internal structures to
share external interface.
MYSQL Introduction
Page 7
Features of mysql:
Portability: Small enough in size to install and run it on any types of Hardware and OS
like Linux, MS Windows or Mac etc.
CODE
print(' |]***** #}}}}}}}}] ^^^ (((((((((( 0000000
&&&&&&& ')
print(' |] # } ^^^ (( 0**0&
')
print(' |]***** #********" ^^^ (( 0 *+*
0 &&&&&&& ')
print(' |] # ^^^ (( 0**0 &
')
print(' "--**** # ^^^ (((((((((( 0000000
&&&&&&& ')
g=[]
print('
')
print(' ')
print(' ')
print(' EPICOS theatre movie reservation
Page 8
site ')
print(' -------------------------------------
')
print(' @@
')
print(' *****
')
a=input("Enter Your Name:") print("Welcome ",a," to our Site.We wish
You have a good time ahead!") print("Movies running:")
print(" 1-Minions")
print(" 2-Jumanji")
print(" 3-Frozen")
print(" 4-Jurassic world")
print(" 5-Shin chan")
m1="Minions"
m2='Jumanji' m3='Frozen'
m4='Jurassic world' m5='Shin
chan' h=int(input("Enter Movie
Code:")) if h==1:
b=input("Enter Time:") c=input("Enter
Date:")
print("Please Select Your Seats: \n")
print("a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18
a19 a20") print("b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14
b15 b16 b17
b18 b19 b20") print("c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15
c16 c17 c18
c19 c20") print("d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14
d15 d16 d17
d18 d19 d20") print("e1 e2 e3 e4 e5 e6 e7 e8 e9 e10 e11 e12 e13 e14 e15
e16 e17 e18
Page 9
e19 e20") print("f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17
f18 f19
f20") print("g1 g2 g3 g4 g5 g6 g7 g8 g9 g10 g11 g12 g13 g14 g15 g16
g17 g18
g19 g20")
print(" ") print(" ")
print("h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17
h18 h19 h20") print("i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16
i17 i18 i19 i20") d=int(input("\nEnter No of Seats: ")) for e in range(d):
f=input("\nEnter Seat NO:") g.append(f)
Page 10
MOVIE RESERVATION SYSTEM MARCH 2022
if i=='l':
j=500 elif
i=='n':
j=250
else:
print('Wrong Input!')
k=int(input("Enter 1 if SNACKS wanted and 2 for NO:") ) if
k==1:
print(" 1-POPCORN") print(" 2-
KFC Meal")
print(" 3-Mc Donalds Meal")
l=int(input("\nEnter No:")) if
l==1:
m=80 elif
l==2:
m=270
elif l==3:
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 12
m=350
n=(j*d)+m
print("Your Ticket Cost is: ",n)
else: n=j*d
print("Your Ticket Cost is: ",n)
o=int(input('Enter PAYPAL- 1 or CREDIT CARD-2:')) if
o==1:
x=input("PAYPAL ID:")
print('Amount Successfully Credited! Thank You!') print("YOUR
TICKET:")
print(" ")
print("| Name :",a," |")
MOVIE RESERVATION SYSTEM MARCH 2022
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 12
MOVIE RESERVATION SYSTEM MARCH 2022
if h==2:
b=input("Enter time:") c=input("Enter
date:")
print("Please Select Your Seats: \n")
print("a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18
a19 a20") print("b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14
b15 b16 b17
b18 b19 b20") print("c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15
c16 c17 c18
c19 c20") print("d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14
d15 d16 d17
d18 d19 d20") print("e1 e2 e3 e4 e5 e6 e7 e8 e9 e10 e11 e12 e13 e14 e15
e16 e17 e18 e19 e20") print("f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14
f15 f16 f17 f18 f19
f20")
print("g1 g2 g3 g4 g5 g6 g7 g8 g9 g10 g11 g12 g13 g14 g15 g16 g17 g18
g19 g20")
print(" ") print(" ")
print("h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17
h18 h19 h20") print("i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16
i17 i18 i19 i20") d=int(input("\nEnter No of Seats: \n")) for e in range(d):
f=input("Enter Seat No: ") g.append(f)
i=input("Enter l for LUXURY and n for NORMAL:") if
i=='l':
j=500 elif
i=='n':
j=250
else:
print('Wrong Input!')
k=int(input("Enter 1 if SNACKS wanted and 2 for NO:") ) if
k==1:
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 13
MOVIE RESERVATION SYSTEM MARCH 2022
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 14
MOVIE RESERVATION SYSTEM MARCH 2022
NO:")
print('Amount Successfully Credited! Thank You!')
print("YOUR TICKET:")
print(" ")
print("| Name :",a," |")
print("| Date :",c,' |')
print("| Time :",b," |")
print("| Rate :",n," |")
print("| Seats :",g," |")
print("| Movie :",h," |")
print("| CC ID :",x," |")
print("| CCV ID :",x1," |")
print(" else: ")
else:
print('wrong input"')
if h==3:
b=input("Enter time:")
c=input("Enter date:")
print("Please Select Your Seats:")
print("a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18
a19 a20") print("b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14
b15 b16 b17
b18 b19 b20") print("c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15
c16 c17 c18
c19 c20") print("d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14
d15 d16 d17
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 15
MOVIE RESERVATION SYSTEM MARCH 2022
d18 d19 d20") print("e1 e2 e3 e4 e5 e6 e7 e8 e9 e10 e11 e12 e13 e14 e15
e16 e17 e18
e19 e20") print("f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17
f18 f19
f20") print("g1 g2 g3 g4 g5 g6 g7 g8 g9 g10 g11 g12 g13 g14 g15 g16
g17 g18
g19 g20")
print(" ") print(" ")
print("h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17
h18 h19 h20") print("i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16
i17 i18 i19 i20") d=int(input("\nEnter No of Seats")) for e in range(d):
f=input("\nEnter Seat No:") g.append(f)
i=input("\nEnter l for LUXURY and n for NORMAL:") if
i=='l':
j=500 elif
i=='n':
j=250
else:
print('Wrong input!')
k=int(input("\nEnter 1 if SNACKS wanted and 2 for NO:") ) if
k==1:
print(" 1-POPCORN") print(" 2-
KFC Meal") print(" 3-Mc Donalds
Meal")
l=int(input("\nEnter No:")) if
l==1:
m=80 elif
l==2:
m=270
elif l==3:
m=350
n=(j*d)+m
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 16
MOVIE RESERVATION SYSTEM MARCH 2022
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 17
MOVIE RESERVATION SYSTEM MARCH 2022
if h==4:
b=input("\nEnter time:") c=input("Enter
date:")
print("\nPlease select Your Seats: ")
print("a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18
a19 a20") print("b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14
b15 b16 b17
b18 b19 b20") print("c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15
c16 c17 c18
c19 c20") print("d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14
d15 d16 d17
d18 d19 d20") print("e1 e2 e3 e4 e5 e6 e7 e8 e9 e10 e11 e12 e13 e14 e15
e16 e17 e18 e19 e20")
print("f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17 f18 f19
f20")
print("g1 g2 g3 g4 g5 g6 g7 g8 g9 g10 g11 g12 g13 g14 g15 g16 g17 g18
g19 g20")
print(" ") print(" ")
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 18
MOVIE RESERVATION SYSTEM MARCH 2022
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 19
MOVIE RESERVATION SYSTEM MARCH 2022
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 20
MOVIE RESERVATION SYSTEM MARCH 2022
print('Wrong Input"')
if h==5:
b=input("\nEnter time:") c=input("Enter
date:")
print("\nPlease select your seats:")
print("a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18
a19 a20") print("b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14
b15 b16 b17
b18 b19 b20") print("c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15
c16 c17 c18
c19 c20") print("d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14
d15 d16 d17
d18 d19 d20") print("e1 e2 e3 e4 e5 e6 e7 e8 e9 e10 e11 e12 e13 e14 e15
e16 e17 e18
e19 e20") print("f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17
f18 f19
f20") print("g1 g2 g3 g4 g5 g6 g7 g8 g9 g10 g11 g12 g13 g14 g15 g16
g17 g18
g19 g20")
print(" ") print(" ")
print("h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17
h18 h19 h20") print("i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16
i17 i18 i19 i20") d=int(input("Enter no of seats")) for e in range(d):
f=input("\nEnter Seat No:") g.append(f)
i=input("\nEnter l for LUXURY and n for NORMAL:") if
i=='l':
j=500 elif
i=='n':
j=250
else:
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 21
MOVIE RESERVATION SYSTEM MARCH 2022
print('Wrong input!')
k=int(input("Enter 1 if SNACKS wanted and 2 for NO:") ) if
k==1:
print(" 1-POPCORN") print(" 2-
KFC Meal") print(" 3-Mc Donalds
Meal")
l=int(input("Enter No:")) if
l==1:
m=80 elif
l==2:
m=270
elif l==3:
m=350
n=(j*d)+m
print("\nYour Ticket Cost is: ",n)
else: n=j*d
print("Your Ticket Cost is: ",n)
o=int(input('Enter Paypal- 1 or Credit Card-2:')) if
o==1:
x=input("Paypal Id:")
print('Amount Successfully Credited! Thank You!') print("YOUR
TICKET:")
print(" ")
print("| Name :",a," |")
print("| Date :",c,' |')
print("| Time :",b," |")
print("| Rate :",n," |")
print("| Seats :",g," |")
print("| Movie :",h," |")
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 22
MOVIE RESERVATION SYSTEM MARCH 2022
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 23
MOVIE RESERVATION SYSTEM MARCH 2022
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 24
MOVIE RESERVATION SYSTEM MARCH 2022
DISPLAY GRAPH
#Plotting graph import numpy
as np import matplotlib.pyplot
as plt
data={
'Preetam':15,'Pruthvi':40,'Tejoradithya':10,'Sudarv
el':20}
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 24
CustomerNames=list(data.keys())
NoOfTimesBooked=list(data.values())
fig = plt.figure(figsize=(10,5))
plt.bar(CustomerNames,
NoOfTimesBooked,color='maroon',width=0.5)
plt.xlabel("Customer Names") plt.ylabel("Total
Bookings") plt.title("Report on Movie
Reservations") plt.show()
MOVIE RESERVATION SYSTEM MARCH 2022
OUTPUT SCREENSHOTS
1) WELCOME SCREEN
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 26
MOVIE RESERVATION SYSTEM MARCH 2022
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 27
MOVIE RESERVATION SYSTEM MARCH 2022
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 28
MOVIE RESERVATION SYSTEM MARCH 2022
5.) Selecting the Comfortability of the Seats and Snacks: (If Your Option is l and
1):
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 29
MOVIE RESERVATION SYSTEM MARCH 2022
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 30
MOVIE RESERVATION SYSTEM MARCH 2022
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 31
MOVIE RESERVATION SYSTEM MARCH 2022
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 32
MOVIE RESERVATION SYSTEM MARCH 2022
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 33
MOVIE RESERVATION SYSTEM MARCH 2022
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 34
MOVIE RESERVATION SYSTEM MARCH 2022
BIBLIOGRAPHY
❖ https://www.youtube.com/
❖ https://www.google.com/
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 35
MOVIE RESERVATION SYSTEM MARCH 2022
❖ https://dev.mysql.com/
❖ https://www.python.org/
❖ https://stackoverflow.com/
❖ https://github.com/
❖ https://www.geeksforgeeks.org/
❖ Class 12 – Informatics Practices Text Book
❖ Martin Brown and Martin C Brown, “Python: The Complete
Reference”,Mc-Graw-Hill,2001
S r i C h a i t a n y a T e c h n o S c h o o l , KUDLU , B a n g a l o r e Page 36