1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sholpan [36]
3 years ago
6

An internet service provider has three different subscription package 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 acustomer's monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A,B,C) and the number of hours that were used.It should then display the total charges. In addition calculate and display the amount of money Package A customers would save if they purchases Package B or C, and the amount of money package B customers would save if they purchased Package C. If there would be no savings, no message should be printed.
Business
1 answer:
dimaraw [331]3 years ago
7 0

Answer:

# The user is prompt for input to enter type of package

# the received input is capitalize

selected_package = str(input("Enter the package that you purchased.")).capitalize()

# The user is prompt for input to enter number of hours

hours_used = int(input("Enter the hours that you use for the purchased package."))

# Basic price for package a

base_price_package_a = 9.95

# Basic price for package b

base_price_package_b = 13.95

# Basic price for package c

base_price_package_c = 19.95

# additional price for package a

additional_price_a = 2

# additional price for package b

additional_price_b = 1

# total charge for the entire internet consumption

total_charges = 0

# if user entered A

if(selected_package == str('A')):

   # additionail hour is calculated

   extra_hour = hours_used - 10

   # total_charge is calculated for package a

   total_charges = base_price_package_a + (extra_hour * additional_price_a)

   # total charge for package a is displayed

   print("Your total charges using package A is: $",total_charges)

# if user entered B    

elif(selected_package == str('B')):

   # additionail hour is calculated

   extra_hour = hours_used - 20

   # total_charge is calculated for package b

   total_charges = base_price_package_b + (extra_hour * additional_price_b)

   # total charge for package b is displayed

   print("Your total charges using package B is: $",total_charges)

# if user entered C    

elif(selected_package == str('C')):

   print("You bought package C")

# amount to be saved

amount_saved = 0

# if user bought package A and total charge exceed 13.95

if (selected_package == str('A') and total_charges > base_price_package_b):

   # amount saved if package a is bought is calculated relative to package b

   amount_saved = total_charges - base_price_package_b

   # amout saved is printed

   print("You would have saved $",amount_saved, " if you bought package B")

   # amount saved if package a is bought is calculated relative to package c

   amount_saved = total_charges - base_price_package_c

   # amout saved is printed

   print("You would have saved $",amount_saved, " if you bought package C")

# if user bought package B and total charge exceed 19.95    

elif(selected_package == str('B') and total_charges > base_price_package_c):

   # amount saved if package b is bought is calculated relative to package c

   amount_saved = total_charges - base_price_package_c

   # amout saved is printed

   print("You would have saved $",amount_saved, " if you bought package C")

Explanation:

The code is written in python and well commented.

You might be interested in
Nicole owns a small organic spice company called RaisaSpice and was looking for a new product to add to her company's line. A fr
DENIUS [597]

Answer:

Market Testing Stage

Explanation:

This was a new venture for Nicole. She wanted to try something new for the first time as compared to the normal business routine she had. So, she took the advice of her friend and combined spices after which, she distributed a first batch to grocery stores in Portland Seattle. She did this to test her product, to see how well customers would take this innovation. The feedback gained from the grocery stores she supplied to will be a determinant if she should continue mass production or not. That point is what we call Market testing stage.

6 0
3 years ago
Broker John is advertising a desirable property that sold months ago to attract buyers. When the buyers ask to see that property
Katyanochek1 [597]

Answer:

Bait-and-switch advertising.

Explanation:

BAIT AND SWITCH ADVERTISING is a type of advertising where a seller of a products or goods deceive a prospective buyer by advertising a product that is desirable in which when the buyer make an effort to purchase the product or ask to see the advertised product the seller will show the prospective buyer available product instead of the advertised product in which the buyer will then find out that the advertised product is unavailable just as in the case of John who advertised a desirable property that was already sold out a months ago in order to attract prospective buyers in which when the advertised product was ask by the buyers he shows the buyer available properties instead which means that this act by Broker John is an example of BAIT AND SWITCH ADVERTISING.

8 0
2 years ago
The _____ is a production period long enough for the firm to adjust the
EastWind [94]

Answer:

long run, productive resources

4 0
3 years ago
Which of the following is considered an advantage of home ownership?
Elena L [17]
D. Interest paid on the mortgage of your home is tax deductible
4 0
3 years ago
Read 2 more answers
Suppose annual salaries for sales associates from Hayley's Heirlooms have a bell-shaped distribution with a mean of $32,500 and
Rashid [163]

Answer:

-1.8

Explanation:

Data provided in the question:

Mean = $32,500

Standard deviation = $2,500

Earning, X = $28,000

Now using the formula provided in the question for the calculation of the z - score, we have

z score = ( X - Mean ) ÷ ( Standard deviation )

on substituting the respective values, we get

z score = ( $28,000 - $32,500 ) ÷ ( $2,500 )

or

z score = -4500 ÷ $2,500

or

z - score = -1.8

6 0
3 years ago
Other questions:
  • To raise capital, candace tyson and martha black plan to sell stock to between 108 and 200 investors. they also want to avoid do
    7·1 answer
  • The information-processing theory was inspired by the knowledge of how _____ function. animals' brains high-level businesses com
    8·1 answer
  • You operate a small catering firm specializing in sit-down dinner parties that you prepare and serve yourself with no helpers. A
    7·2 answers
  • Support this statement using complete sentences: “Constructive criticism is offered in a way that encourages growth and learning
    13·1 answer
  • Choose the preferred sentence from each pair and justify your choice.
    10·1 answer
  • Which mode of transportation typically has the highest value-to-weight ratio? (Food for thought as you answer this question: Thi
    6·1 answer
  • Research indicates that 25 percent of U.S. salespeople engaged in __________ selling consider it unethical to explicitly ask cus
    14·1 answer
  • Interorganizational systems are examples of _____.
    5·1 answer
  • The ______________________________ is an award competition for students attending Nuts and Bolts member schools that recognizes
    9·1 answer
  • Silviocoto say hi plz do it
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!