CS
CS
[COMPUTER SCIENCE]
[XI 2024-25]
[SAMRUDDHI BUKKANURE]
Atomic Energy Central School -
3,Tarapur.
TAPS 3&4 Colony, Tapp, Palghar,
CERTIFICATE
This project entitled “CODE-BOOKING MOVIE TICKETS
”, is the investigatory project work in Computer Science,
successfully completed by Miss Samruddhi Shrishail
Bukkanure student of class XI,
Atomic Energy Central School 3, Tarapur, with AISSCE Roll
No 18 under the supervision of Mrs.Sona OK , for the partial
fulfillment of requirements for the course completion in
pursuance of AISSCE 2023-24.
if ch == 1:
print("\nAvailaible Movies")
print("_"*80)
for i in L:
print(f"Name: {i['name']} | Date: {i['date']} | Time: {i['time']} |
Screen: {i['screen']} | Price: Rs.{i['price']}")
print("_"*80)
elif ch==2:
print("\nSelect a movie to book:")
movie_choice = int(input("\nEnter the movie number you want
to book: "))-1
if 0 <= movie_choice < len(L):
customer_name = input("Enter your name: ")
customer_email = input("Enter your email: ")
customer_contact = input("Enter your contact number: ")
num_tickets = int(input("Enter the number of tickets you want
to book: "))
selected_movie = L[movie_choice]
total_price = selected_movie["price"] * num_tickets
bookings.append({"customer_name": customer_name,
"customer_email": customer_email,
"customer_contact":customer_contact,
"movie": selected_movie["name"],
"tickets": num_tickets,
"total_price": total_price})
print(f"\nBooking successful!")
print(f"Customer: {customer_name}")
print(f"Movie: {selected_movie['name']}")
print(f"Tickets: {num_tickets}")
print(f"Total Price: Rs.{total_price}")
else:
print("Invalid movie choice!")
elif ch==3:
if bookings:
print("\nCurrent Bookings:")
for booking in bookings:
print("_" * 80)
print(f"Customer: {booking['customer_name']}")
print(f"Email: {booking['customer_email']}")
print(f"Contact: {booking['customer_contact']}")
print(f"Movie: {booking['movie']}")
print(f"Tickets: {booking['tickets']}")
print(f"Total Price: Rs.{booking['total_price']}")
print("_" * 80)
else:
print("No bookings yet!")
elif ch == 4:
print("Exiting... Thank you!")
break
else:
print("Invalid choice! Please try again.")
REFERENCE
*****************************************