Professional Documents
Culture Documents
Alaraaf
Alaraaf
Project
NAME: Alaraaf Hassan
CLASS: 12 A
BOARD ROLL NO:
SCHOOL: Chinmaya Vidyalaya
South park
CineEase
BOOKING MOVIE TICKETS
Project on: Movie
tickets
booking
system
CineEase
BOOKING MOVIE TICKETS
CERTIFICATE
This is to certify that “Alaraaf Hassan” student of class 12 A
has successfully completed their Computer project on the
topic “Employee Management System” under the guidance
of “Mr Shubhasis Dey” .
Mr Shubhasis Dey
HOD External Examiner
CineEase
BOOKING MOVIE TICKETS
CONTENTS
TABLE OF
ABOUT PYTHON 5
ACKNOWLEDGEMENT 6
SOURCE CODE 7-12
OUTPUT SCREEN 13-15
CONCLUSION 16
CineEase
BOOKING MOVIE TICKETS
ACKNOWLEDGEMENT
CineEase
BOOKING MOVIE TICKETS
5
ABOUT PYTHON
Python is the gift that keeps on giving. The more you understand
Python, the more you can do in the 21st Century. As simple as
that. Python is a widely-used, interpreted, object-oriented, and
high-level programming language with dynamic semantics, used
for general-purpose programming. It’s everywhere, and people
use numerous Python-powered devices on a daily basis, whether
they realize it or not. Python was created by Guido van Rossum,
and first released on February 20, 1991. While you may know the
python as a large snake, the name of the Python programming
language comes from an old BBC television comedy sketch
series called Monty Python’s Flying Circus. One of the amazing
features of Python is the fact that it is actually one person’s
work. Usually, new programming languages are developed and
published by large companies employing lots of professionals,
and due to copyright rules, it is very hard to name any of the
people involved in the project. Python is an exception. Of course,
Guido van Rossum did not develop and evolve all the Python
components himself. The speed with which Python has spread
around the world is a result of the continuous work of thousands
(very often anonymous) programmers, testers, users (many of
them aren’t IT specialists) and enthusiasts, but it must be said
that the very first idea (the seed from which Python sprouted)
came to one head – Guido’s. Python is maintained by the Python
Software Foundation, a non-profit membership organization and
a community devoted to developing, improving, expanding, and
popularizing the Python language and its environment.
PREPARED BY
Alaraaf Hassan
and group
CineEase
BOOKING MOVIE TICKETS
6
SOURCE CODE:-
#Computer project
#Topic:- Movie tickets booking system
import pickle
CineEase
BOOKING MOVIE TICKETS
7
screen_b = ("""Screen (Big)
-----------------------------------------------
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15| _ _ _ _ _
J| O O O O O O O O O O O O O O O | Vip
I| O O O O O O O O O O O O O O O | _ _ _ _ _
H| O O O O O O O O O O O O O O O |
G| O O O O O O O O O O O O O O O | Preimium
F| O O O O O O O O O O O O O O O | _ _ _ _ _
E| O O O O O O O O O O O O O O O |
D| O O O O O O O O O O O O O O O | Executive
C| O O O O O O O O O O O O O O O | _ _ _ _ _
B| O O O O O O O O O O O O O O O | Normal
A| O O O O O O O O O O O O O O O | _ _ _ _ _
-----------------------------------------------
""")
CineEase
BOOKING MOVIE TICKETS
8
states=["jharkhand","bihar","delhi","west bengal","maharastra"]
jharkhand=["jamshedpur","ranchi"]
jamshedpur=["pjp cinepolis","eylex cinemas"]
ranchi=["pjp cinepolis","eylex cinemas"]
bihar=["patna","darbhanga"]
patna=["pjp cinepolis","eylex cinemas"]
darbhanga=["pjp cinepolis","eylex cinemas"]
delhi=["new Delhi","kair"]
new_delhi=["pjp cinepolis","eylex cinemas"]
kair=["pjp cinepolis","eylex cinemas"]
west_bengal=["kolkata","asansol"]
kolkata=["pjp cinepolis","eylex cinemas"]
asansol=["pjp cinepolis","eylex cinemas"]
maharastra=["mumbai","pune"]
mumbai=["pjp cinepolis","eylex cinemas"]
pune=["pjp cinepolis","eylex cinemas"]
screens=[screen_s,screen_m,screen_b]
screensize=["small","medium","big"]
big=["A1","A2","A3","A4","A5","A6","A7","A8","A9","A10","A11","A12","A13","A14","A15",
"B1","B2","B3","B4","B5","B6","B7","B8","B9","B10","B11","B12","B13","B14","B15",
"C1","C2","C3","C4","C5","C6","C7","C8","C9","C10","C11","C12","C13","C14","C15",
"D1","D2","D3","D4","D5","D6","D7","D8","D9","D10","D11","D12","D13","D14","D15",
"E1","E2","E3","E4","E5","E6","E7","E8","E9","E10","E11","E12","E13","E14","E15",
"F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","F13","F14","F15",
"G1","G2","G3","G4","G5","G6","G7","G8","G9","G10","G11","G12","G13","G14","G15",
"H1","H2","H3","H4","H5","H6","H7","H8","H9","H10","H11","H12","H13","H14","H15",
"I1","I2","I3","I4","I5","I6","I7","I8","I9","I10","I11","I12","I13","I14","I15",
"J1","J2","J3","J4","J5","J6","J7","J8","J9","J10","J11","J12","J13","J14","J15"]
CineEase
BOOKING MOVIE TICKETS
5
medium=["A1","A2","A3","A4","A5","A6","A7","A8","A9","A10",
"B1","B2","B3","B4","B5","B6","B7","B8","B9","B10",
"C1","C2","C3","C4","C5","C6","C7","C8","C9","C10",
"D1","D2","D3","D4","D5","D6","D7","D8","D9","D10",
"E1","E2","E3","E4","E5","E6","E7","E8","E9","E10",
"F1","F2","F3","F4","F5","F6","F7","F8","F9","F10",
"G1","G2","G3","G4","G5","G6","G7","G8","G9","G10",
"H1","H2","H3","H4","H5","H6","H7","H8","H9","H10",
"I1","I2","I3","I4","I5","I6","I7","I8","I9","I10",
"J1","J2","J3","J4","J5","J6","J7","J8","J9","J10",]
small=["A1","A2","A3","A4","A5","A6","A7","A8","A9","A10",
"B1","B2","B3","B4","B5","B6","B7","B8","B9","B10",
"C1","C2","C3","C4","C5","C6","C7","C8","C9","C10",
"D1","D2","D3","D4","D5","D6","D7","D8","D9","D10",
"E1","E2","E3","E4","E5","E6","E7","E8","E9","E10"]
def check(a,b,c):
if a==b:
return(c)
def isvalue(a):
for i in a:
if i is not None:
return(i) CineEase
BOOKING MOVIE TICKETS
6
print("!!!!! You are welcomed to CineEase !!!!!")
print("Who book's movie ticket for you in just some steps.")
print("\n",rules)
tuple1=(check(state,"jharkhand",jharkhand),
check(state,"bihar",bihar),
check(state,"delhi",delhi),
check(state,"west bengal",west_bengal),
check(state,"maharastra",maharastra))
tuple2=(check(city,"jamshedpur",jamshedpur),
check(city,"patna",patna),
check(city,"darbhanga",darbhanga),
check(city,"mumbai",mumbai),
check(city,"asansol",asansol),
check(city,"pune",pune),
check(city,"ranchi",ranchi),
check(city,"kolkata",kolkata),
check(city,"new delhi",new_delhi),
check(city,"kair",kair))
for i in screens:
print(i)
print()
screensize=take("Enter your screensize: ",screensize)
CineEase
BOOKING MOVIE TICKETS
7
if screensize=="big":
size=screen_b
size1=big
if screensize=="small":
size=screen_s
size1=small
if screensize=="medium":
size=screen_m
size1=medium
print(size)
f=open("movietickets.dat","ab+")
record=pickle.load(f)
added=[]
i="y"
while True:
seatno=input("Seat alphabet: ").upper()+input("Seat no. :")
if seatno not in record:
print("This seat is booked. Press Enter Key to continue.")
input("\nPress \"Enter key\" to continue.")
elif seatno not in size1:
print("invalid input! Please choose from the list given")
elif i.lower()=="y":
added.append(seatno)
i=input("Want to add more type 'y' else press 'Enter key' to confirm
your booking:",)
if i.lower()!="y":
break
else:
break
added.append(seatno)
pickle.dump(added,f)
f.close()
8
OUTPUT SCREEN:-
CineEase
BOOKING MOVIE TICKETS
5
CineEase
BOOKING MOVIE TICKETS
6
CineEase
BOOKING MOVIE TICKETS
7
CONCLUSION
CineEase
BOOKING MOVIE TICKETS