Professional Documents
Culture Documents
PROJECT REPORT ON
ROLL NO :
CLASS : XII-E
1
CERTIFICATE
This is to certify that Cadet Aman Kumar has successfully completed the
project Work entitled MOVIE TICKET BOOKING the subject Computer Science laid
down in the regulations of CBSE for the purpose of Practical Examination in Class
(Pallavi Sharma)
PGT Comp Sci
Master IC
Examiner:
Name:
Signature:
2
TABLE OF CONTENTS [ T O C ]
01 ACKNOWLEDGEMENT 04
05 FLOW CHART 06
06 SOURCE CODE 09
07 OUTPUT 11
3
ACKNOWLEDGEMENT
Apart from the efforts of me, the success of any project depends largely on
the encouragement and guidelines of many others. I take this opportunity to express
my gratitude to the people who have been instrumental in the successful completion
of this project.
I express deep sense of gratitude to almighty God for giving me strength for
the successful completion of the project.
The guidance and support received from all the members who contributed
and who are contributing to this project, was vital for the success of the project. I am
grateful for their constant support and help.
4
OBJECTIVES OF THE PROJECT
The objective of this project is to let the students apply the programming
knowledge into a real- world situation/problem and exposed the students how
5
FLOW CHART FOR LAB
Start
if ch==1:
6
c1.execute(v_ins)
conn.commit()
if ch =2:
if ch ==3:
7
c = input ("Enter your movie name :")
a = input ("Enter your name :")
d = input ("Enter total tickets :")
b = input ("Enter your ph_no :")
pswd= input("Enter the password :”)
sks = input(" Order your snacks :")
if ch == 4:
stop
8
SOURCE CODE
import mysql.connector as sql
conn=sql.connect(host = 'localhost',user='root',passwd='manager',database='soft')
c1=conn.cursor()
if conn.is_connected():
print ("Enter your choice as 1,2,3&4")
print ("$$$$$$$$$$$$ PALLVAN THEATRE BOOKING (AC & NON AC)
$$$$$$$$$$$$$$")
print ("SIGN UP")
print ("LOG IN")
print ("PALLAVAN THEATRE")
con = input ("do you want to continue or not :")
ch=int(input("Enter your choice :"))
if ch==1:
v_mname = input("Enter the movie name :")
v_phno = input("Enter phone number :")
v_tic = input("Enter total tickets :" )
v_sex = input ("Enter your sex :" )
v_fname = input ("Enter your first name :")
v_lname = input ("Enter your last name :")
v_passwd = input ("Enter your passwd :")
v_userID = input ("Enter your userID :")
v_snacks = input ("Order your snacks :")
v_ins="insert into theatre
values( '{}','{}','{}','{}','{}','{}','{}','{}','{}')".format(v_mname,v_phno,v_tic,v_sex,v_fname,v
_lname,v_passwd,v_userID,v_snacks)
c1.execute(v_ins)
conn.commit()
print (" ticket booked congrats")
print ("Thank you for visiting pallavan theatre")
print ("ratings")
ch=int(input("Enter your choice :"))
if ch ==2:
print ("##############WELCOME TO THE BOX OFFICE
(AC)##################")
c = input ("Enter your movie name :")
a = input ("Enter your name :")
d = input ("Enter total tickets :")
b = input ("Enter your ph_no :")
pswd= input("Enter the password :")
sks = input(" Order your snacks :")
print ("*********************TICKET BOOKED***********************")
ch=int(input("Enter your choice :"))
if ch ==3:
print ("************welcome to 1st class ticket booking **************")
c = input ("Enter your movie name :")
a = input ("Enter your name :")
d = input ("Enter total tickets :")
b = input ("Enter your ph_no :")
pswd= input("Enter the password :")
sks = input(" Order your snacks :")
print ("**TICKET BOOKED**")
9
ch=int(input("Enter your choice :"))
if ch == 4:
print ("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WELCOME TO 2nd CLASS TICKET
BOOKING !!!!!!!!!!!!!!!!!!!!!!!!!!!!")
a = input ("Enter your name :")
b = input ("Enter your movie name :")
c = input ("Enter your ph_no :")
d = input ("Enter total tickets :")
pswd= input("Enter the password :")
sks = input(" Order your snacks :")
print ("///////////////ENJOY THE MOVIE AND HAVE FUN/////////////////")
10
OUTPUT
# adding details:
11
12