You are on page 1of 34

COMPUTER SCIENCE PROJECT

BATCH: 2021-22
SUBMITTED TO: MR. FARROUKH NADIM

SUBMITTED BY: CHIRAG MALIK


PRACHI KHATRI
VAIBHAV
CLASS: XII 'MARIGOLD’
CERTIFICATE

This is to certify that Chirag Malik, Vaibhav and

Prachi Khatri of class XII Marigold have successfully

completed the Computer Science project on the topic Movie

Ticket Management under the guidance of Mr. Farroukh

Nadim during the academic year 2021-22.

____________

SIGNATURE
ACKNOWLEDGEMENT

We would like to express our special thanks of

gratitude to our teacher Mr. Farroukh Nadim as well as

our principal Mrs. Anupma Bhardwaj who gave us

golden opportunity to do this project of Computer

Science, which also helped us in doing a lot of research

and we came to know new things about it. Without

their help, guidance and support it would be

impossible to complete this project. Secondly, we

would also like to thank our parents and friends who

helped us a lot in finishing this project within limited

time. we am making this project not only for marks but

also to increase our knowledge. Once again thanks to

all who helped us in doing this project.


TABLE OF CONTENT

S.NO TOPIC PAGE NO.


.
1. INTRODUCTION 5-6

2. HARDWARE AND SOFTWARE 7


REQUIREMENT

3. MODULES IMPORTED 8

4. FUNCTIONS 9

5. FLOW OF THE PROGRAM 10

6. SOURCE CODE 11-29


7. SCREENSHOTS 30-33

8. BIBLOGRAPHY 34
INTRODUCTION

The basic role of making the online cinema ticket

booking system is to make a programmed online-based

system which will provide a simple and exchange

approach to book a ticket for a film. The client should

enter the data identified with the film after which the

system will provide choices to book the

ticket. Right now Ticket Booking System, the staff of

the cinema hall won't need to do anything for the

ticket booking as the procedure will be finished by the

client through the web which will decrease

the measure of staff required in the booking counter.

➢ FUTURE SCOPE

•This project we have carried out was a learning curve

for us in development of such systems. In the future we

shall add more features and functionalities

maintaining computer science principles.


• Allow users to rate movies after watching them

in the theatre.

•Allow users to add comments and subsequent

replies to comments to facilitate word of mouth.

Different dynamic interfaces for different

mobile devices of different sizes.


HARDWARE AND SOFTWARE
REQUIREMENTS

❑ Hardware :
✓ Computer peripherals

❑ Software:
✓ Python 3.10 version
✓ Any platform
MODULES IMPORTED

• pickle : It is used to save details of customer on

disk permanently.

• random: It is used to give reference no. to the

customer

• datetime: It is used to give current date and time

to customer.

• time: It is used in loading .


FUNCTIONS

1. menu: To choose the action to be performed

2. signup: For the signup of the customer.

3. venue: To choose the place of cinema hall.

4. support: To provide customer support.

5. load: Internet buffering

6. search: To search movies

7. ex: exit

8. book: For booking movies

9. addbook: To show the choices of support and

signup
FLOW OF THE PROGRAM

SIGNUP

BOOKING A
MOVIE

SELECTING
MOVIE

SELECTING
VENUE

SELECTING
TIME

BOOKING
SUMMARY
SOURCE CODE
import time

import datetime

import random

import pickle

global movnam

global details

details=[]

def signup():

ofile=open('usr.dat','ab')

uid=random.randint(1,1000)

pickle.dump(uid,ofile)

print('\t\t\tBOOKING ID :',uid)

details.append(uid)

fname=input('\t\t\tFIRST NAME : ')

pickle.dump(fname,ofile)

details.append(fname)

sname=input('\t\t\tSECOND NAME : ')

pickle.dump(sname,ofile)

details.append(sname)
gnd=input('\t\t\tGENDER\t\t : ')

