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

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....
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...
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...
Pecan Theatre Inc. owns and operates movie theaters throughout Florida and Georgia. Pecan Theatre has declared...
Pecan Theatre Inc. owns and operates movie theaters throughout Florida and Georgia. Pecan Theatre has declared the following annual dividends over a six-year period: 20Y1, $48,000; 20Y2, $96,000; 20Y3, $216,000; 20Y4, $276,000; 20Y5, $348,000; and 20Y6, $432,000. During the entire period ended December 31 of each year, the outstanding stock of the company was composed of 40,000 shares of cumulative, preferred 3% stock, $100 par, and 100,000 shares of common stock, $10 par. Required: 1. Determine the total dividends and...
Pecan Theatre Inc. owns and operates movie theaters throughout Florida and Georgia. Pecan Theatre has declared...
Pecan Theatre Inc. owns and operates movie theaters throughout Florida and Georgia. Pecan Theatre has declared the following annual dividends over a six-year period: 20Y1, $32,000; 20Y2, $64,000; 20Y3, $152,000; 20Y4, $176,000; 20Y5, $224,000; and 20Y6, $288,000. During the entire period ended December 31 of each year, the outstanding stock of the company was composed of 20,000 shares of cumulative, preferred 4% stock, $100 par, and 100,000 shares of common stock, $25 par. Required: 1. Determine the total dividends and...
Pecan Theatre Inc. owns and operates movie theaters throughout Florida and Georgia. Pecan Theatre has declared...
Pecan Theatre Inc. owns and operates movie theaters throughout Florida and Georgia. Pecan Theatre has declared the following annual dividends over a six-year period: Year 1, $16,000; Year 2, $32,000; Year 3, $112,000; Year 4, $122,000; Year 5, $134,000; and Year 6, $148,000. During the entire period ended December 31 of each year, the outstanding stock of the company was composed of 20,000 shares of cumulative preferred 2% stock, $100 par, and 100,000 shares of common stock, $20 par. Required:...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT