You are on page 1of 23

CERTIFICATE

This is to certify that, ANSHIKA SHARMA,


Roll no. ________ of class 12th A, Session:
2022-23 has prepared the project file as per
the prescribed practical syllabus of
COMPUTER SCIENCE(083) Class 12th
(C.B.S.E) under my supervision, I am
completely satisfy with the performance.
I wish him/her all the success in life.

____________ __________
Teacher’s External’s
signature signature

Acknowledgement
I wish to express my deep sense of gratitude
and indebtedness to our learned teacher Mrs.
Neeta Chauhan. Computer science, for her
valuable help, advice and guidance in the
preparation of this project file.
I also extend my thanks to number of
teachers, my classmates and friends who
helped me to complete this project file
successfully.

- Anshika Sharma

CONTENTS

1. Introduction
2. Objective and Scope of the
Project
3. System implementation
3.1 The hardware used:
3.2 The software used:
4. System design and development
4.1 Database design
4.2 Event coding
5. Output
6. References

Introduction
“MOVIE TICKET MANAGEMENT
SYSTEM” is a project that enables us to book
our favourite movies which are on trend. We
can also search for upcoming movies. The
project also provides services like easy
payments and access to their accounts to make
modifications at anytime.

This project is aimed to provide the


customers facility to book ticket for cinema
halls online, through which they can book
tickets anytime and anywhere. Movie ticket
management system is basically made for
providing the customer an anytime and
anywhere service to gather information about
the movies online.

OBJECTIVE AND
SCOPE OF THE
PROJECT
The objective of developing such a
computerization system is-
 To provide anytime, anywhere
service to the customer.
 To minimize the number of staff at
the ticket box.
 To promote the film on the internet.
 To increase the profit.
 To obtain statistic information from
the booking record.
 In its current scope, the software
enables user to retrieve and update the
information from centralized database
designed with MySQL.
Despite of the best effort of the developer,
the following limitations and functional
boundaries are visible, which limits the
scope of this application software.
1. This software can store records but it
cannot produce reports.
2. There is no provision to book a specific
seat
3. The user cannot cancel their movie
tickets after booking.

SYSTEM
IMPLEMENTATION
HARDWARE USED :
 PC with Intel Core i3–6006 U having
8GB RAM, 64 bit Operating System

SOFTWARE USED :
 PC Microsoft Windows® 10 Pro as
Operating System.
 Python 3.11.0 as Front-end
Development environment.
 MySQL as Back-end Sever with
Database for Testing.
 MS-Word 2019 for documentation.

SYSTEM DESIGN &


DEVELOPMENT

DATABASE DESIGN :
An important aspect of system design is the
design of data storage structure. To begin with
a logical model of data structure is developed
first. A database is a container object which
contains tables, queries, reports and data
validation policies enforcement rules or
constraints etc. A logical data often
represented as a records are kept in different
tables after reducing anomalies and
redundancies. The goodness of data base
design lies in the table structure and its
relationship.
This software project maintains a database
named MYDATATYPE which contains the
following tables.
TABLE DESIGN :
The database of MOVIE TICKET
MANAGEMENT SYSTEM contains 2
tables in database PROJECT. The tables are
normalized to minimize the redundancies of
data and enforcing the validation rules of the
organization.
The tables and their structure are given below.

EVENT CODING
import mysql.connector as sqlcon
con=sqlcon.connect(host="localhost",user="root",pas
sword="1234",database="mydatatype")
c=1
while c in (1,2):
print("""WELCOME TO THEATRE :
1) SIGN IN
2) SIGN UP
3) EXIT
""")
c=int(input("Enter your choice: "))
if c==1:
print()
print("To login enter: ")
print()
user_id=int(input("ID(in iteger): "))
passwd=input("password: ")
cur=con.cursor()
cur.execute("select*from admin")
data=cur.fetchall()

for row in data:


movie=[['bhramastra',200],['avengers',220],
['KGF',300],['shiddat',240]]
if (user_id in row) and (passwd in row):
c2=1
print("")
print("SUCCESSFULLY LOGGED
IN!!!!!!")
print('_'*70)
print("")
while c2 in(1,2):
print(' ')
print('1) Book tickets')
print(' ')
print('2) Check records')
print(' ')
print('3) LOG OUT')
print("")
c2=int(input("Enter your choice"))
if (c2==1):
print('''
MOVIES : PRICE
1){} : {}

2){} : {}

3){} : {}

4){} : {}
'''.format(movie[0][0],movie[0][1],movie[1]
[0],movie[1][1],movie[2][0],movie[2][1],movie[3]
[0],movie[3][1]))
m_name=int(input("Enter choice :"))
name=input("Enter name :")
tickets=int(input("No. of tickets :"))
print()
print("TOTAL =
Rs.",tickets*movie[m_name-1][1])
query='insert into customer
values("{}","{}","{}")'.format(name,movie[m_name-
1][0],tickets)
cur=con.cursor()
cur.execute(query)
con.commit()
print()
print("TICKETS BOOKED")
print('_'*70)
print()
elif(c2==2):
cur=con.cursor()
cur.execute('select*from customer')
record=cur.fetchall()
count=cur.rowcount
print()
print("Total Bookings :",count)
for row in record:
print()
print(row)
print('_'*70)
print()
elif(c2==3):
print('')
print('You successfully logged out!!')
print('_'*70)
print()
break
else:
print()
print('_'*70)
print()
elif (c==2):
try:
print('')
print('To create your account Enter:')
print('')
user_id=int(input("Enter ID(in integer):"))
print('')
passwd=input("Create password:")
print('')
cur=con.cursor()
update="insert into admin
values('{}','{}')".format(user_id,passwd)
cur.execute(update)
con.commit()
print("Account Created!!")
print('_'*70)
print()
except:
print("ID already taken!!")
print('_'*70)
print()
elif (c==3):
print('')
print('VISIT AGAIN')
print('')
print('THANK YOU!')
print('_'*70)
con.close()

CODING TO CREATE
DATABASE
import mysql.connector as sqlcon
conn=sqlcon.connect(host="localhost", user="root",
password="1234", database="mydatatype")
cur=conn.cursor()
admin="create table admin(ID int(5) primary key,
pass varchar(10))"
customer="create table customer(name varchar(20),
m_name varchar(20), tickets int(3))"
cur.execute(admin)
cur.execute(customer)
conn.commit()
print("table is created successfully")

OUTPUT
1) Table is created….
2) SIGN UP….
3) SIGN IN….
4)BOOKING TICKETS….
5) CHECKING RECORDS….
6) LOG OUT….

7) EXIT FROM PROGRAM….


REFERENCES
BOOK:
Computer Science with Python for class XII
-By Sumita Arora

WEBSITES:
www.geeksforgeeks.org
www.w3schools.com
www.tutorialspoint.com
www.scribd.com

You might also like