Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
TicketBEKA? Ticket booking
1. NAME :
CLASS : CLASS XII
ROLL NO. :
AFFILIATION NO.: 830571
Plot No 43/65, Gnanaganganagar, Mallathhalli,
BENGALURU KARNATAKA-560 056
PROJECT DETAILS
SUBJECT: INFORMATICS PRACTICES
TITLE: ‘TicketBEKA?’ Ticket Booking
2. “THERE ARE TIMES WHEN SILENCE SPEAKS SO
MUCH MORE LOUDLY THAN WORDS OF
PRAISE TO ONLY AS GOOD AS BELITTLE A
PERSON, WHOSE WORDS DO NOT EXPRESS,
BUT ONLY PUT A VENEER OVER TRUE
FEELINGS, WHICH ARE OF GRATITUDE AT THIS
POINT OF TIME.”
I express my gratitude to my teacher and the
faculty of Informatics practices, I acknowledge
the support of our Principal in providing the
laboratory facilities. I am deeply indebted to
the support provided by my parents and
friends who helped me in successfully
completion of this project
3. 1. Introduction
2. Hardware and software
requirements
3. Detailed Design of MYSQL
4. Python Screen Shots
5. Coding
6. Future Enhancements
7. Conclusion
8. Bibliography
4. Buying tickets for your favorite Movie
after standing in a long queue can be
tiring and inconvenient when you’re in a
hurry. As technology started to reach
the masses, the need of a online ticket
booking service has been fulfilled by
many companies, such as BookMyShow,
PayTM etc.
We have coded a program using Python
and MySQL that allows its users to book
tickets to Movies in selected theatres,
Plays around them, Sport events in their
city.
5. Before installing this project the following
requirements must be attended to.
HARDWARE REQUIREMENTS:
Processor. Intel ® Pentium ® CPU G2020 @
2.90GHz
RAM: 2:00GB
SOFTWARE REQUIREMENTS:
System Type: 32-Bit Operating System
FRONT END: PythonVersion 3.7.0.
BACK END: MySQL 5.1,5.3 with Connector J
Supported Soft wares: Python Libraries such as
Pandas, Numpy, matplotlib…etc
11. Coding
import mysql.connector as c
from datetime import date
import prettytable as pt
con=c.connect(host="localhost",user="root",passwd="1234",database="DSL")
cursor=con.cursor()
try:
gold=150
sofa=300
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print(" ")
print(" TicketBEKA? ")
print("_____________________________________________________________")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
while(True):
print(" 1. SIGN UP n 2. LOGIN n 3. CLOSE ")
ch=int(input(" Enter your choice "))
if ch==1:
un=int(input(" Enter a five digit number as you Customer number "))
n=input(" Enter customer name ")
PhnoORemail=input(" Enter Phone number/E-mail ID - ")
pwd=input(" Enter six chracter password ")
cpwd=input("CONFIRM six chracter password ")
if pwd==cpwd:
cursor.execute("insert into Register(Cno,Name,PhnoORemail,pwd)
values({},'{}','{}','{}')".format(un,n,PhnoORemail,pwd))
con.commit()
print("Registered Successfully !","nUsername=",un,"nPassword=",pwd)
else:
print("password not matching,please re-enter")
elif ch==2:
un=int(input("Enter you 5 digit Customer number"))
pwd=input("Enter Password")
cursor.execute("Select Cno,pwd from Register where Cno=%s"%(un))
d=cursor.fetchone()
x=d[0]
y=d[1]
12. while(True):
print("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$")
print("$$$ CONGRAGULATIONS! YOU HAVE EARNED Rs.500 ON YOUR
TicketBEKA WALLET! $$$")
print("$$$ Select Wallet option in booking payment to claim the
money> $$$")
print("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$")
print(" Please select your choice for bookingn 1. MOVIES n 2. PLAYS n
3. SPORTS n 4. Exit ")
cx=int(input("Enter your choice "))
if cx==1:
print("""
*******************
*** NOW SHOWING ***
*******************
1. KGF : Chapter 2 (Kannada-3D) [UA]
2. DHOOM 4 (Hindi-2D) [UA]
3. FROZEN (English-3D) [U]
""")
cy=int(input("Select a Movie to book tickets "))
if cy==1:
t=pt.PrettyTable(['NAME OF THEATRE','TIMINGS1','TIMINGS2','TIMINGS3‘
,'GOLD','SOFA'])
cursor.execute("Select * from showtimings")
s=cursor.fetchall()
for i in s:
t.add_row(i)
print(t)
cz=int(input("Select a theatre Option 1 or 2 or 3 ="))
print("select your timings")
ctiming=input("1.10:00AMn2.03:00PM n3.07:00PMn ")
sno=int(input("Enter number of seats = "))
cursor.execute("Select gold,sofa from showtimings")
13. d=cursor.fetchone()
g=d[0]
e=d[1]
sclass=int(input("Select the type of seat(1:gold/2:sofa)"))
if sclass==1:
cost=sno*g*sclass
elif sclass==2:
cost=sno*g*sclass
print("TOTAL AMOUNT=",cost)
pay=input("Want to proceed to payment using TicketBEKA Wallet n 1. Yes 2. No ")
#done
if pay=='1' :
print(" Transaction completed. Payment successful. ")
print(" Tickets booked! Use your Cno to access Your tickets at the theatre. ")
print("n")
print("n")
else:
print("pay cash in counter,THANK YOU")
elif cy==2:
t=pt.PrettyTable(['NAME OF THEATRE','TIMINGS1','TIMINGS2','TIMINGS3','GOLD','SOFA'])
cursor.execute("Select * from showtimings")
s=cursor.fetchall()
for i in s:
t.add_row(i)
print(t)
cz=int(input("Select a theatre Option 1 or 2 or 3 ="))
print("select your timings")
ctiming=input("1.10:00AMn2.03:00PM n3.07:00PMn")
sno=int(input("Enter number of seats = "))
cursor.execute("Select gold,sofa from showtimings")
d=cursor.fetchone()
g=d[0]
e=d[1]
sclass=int(input("Select the type of seat(1:gold/2:sofa)"))
if sclass==1:
cost=sno*g*sclass
elif sclass==2:
cost=sno*g*sclass
print("TOTAL AMOUNT=",cost)
pay=input("Want to proceed to payment using TicketBEKA Wallet n 1. Yes 2. No ")
if pay=='1':
print(" Transaction completed. Payment successful. ")
print(" Tickets booked! Use your Cno to access Your tickets at the theatre. ")
print("n")
print("n")
else:
print("pay cash in counter,THANK YOU")
14. elif cy==3:
t=pt.PrettyTable(['NAME OF THEATRE','TIMINGS1','TIMINGS2','TIMINGS3','GOLD','SOFA'])
cursor.execute("Select * from showtimings")
s=cursor.fetchall()
for i in s:
t.add_row(i)
print(t)
cz=int(input("Select a theatre Option 1 or 2 or 3 ="))
print("select your timings")
ctiming=input("1.10:00AMn2.03:00PM n3.07:00PMn")
sno=int(input("Enter number of seats = "))
cursor.execute("Select gold,sofa from showtimings")
d=cursor.fetchone()
g=d[0]
e=d[1]
sclass=int(input("Select the type of seat(1:gold/2:sofa)"))
if sclass==1:
cost=sno*g*sclass
elif sclass==2:
cost=sno*g*sclass
print("TOTAL AMOUNT=",cost)
pay=input("Want to proceed to payment using TicketBEKA Wallet n 1. Yes 2. No ")
#done
if pay=='1':
print(" Transaction completed. Payment successful. ")
print(" Tickets booked! Use your Cno to access Your tickets at the theatre. ")
print("n")
print("n")
else:
print("pay cash in counter,THANK YOU")
elif cx==2:
print('''
|----------------|
|***Around you***|
|----------------|
1.Malegalali Madumagalu
2.Merchant of Venice
''')
cy=int(input("Select your PLAY"))
if cy==1:
t=pt.PrettyTable(['LOCATION','TIMING1','TIMING2'])
cursor.execute("Select * from location")
s=cursor.fetchall()
for i in s:
t.add_row(i)
print(t)
ctiming=input("1.05:00PMn2.08:00PMn")
print("""Class:
1. Gold Rs. 100
2. Sofa Rs. 200""")
15. sclass=int(input("Select the type of seat"))
sno=int(input("Enter number of seats = "))
if sclass==1:
cost=sno*100*sclass
elif sclass==2:
cost=sno*100*sclass
print("TOTAL AMOUNT=",cost)
pay=input("Want to proceed to payment using TicketBEKA Wallet n 1. Yes 2. No ")
#done
if pay=='1' :
print(" Transaction completed. Payment successful. ")
print(" Tickets booked! Use your Cno to access Your tickets at the theatre. ")
print("n")
print("n")
else:
print("pay cash in counter,THANK YOU")
else:
print("""Class:
1. Gold Rs. 100
2. Sofa Rs. 200""")
sclass=int(input("Select the type of seat"))
sno=int(input("Enter number of seats = "))
if sclass==1:
cost=sno*100*sclass
elif sclass==2:
cost=sno*100*sclass
print("TOTAL AMOUNT=",cost)
pay=input("Want to proceed to payment using TicketBEKA Wallet n 1. Yes 2. No ")
#done
if pay=='1' :
print(" Transaction completed. Payment successful. ")
print(" Tickets booked! Use your Cno to access Your tickets at the theatre. ")
print("n")
print("n")
else:
print("pay cash in counter,THANK YOU")
16. #Code for sports############################################################################
elif cx==3:
t=pt.PrettyTable(['SlNo','Matches','Stadium','Timings'])
cursor.execute("Select * from SportsTable")
s=cursor.fetchall()
for i in s:
t.add_row(i)
print(t)
cz=int(input("Select a Match. Option 1 or 2 ="))
if cz==1:
print("""Class:
1. G-Stand Rs. 1500
2. Pavilion Rs. 3000""")
sclass=int(input("Select the type of seat"))
sno=int(input("Enter number of seats = "))
if sclass==1:
cost=sno*1500*sclass
elif sclass==2:
cost=sno*1500*sclass
print("TOTAL AMOUNT=",cost)
pay=input("Want to proceed to payment using TicketBEKA Wallet n 1. Yes 2. No ")
#done
if pay=='1' :
print(" Transaction completed. Payment successful. ")
print(" Tickets booked! Use your Cno to access Your tickets at the Stadium ")
print("n")
print("n")
else:
print("pay cash in counter,THANK YOU")
else:
print("""Class:
1. North West Rs. 500
2. Gallery Rs. 1000""")
sclass=int(input("Select the type of seat"))
sno=int(input("Enter number of seats = "))
if sclass==1:
cost=sno*500*sclass
elif sclass==2:
cost=sno*500*sclass
500*sclass
print("TOTAL AMOUNT=",cost)
pay=input("Want to proceed to payment using TicketBEKA Wallet n 1. Yes 2. No ")
#done
if pay=='1' :
print(" Transaction completed. Payment successful. ")
print(" Tickets booked! Use your Cno to access Your tickets at the Stadium ")
print("n")
print("n")
else:
print("pay cash in counter,THANK YOU")
else:
break
else:
print("Invalid Customer number or password")
elif ch==3:
exit()
except Exception as e:
print(e)
17. FUTURE ENHANCEMENTS
• We can use animation for transitions.
• We can add more choices for selection.
• We can add online payment-transaction
system using their UPI.
• Personalized recommendations of movies
and plays can be enabled using their past
usage history.
• Large amount of data can be managed
through its high performance libraries and
tools.
• User reviews and ratings can be taken to
improve suggestions.
18. The ‘TicketBEKA?’ Project helped us to
understand how a online booking system
works. It enabled us to understand how
large amount of data is categorized and
stored. It helped us improve our
entrepreneurial skills and creative
thinking. It taught us team management
and coordination.
19. Bibliography
Books Reffered:
1. Informatics Practices class 12-by
Sumita Arora [Dhanpat Rai and Co]
2. Together with Informatics Practices
study material class 12 by Reeta Sahoo
and Gagan Sahoo
Online:
www.wikipedia.com
www.googleimages.com
www.dev.mysql.com