pickle.dump(gnd,ofile)

details.append(gnd)

id=input('\t\t\tENTER VALID EMAIL ADDRESS : ')

pickle.dump(id,ofile)

details.append(id)

while True:

pswd=input('\t\t\t\tPASSWORD : ')

pswd2=input('\t\t\tCONFIRM PASSWORD : ')

if pswd== pswd2:

break

else:

print('\n\t\t\t---PASSWORDS DO NOT MATCH!---\n')

while True:

phn=input('\t\t\tMOBILE NO. : ')

pickle.dump(phn,ofile)

details.append(phn)

if len(phn)!=10:

print('\n\t\t\tENTER VALID MOBILE NO.!')


else:

break

ofile.close()

print('\n\t\t\t ---YOU HAVE SIGNED UP SUCCESSFULLY---\n')

def addbook():

while True:

print('\t\t\t +-------------+')

print('\t\t\t |1. SIGNUP |')

print('\t\t\t |2. SUPPORT |')

print('\t\t\t |3. EXIT |')

print('\t\t\t +-------------+\n')

print('\t\t\t','..'*30)

c=int(input('\t\t\t ENTER YOUR CHOICE : '))

print('\t\t\t','..'*30,'\n')
if c==1:

signup()

book()

Break

elif c==2:

support()

break

elif c==3:

ex()

break

else:

print('\n\t\t ---INVALID CHOICE!---')

def book():

ch= input('\n\t\t\t DO YOU WANT TO BOOK A MOVIE (Y/N) : ')

if ch=='y' or ch=='Y':

menu()

venue()
def venue():

udet=[]

print ("\t\t\t+"+"-"*50+"+")

print ("\t\t\t1. DT Cinemas: DLF Place, Saket +".upper())

print ("\t\t\t+"+".."*25+"+")

print ("\t\t\t2. Cinepolis: Unity One Mall Rohini, Delhi +".upp

er())

print ("\t\t\t+"+".."*25+"+")

