Question

In: Computer Science

**PYTHON** A new movie theatre has three different subscription packages for its customers: Package A: For...

**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

Solutions

Expert Solution

#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


Related Solutions

A mobile phone service provider has three different subscription packages for its customers: Package A: For...
A mobile phone service provider has three different subscription packages for its customers: Package A: For $39.99 per month 450 minutes are provided. Additional minutes are $0.45 per minute. Package B: For $59.99 per month 900 minutes are provided. Additional minutes are $0.40 per minute. Package C: For $69.99 per month unlimited minutes provided. Write a program that calculates a customer’s monthly bill. It should ask which package the customer has purchased and how many minutes were used. It should...
An Internet service provider has three different subscription packages for its customers: Package A: $9.95 per...
An Internet service provider has three different subscription packages for its customers: Package A: $9.95 per month 10 hours of access are provided.   Additional hours are $2.00 per hour. Package B: $14.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour. Package C: $19.95 per month unlimited access is provided. Write a MATLAB script to calculates a customer’s monthly bill. It should ask which package the customer has purchased and how many hours were used....
Program Requirements: An Internet service provider has three different subscription packages for its customers: Package A:...
Program Requirements: An Internet service provider has three different subscription packages for its customers: Package A: For $15 per month with 50 hours of access provided. Additional hours are $2.00 per hour over 50 hours. Assume usage is recorded in one-hour increments, Package B: For $20 per month with 100 hours of access provided. Additional hours are $1.50 per hour over 100 hours. Package C: For $25 per month with 150 hours access is provided. Additional hours are $1.00 per...
CPSC 1103 Assignment 1 Problem A cell phone provider has three different subscription packages for its...
CPSC 1103 Assignment 1 Problem A cell phone provider has three different subscription packages for its customers: Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour. Package B: For $14.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour. Package C: For $19.95 per unlimited access is provided. Write a program to ask which package the customer has purchased, what month they are using, and how...
Amazon has three packages (Package A, Package B, and Package C) that is to be shipped...
Amazon has three packages (Package A, Package B, and Package C) that is to be shipped to Bill’s address. Package A is worth $100, Package B is worth $200, and Package C is worth $300. All three packages have a 90% chance of arriving and a 10% chance of being lost in transit. a. Set up a probability distribution with the appropriate probabilities for each possible outcome. b. What is the expected loss (P*)? c. How much risk does Amazon...
Internet Service provider Part 1 (Java Program) An Internet service provider has three different subscription packages...
Internet Service provider Part 1 (Java Program) An Internet service provider has three different subscription packages for its customers: Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour. Package B: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour. Package C: For $19.95 per month unlimited access is provided. Write a program that calculates a customer’s monthly bill. It should ask the user to...
Love Theatre Inc. owns and operates movie theaters throughout New Mexico and Utah. Love Theatre has...
Love Theatre Inc. owns and operates movie theaters throughout New Mexico and Utah. Love Theatre has declared the following annual dividends over a six-year period: 2011, $36,000; 2012, $108,000; 2013, $162,000; 2014, $207,000; 2015, $261,000; and 2016, $324,000. During the entire period ending December 31 of each year, the outstanding stock of the company was composed of 30,000 shares of cumulative, 3% preferred stock, $100 par, and 100,000 shares of common stock, $20 par. Required: 1. Calculate the total dividends...
Love Theatre Inc. owns and operates movie theaters throughout New Mexico and Utah. Love Theatre has...
Love Theatre Inc. owns and operates movie theaters throughout New Mexico and Utah. Love Theatre has declared the following annual dividends over a six-year period: 2011, $36,000; 2012, $108,000; 2013, $171,000; 2014, $198,000; 2015, $252,000; and 2016, $315,000. During the entire period ending December 31 of each year, the outstanding stock of the company was composed of 30,000 shares of cumulative, 3% preferred stock, $100 par, and 100,000 shares of common stock, $20 par. Required: 1. Calculate the total dividends...
Software Sales A software company sells three packages, Package A, Package B, and Package C, which...
Software Sales A software company sells three packages, Package A, Package B, and Package C, which retail for $99, $199, and $299, respectively. Quantity discounts are given according to the following table: Quantity Discount 10 through 19 20% ,20 through 49 30% ,50 through 99 40% ,100 or more 50% . Create a C++ program that allows the user to enter the number of units sold for each software package. The application should calculate and display the order amounts and...
The Montana Movie Theatre Company (Montana) operates movie theatres in 15 different towns throughout western Montana,...
The Montana Movie Theatre Company (Montana) operates movie theatres in 15 different towns throughout western Montana, including in Missoula, a city of 60,000 people with a major state university. In Missoula, Montana owns and operates five movie theatres with a total of 38 screens. Montana operates the only theatre in Missoula and the theatres within a 30-mile radius around Missoula. Montana charges $6 for matinee movie times and $8.50 for evening movies. These prices are about 10% higher than the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT