12CS Project Docu Sept 24
12CS Project Docu Sept 24
MORIAL SCHOOL
SESSION-2024-25
COMPUTER SCIENCE
PROJECT ON
NAME:RASHI DUBEY
Principal’s Sign
RASHI DUBEY
INDEX
SNO CONTENT
1 INTRODUCTION
4 PROGRAM DESCRIPTION
5 USER DOCUMENTATION
6 CODING
8 CONCLUSION
9 BIBLIOGRAPHY
INTRODUCTION
HARDWARE RESOURCES:
System Type :64-bitOperating System
CPU Type :12th Gen Intel(R) Core(TM)
Main Processor : i5-1235U
CPU Clock Speed : 1.30 GHz
Installed RAM : 8 GB
Printer : Inkjet/Laser Printer
SOFTWARE RESOURCES:
Operating System : Windows 11 Pro
Programming Language : Python 3.7
IDE : IDLE
Word Processing Software: MS-Word
DATA DICTIONARY
TABLES :-
SQL TABLE CONTENTS AND
DESCRIPTION
..
PROGRAM DESCRIPTION
PACKAGES IMPORTED
Import mysql.connector
VARIABLES USED:-
[1]MYCON:
[2]name
FUNCTIONS USED:-
[1]
[2]
USER DOCUMENTATION
STEP 1:
STEP 2:
STEP 3:
CODING
MULTIPLEX MOVIE MANAGEMENT PRO-
GRAM!!!!
import mysql.connector as con
#creating database
def intro():
c=con.connect(host='localhost',user='root',pa
sswd='')
if con is connected():
print('CONNECTION ES-
TABLISHED^_^')
else:
print("SERVER DISCON-
NECTED>_<")
cur=c.cursor()
q=("create database movie")
cur.execute(q)
c.close()
#intro()
print('~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~')
#creating table
#table 1
def table():
c=con.connect(host='localhost',user='root',pa
sswd='',database='movie')
cur=c.cursor()
q='create table info2(sno int,day
char(10),time varchar(8),moviename
char(50),tickets int,price int)'
cur.execute(q)
c.close()
#table()
#values in table1
def inp():
c=con.connect(host='localhost',user='root',pa
sswd='',database='movie')
cur=c.cursor()
q="insert into info2 values(1,'MON-
DAY','10:15am','FOREST OF FIREFLIES(ENG
SUB)',500,250)"
r="insert into info2 values(2,'MON-
DAY~ ','2:00pm','IT ENDS WITH US (ENG
SUB)',800,350)"
s="insert into info2 values(3,'MON-
DAY~','7:30pm','LOVE LIES BLEEDING(ENG
SUB)',500,500)"
t="insert into info2 values(4,'MON-
DAY~','10:00pm','TIME WE SPENT',380,345)"
cur.execute(q)
cur.execute(r)
cur.execute(s)
cur.execute(t)
c.commit()
c.close()
#inp()
def table2():
c=con.connect(host='localhost',user='root',pa
sswd='',database='movie')
cur=c.cursor()
R='create table info3(sno int,day
char(10),time varchar(8),moviename
char(50),tickets int,price int)'
cur.execute(R)
#table2()
def v():
c=con.connect(host='localhost',user='root',pa
sswd='',database='movie')
cur=c.cursor()
q="insert into info3 values(1,'TUES-
DAY','10:15am','MUNJHYA',500,150)"
r="insert into info3 values(2,'TUES-
DAY~ ','2:00pm','STREE 2 ',800,400)"
s="insert into info3 values(3,'TUES-
DAY~','7:30pm','YAARIYAN 2',500,560)"
t="insert into info3 values(4,'TUES-
DAY~','12:00am','CONJURING 3(ENG
SUB)',380,660)"
cur.execute(q)
cur.execute(r)
cur.execute(s)
cur.execute(t)
c.commit()
c.close()
#v()
def table3():
c=con.connect(host='localhost',user='root',pa
sswd='',database='movie')
cur=c.cursor()
R='create table info4(sno int,day
char(10),time varchar(8),moviename
char(50),tickets int,price int)'
cur.execute(R)
#table3()
#inputing values in table 3 ~
def u():
c=con.connect(host='localhost',user='root',pa
sswd='',database='movie')
cur=c.cursor()
q="insert into info4 values(1,'SATUR-
DAY~','10:15am','THE STRANGERS(ENG
SUB)',500,150)"
r="insert into info4 values(2,'SATUR-
DAY~ ','2:00pm','SKELETONS IN THE
CLOSET(SUB) ',800,400)"
s="insert into info4 values(3,'SATUR-
DAY~','7:30pm','IMMACULATE(ENG
SUB)',500,560)"
t="insert into info4 values(4,'SATUR-
DAY~','12:00am','THE SHED(ENG
SUB)',380,660)"
cur.execute(q)
cur.execute(r)
cur.execute(s)
cur.execute(t)
c.commit()
c.close()
#u()
def table4():
c=con.connect(host='localhost',user='root',pa
sswd='',database='movie')
cur=c.cursor()
R='create table info6(sno int,day
char(10),time varchar(8),moviename
char(50),tickets int,price int)'
cur.execute(R)
#table4()
#inputing values in table 4 ~
def w():
c=con.connect(host='localhost',user='root',pa
sswd='',database='movie')
cur=c.cursor()
q="insert into info6 values(1,'SUN-
DAY~','12:00am','JOKER(ENG SUB)',500,150)"
r="insert into info6 values(2,'SUN-
DAY~ ','3:30pm','MONSTER(SUB) ',800,400)"
s="insert into info6 values(3,'SUN-
DAY~','7:00pm','BLADE(ENG SUB)',500,560)"
t="insert into info6 values(4,'SUN-
DAY~','12:00am','THE FIRST OMEN(ENG
SUB)',380,660)"
cur.execute(q)
cur.execute(r)
cur.execute(s)
cur.execute(t)
c.commit()
c.close()
#w()
print('\t\t\t\t\t\t☘WELCOME TO EKAMI☘\t\t\t\t\t\
t\t\t')
print('\t\t\t\t☯MOST ICONIC VENUE FOR
FILM,THEATRE....MUSIC AND
MOREEEEEEEEEEE!☯\t\t\t\t\t\t\t\t')
print('\t\t\tWANT TO GIVE YOUR LOVED ONES A
EXQUISITE DAY TO REMEMBER??...COME TO
print('\t\t\t\t\t\t\t⋇⊶⊰❣⊱⊷⋇\t\t\t\t\t\t\t\t\t\t')
EKAMI\t\t\t\t\t\t')
print(i[0],i[1],i[2],i[3])
c.close()
def tuesday():
c=con.connect(host='localhost',user='root',pa
sswd='',database='movie')
cur=c.cursor()
print('here are the movies-')
q='select moviename from info3;'
cur.execute(q)
y=cur.fetchall()
print(y[0],y[1],y[2],y[3])
print()
ask=input('Want details of a movie?
press$ ')
if ask=='$':
q='select
time,moviename,tickets,price as per_ticket
from info3;'
cur.execute(q)
f=cur.fetchall()
for i in f:
print(i[0],i[1],i[2],i[3])
c.close()
()
def saturday():
c=con.connect(host='localhost',user='root',pa
sswd='',database='movie')
cur=c.cursor()
print('here are the movies-')
q='select moviename from info4;'
cur.execute(q)
y=cur.fetchall()
print(y[0],y[1],y[2],y[3],sep='\n')
print()
print()
ask=input('Want details of a movie?
press$ ')
if ask=='$':
q='select
time,moviename,tickets,price as per_ticket
from info4;'
cur.execute(q)
f=cur.fetchall()
for i in f:
print(i[0],i[1],i[2],i[3])
c.close()
def sunday():
c=con.connect(host='localhost',user='root',pa
sswd='',database='movie')
cur=c.cursor()
print('here are the movies-')
q='select moviename from info6;'
cur.execute(q)
y=cur.fetchall()
print(y[0],y[1],y[2],y[3],sep='\n')
print()
print()
ask=input('Want details of a movie?
press$ ')
if ask=='$':
q='select
time,moviename,tickets,price as per_ticket
from info6;'
cur.execute(q)
f=cur.fetchall()
for i in f:
print(i[0],i[1],i[2],i[3])
c.close()
def forvisitor():
print()
mo=input('Enter the MOVIE you want
to see ')
print()
n=int(input('Seats to be booked '))
print()
no=int(input('Enter your phone no. '))
print('HEY! total amount has been
messaged to your no.')
print()
print('SELECT THE MODE OF PAYING-
UPI,GPAY,PHONEPAY,PAYTM')
print()
pay=input('Enter your mode ')
print()
print('YOUR TICKET HAS BEEN
BOOKED!☺')
print()
print('THANKYOU! HAVE A GREAT
DAY!!!')
def update():
print('We have following column
names-sno,day,time,moviename,tickets,price
and following tables ','~for monday
info2~' ,'~for tuesday info3~','~for saturday
info4~','~for sunday info6~',sep='\n')
print()
movie=input('Enter movie name you
want to add ')
time=input('Of which time you want
to change movie ' )
tab=input('In which table you want to
add this movie')
q="Update {} set moviename='{}'
where time='{}' "
cur.execute(q.format(tab,movie,time))
print('RECORD UPDATED')
print()
def remove():
print('GUIDE FOR YOU~you can re-
move record according to time the movie has
been sheduled')
print()
print('Timings for each day')
print()
print('ON MONDAY -
10:15am,2:00pm,7:30pm,10:00pm')
print()
print('ON TUESDAY AND SATURDAY-
10:15am,2:00pm,7:00pm,12:00am')
print()
print('ON SUNDAY-
12:00pm,3:30pm,7:00pm,12:00am')
print()
print('Following tables ','~For monday
info2~' ,'~For tuesday info3~','~For saturday
info4~','~For sunday info6~',sep='\n')
time=input('Of which time you want
to remove movie ' )
tab=input('In which table you want to
remove this movie')
q='delete from {} where time="{}"'
cur.execute(q.format(table,time))
print('RECORD DELETED')
def inp():
c=con.connect(host='localhost',user='root',pa
sswd='',database='movie')
cur=c.cursor()
user=input('HEY!YOU ARE A STAFF 0R
A VISITOR(s or v) ')
if user.upper() =='V':
Day=input("Enter the day ")
if Day.upper() in ['WEDNES-
DAY','THURSDAY','FRIDAY']:
print('NO Movies
sheduled on these days butttt......... YOU can
visit our new stores! ^_^')
print('But we have
more exiciting
things-','FOODSTALLS','PLAYSTATIONS')
elif Day.upper()=='MON-
DAY':
monday()
elif Day.upper()=='TUES-
DAY':
tuesday()
elif Day.upper()=='SATUR-
DAY':
saturday()
elif Day.upper()=='SUNDAY':
sunday()
forvisitor()
elif user.upper()=='S':
print('You can make follow-
ing changes-ADD A MOVIE,CHANGE THE
MOVIE,REMOVE A MOVIE OF A DAY/TIME')
print()
ch=input('Enter your choice-
UPDATE/REMOVE ')
if ch.upper()=='UPDATE':
update()
elif ch.upper()=='REMOVE':
remove()
c.close()
inp()
print()
CONCLUSION
BY NEETU GAIKWAD