print ("\t\t\t3. Cinepolis: Grand Venice Mall, Greater Noida +

".upper())

print ("\t\t\t+"+"-"*50+"+")

plc=["DT Cinemas: DLF Place, Saket\t\t ".upper(),"Cinepolis:

Unity One Mall Rohini, Delhi".upper(),"Cinepolis: Grand Veni

ce Mall, Greater Noida".upper()]

h=int(input("\n\t\t\t>>> Choose Your Desired Venue : ".uppe

r()))

udet.append(plc[h-1])
Click to awhile True:

if h==1:

print("\n\t\t\t +--------------------+")

print("\t\t\t | SHOW TIMINGS |")

print("\t\t\t | ---- ------- |")

print("\t\t\t +--------------------+")

print("\t\t\t |1. 10:00 AM |")

print("\t\t\t |2. 05:00 PM |")

print("\t\t\t |3. 08:30 PM |")

print("\t\t\t +--------------------+\n")

tm=["10:00 AM","05:00 PM","08:30 PM"]

j=int(input("\n\t\t\t Select Your Show Timings : ".uppe

r()))

if j>3 or j==0:

print('\n\t\t\t >>>INVALID CHOICE!<<<\n')

continue

else:

udet.append(tm[j-1])

break
elif h==2:

print("\n\t\t\t+--------------------+")

print("\t\t\t| SHOW TIMINGS |")

print("\t\t\t| ---- ------- |")

print("\t\t\t+--------------------+")

print("\t\t\t|1. 11:25 AM |")

print("\t\t\t|2. 03:26 PM |")

print("\t\t\t|3. 05:45 PM |")

print("\t\t\t|4. 08:33 PM |")

print("\t\t\t+--------------------+\n")

tm=["11:25 AM","03:26 PM","05:45 PM","08:33 PM"]

j=int(input("\n\t\t\t Select Your Show Timings : ".upper()))

if j>4 or j==0:

print('\n\t\t\t >>>INVALID CHOICE!<<<\n')

continue

else:

udet.append(tm[j-1])

break
elif h==3:

print("\n\t\t\t+--------------------+")

print("\t\t\t| SHOW TIMINGS |")

print("\t\t\t| ---- ------- |")

print("\t\t\t+--------------------+")

print("\t\t\t|1. 10:32 AM |")

print("\t\t\t|2. 11:56 AM |")

print("\t\t\t|3. 01:11 PM |")

print("\t\t\t|4. 04:40 PM |")

print("\t\t\t|5. 07:55 PM |")

print("\t\t\t+--------------------+\n")

tm=["10:32 AM","11:56 AM","01:11 PM","04:40 PM","07:5

5 PM"]

j=int(input("\n\t\t Select Your Show Timings : ".upper()))


if j>5 or j==0:

print('\n\t\t\t\t\t >>>INVALID CHOICE!<<<\n')

continue

else:

udet.append(tm[j-1])

break

else:

print('\n\t\t\t\t\tINVALID CHOICE!\n')

t=time.localtime()

udet.append(t)

print('YOUR TICKET HAS BEEN BOOKED SUCCESSFULLY!

')

print("\n\n\t\t+","+"*67,"+")

print('\t\t+ \t\t\tBOOKING SUMMARY',' '*29,'|')

print ("\t\t+","-"*67,"+")

print('\t\t -=> BOOKING ID :',details[0])

print('\t\t -=> NAME :',details[1]+' '+ details[2])

print('\t\t -=> EMAIL ID :',details[4])

print('\t\t -=> MOBILE :',details[5])


print('\t\t -=> MOVIE :',details[6])

print('\t\t -=> PLACE :',udet[0])

print('\t\t -=> BOOKING DATE :',t[2],'/',t[1],'/',t[0])

print('\t\t -=> SHOW TIMINGS :',udet[1])

print('\t\t -=> TAX (GST) :','Rs.',float(0.1)*200)

print('\t\t -=> TOTAL COST :','Rs.',200+float(0.1)*200)

print ("\t\t+","-"*67,"+")

print("\t\t+","+"*67,"+")

r= input('DO YOU WANT TO BOOK ANOTHER TICKET(Y/N): ')

if r == 'Y' or r == 'y':

menu()

elif r == 'n' or r =='N':

ex()

else:

print('enter a valid choice')

def load():

print('\n\t\t\t >>> LOADING',)


def support():

print ("\t\t\t +------------------------------------------+")

print ("\t\t\t | SUPPORT : CONTACT FOR ANY QUERY |")

print ("\t\t\t | ------- ------- --- --- ----- |")

print ("\t\t\t +------------------------------------------+")

print ("\t\t\t | * MANAGER : PRACHI KHATRI |")

print ("\t\t\t | MOBILE : 900XXXX000X|")

print ("\t\t\t | * STRAW BOSS : CHIRAG MALIK |")

print ("\t\t\t | MOBILE : 9XXXX0000X0 |")

print ("\t\t\t | * ACCOUNTANT : VAIBHAV |")

print ("\t\t\t | MOBILE : 9XX00XX0000 |")

print ("\t\t\t +------------------------------------------+")

print ("\n\n\t\t\t |1. GO BACK |")

print ("\t\t\t |2. EXIT |")

v= int(input('ENTER YOUR CHOICE: '))

if v== 1:

addbook()

elif v== 2:

ex()
def search():

s4=0

while s4!=4:

print ("\t\t\t +------------------------+")

print ("\t\t\t | NOW SHOWING |")

print ("\t\t\t | --- ------- |")

print ("\t\t\t +------------------------+")

print ("\t\t\t |1. ZERO |")

print ("\t\t\t |2. ROCKSTAR |")

print ("\t\t\t |3. FAULT IN OUR STARS |" )

print ("\t\t\t |4. GO BACK |")

print ("\t\t\t |5. MAIN MENU |")

print ("\t\t\t +------------------------+")

s4=int(input('\t\t ENTER YOUR CHOICE : '))

if s4==1:

details.append('ZERO')

while True:

load()

print ("\n\n")

print ("\t\t\t +-------------------------------+")


print ("\t\t\t | OPTIONS |")

print ("\t\t\t | ------- |")

print ("\t\t\t +-------------------------------+")

print ("\t\t\t |1. BOOK THIS MOVIE |")

print ("\t\t\t |2. GO BACK |")

print ("\t\t\t |3. MAIN MENU |")

print ("\t\t\t +-------------------------------+\n")

s5=int(input('\t\t SELECT AN OPTION TO PROCEED : '))

if s5==1:

movnam='ZERO'

details.append(movnam)

venue()

break

elif s5==2:

load()

search()

break
elif s5==3:

load()

menu()

else:

print('\n\t\t ###INVALID CHOICE###\n')

elif s4==2:

details.append('ROCKSTAR')

while True:

load()

print ("\n\n\t\t\t +-------------------------------+")

print ("\t\t\t | OPTIONS |")

print ("\t\t\t | ------- |")

print ("\t\t\t +-------------------------------+")

print ("\t\t\t |1. BOOK THIS MOVIE |")

print ("\t\t\t |2. GO BACK |")

print ("\t\t\t |3. MAIN MENU |")

print ("\t\t\t +-------------------------------+\n")


s5=int(input('\t\t SELECT AN OPTION TO PROCEED : '))

if s5==1:

movnam=' ROCKSTAR'

details.append(movnam)

venue()

print('YOUR TICKET HAS BEEN BOOKED SUCCESSFULLY!')

elif s5==2:

load()

break

elif s5==3:

load()

menu()

else:

print('\n\t\t\t ###INVALID CHOICE###\n')

elif s4==3:

details.append('FAULT IN OUR STARS')

while True:

load()

print ("\n\n\t\t\t +-------------------------------+")

print ("\t\t\t | OPTIONS |")


print ("\t\t\t | ------- |")

print ("\t\t\t +-------------------------------+")

print ("\t\t\t |1. BOOK THIS MOVIE |")

print ("\t\t\t |2. GO BACK |")

print ("\t\t\t |3. MAIN MENU |")

print ("\t\t\t +-------------------------------+\n")

s5=int(input('\t\t SELECT AN OPTION TO PROCEED : '))

if s5==1:

movnam='FAULT IN OUR STARS'

details.append(movnam)

venue()

print('YOUR TICKET HAS BEEN BOOKED SUCCESSFULLY!')

elif s5==2:

load()

break

elif s5==3:

load()

menu()
else:

print('\n\t\t\t ###INVALID CHOICE###\n')

elif s4==4:

break

elif s4==5:

menu()

else:

print('\n\t\t\t ###INVALID CHOICE###\n')

def ex():

print('GOOD BYE')

print('THANKS FOR VISITING')

print('SEE YOU AGAIN!')

def menu():

c=0

while c!=7:

print('\n\n\t\t\t+------------------------------------------+')

print('\t\t\t|1. BOOK A MOVIE |')

print('\t\t\t|2. EXIT |')

print('\t\t\t+------------------------------------------+')
c=int(input("\n\t\t ENTER YOUR CHOICE :- "))

if c==1:

load()

search()

elif c==2:

ex()

break

else:

print('\n\t\t\t###INVALID CHOICE###\n')

#calling function

addbook()
SCREENSHOTS
BIBLIOGRAPHY

❖ To develop this project many references were used:

1. COMPUTER SCIENCE TEXTBOOK CLASS 12: SUMITA

ARORA

2. https://www.google.com

3. https://www.python.org.in

4. https://www.programiz.com

5. https://www.geeksforgeeks.com

You might also like