ONLINE MOVIE BOOKING
import calendar as c1
def booking():
x=input("WELCOME TO THE ONLINE MOVIE BOOKING....\n Please fill up your details\
n USER NAME:")
z=input("PASSWORD:")
if x=='harini' and z=='12345':
print("Type start to start your Booking")
else:
print("Invalid username (or) password")
a=input('')
if a=='start':
print("SELECT WHICH MOVIE DO YOU WANT TO WATCH...!!")
print("1.RAAYAN")
print("2.Deadpool & Wolverine")
print("3.Miracle")
print("4.Avatar")
print("5.Harry Potter")
b=input("SELECT THE OPTION:")
if b=='1':
print("SHOWTIMES...\n (i)9.30 AM\n (ii)12:30 PM\n (iii) 3:30 PM\n (iv)
6:30 PM")
elif b=='2':
print("SHOWTIMES...\n (i)10:15 AM\n (ii)1:15 PM\n (iv)4:15 PM\n (v)7:15
PM")
elif b=='3':
print("SHOWTIMES...\n (i) 11:10 AM\n (ii) 2:10 PM\n (iii) 5:10 PM\n
(iv)8:10 PM")
elif b=='4':
print("SHOWTIMES...\n (i) 9:00 AM\n (ii) 12:00 PM\n (iii) 3:00 PM\n
(iv)6:00 PM")
elif b=='5':
print("SHOWTIMES...\n (i) 11:00 AM\n (ii)2:00 PM\n (iii)5:00 PM\n
(iv)8:00 PM")
else:
print("Thankyou...")
u=input("WHICH TIME DO YOU WANT TO WATCH THE MOVIE :")
if u=='i':
print("Enjoy your movie time with joy and happiness")
elif u=='ii':
print("Have a great time")
elif u=='iii':
print("Enjoy with snacks and joy")
elif u=='iv':
print("Have a wonderfull day..")
else:
print("thankyou")
c=input("DO YOU WANT TO BOOK THIS MOVIE(yes/no):")
if c=='yes':
print("Enjoy your movie time...")
else:
print("Thankyou")
print(c1.month(2024, 8))
i = int(input("Enter a preferred date (1-31): "))
if i>=1 and i<=4:
print("30 seats are available in this date.")
elif i>=5 and i<=11:
print("35 seats are available in this date.")
elif i>=12 and i<=18:
print("40 seats are available in this date.")
elif i>=19 and i<=25:
print("45 seats are available in this date.")
elif i>=26 and i<=31:
print("50 seats are available in this date.")
else:
print("No valid seats")
j=int(input("How many seats are you going to book ? :"))
if j<=45:
print("The cost of one ticket( for one member) is 150")
else:
print("Thank You")
k=int(input("Enter how many members are going to watch this movie :"))
k1=k*150
m=print("Your Total cost is :",k1)
n=input("Do you want to confirm your payment ? (yes/no)")
if n=='yes':
print("THANK YOU FOR YOUR CONFIRMATION YOUR PAYMENT IS SUCCESSFULL... :)")
else:
print("YOUR PAYMENT IS UNSUCCESSFULL..:(")
print("please fill this details to see your bill details..")
o1=input("userame :")
if o1=='harini':
print("Thank You for your Confimation..")
else:
print("Thankyou")
p=input("Enter your mobile number :")
if 10==len(p):
print("your mobile number is confirmed..")
else:
print("Thankyou")
print(" ")
print("******** YOUR BILL DETAILS ********")
print("Username :",o1)
print("Mobile number :",p)
print("Movie date :",i)
print("Total cost :",k1)
booking()
OUTPUT:
WELCOME TO THE ONLINE MOVIE BOOKING....
Please fill up your details
USER NAME: harini
PASSWORD:12345
Type start to start your Booking
start
SELECT WHICH MOVIE DO YOU WANT TO WATCH...!!
1.RAAYAN
2.Deadpool & Wolverine
3.Miracle
4.Avatar
5.Harry Potter
SELECT THE OPTION:2
SHOWTIMES...
(i)10:15 AM
(ii)1:15 PM
(iv)4:15 PM
(v)7:15 PM
WHICH TIME DO YOU WANT TO WATCH THE MOVIE :ii
Have a great time
DO YOU WANT TO BOOK THIS MOVIE(yes/no):yes
Enjoy your movie time...
August 2024
Mo Tu We Th Fr Sa Sun
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Enter a preferred date (1-31): 10
35 seats are available in this date.
How many seats are you going to book ? :2
The cost of one ticket( for one member) is 150
Enter how many members are going to watch this movie :2
Your Total cost is : 300
Do you want to confirm your payment ? (yes/no)yes
THANK YOU FOR YOUR CONFIRMATION YOUR PAYMENT IS SUCCESSFULL... :)
please fill this details to see your bill details..
username :harini
Thank You for your Confirmation..
Enter your mobile number :9876543219
your mobile number is confirmed..
******** YOUR BILL DETAILS ********
Username : harini
Mobile number : 9876543219
Movie date : 10
Total cost : 300