In: Computer Science
**PYTHON**
A new movie theatre has three different subscription packages for its customers:
Package A: For $18.95 per month, the customer can watch 2 movies. Any additional movie requires an additional $2 per movie.
Package B: For $22.95 per month, the customer can watch 4 movies. Any additional movie requires an additional $1 per movie.
Package C: For $30.99 per month, the customer can watch an unlimited amount of movie.
Write a script that calculates a customer’s monthly bill. It should ask the user to enter the letter of the package purchased (A, B, or C) and the number of movies watched.
Using that information, your program should display the total bill. Your program should also display an error message and stop if the user enters any invalid values.
Would appreciate any help. Stuck on how to solve this or even get started. Thank you
#reading package details
pacakage=input("Enter package purchased(A , B , C): ")
#reading number of movies
movies=int(input("Enter number of movies watched: "))
total=0
#calculating for package A
if pacakage=="A":
total=18.95
if movies>2:
total=total+(movies-2)*2
#calculating for package B
elif pacakage=="B":
total=22.95
if movies>4:
total=total+(movies-4)
#calculating for package C
elif pacakage=="C":
total=30.99
else:
print("Invalid input")
#printing final bill if it is valid input
if(pacakage=="A" or pacakage=="B" or pacakage=="C"):
print("Total Bill : $",total)
Note : If you like my answer please rate and help me it is very Imp for me