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
Why do I have pay for answers when I'm going to school to be able to earn money? Yes, I'm 16, almost 17 and don't have a job bec
sammy [17]

Explanation:

Thank you for this brilliant question, the truth is that you do not have to pay the fee yourself, you parents are meant to pay the fee for you, think of it, when you are asked for school fee in school, who is expected to pay? your mom i guess right, same thing with paying for answers, which is still part of your education, now paying for answers so that you keep learning is the obligation of your parents (mom or dad).

Thank you if you need for clarification do not hesitate to ask more questions

3 0
3 years ago
Wildhorse Co. began the year 2022 with retained earnings of $651000. During the year, the company sold additional shares of stoc
Volgvan

Answer:

$1,800,000

Explanation:

Equity which represents the amount owed to the owners of the business includes retained earnings (which is the accumulation of the net income/loss over the years less dividends paid) and common shares.

Ending retained earnings = Beginning retained earnings + additional stock issued + net income - dividend paid

= $651000 + $1017000 + $649000 - $376000 - $141000

= $1,800,000

7 0
3 years ago
which of the following describes an important difference between general partnership and limited partnerships
dexar [7]
The main difference between a general partnership and a limited partnership is that "<span>A general partnership has unlimited liability for all partners while a limited partnership has limited liability." In addition, the liability of the personal assets in a general partnership is its obligation.</span>
8 0
3 years ago
Read 2 more answers
Services differ from manufacturing for all of the following reasons EXCEPT: a. Heterogeneity b. Time-perishable capacity c. Simu
wolverine [178]

Answer:C. Simultaneous production and consumption.

Explanation:

Production and consumption occuring at the same time will not make products to differ.

Heterogenity which refers to different qualities in firms will lead to different products. Time perishable capacity which means idle time during low patronage will still allowed products differences, Abilities to limit the discretionary input of personnel will not debar product differences and Customer provides significant input into the process will allowed products differences.

4 0
3 years ago
On October 1, 2009, the Nintendo Wii's Japanese price dropped from ¥25,000 to ¥20,000. In the three months after the price drop,
kykrilka [37]

Answer:

B) 0.7; inelastic

Explanation:

The computation of the absolute value of the price elasticity of demand is shown below:

Elasticity is

= [(Sales - prior sales) ÷ ( Sales + prior sales) ÷ 2] ÷ [(price - dropped price) ÷ (price - dropped price) ÷ 2

= [(1,040,000 - 890,000) ÷ (1,040,000 + 890,000) ÷ 2] ÷ [(25,000 - 20,000) ÷ (25,000 + 20,000) ÷ 2]

= (150,000 ÷ 965,000) ÷ (5,000 ÷ 22,500)

= 0.15 ÷ 0.22

= 0.7

It is less than one so the demand is inelastic

4 0
3 years ago
Other questions:
  • Cushman company, inc. had $800,000 in sales, sales discounts of $12,000, sales returns and allowances of $18,000, cost of goods
    15·2 answers
  • An HR manager for PepsiCo, a company known for its commitment to diversity, is seeking to hire employees who are very comfortabl
    12·1 answer
  • suppose that alexi and tony can sell all their street tacos for $2 each and all their cuban sandwiches for $7.25 each. If each o
    7·1 answer
  • An investor purchases one municipal bond and one corporate bond that pay rates of return of 7% and 8.4%, respectively. If the in
    15·1 answer
  • Nathan buys a new microwave for $200. The microwave’s label bears a disclaimer that the manufacturer is not liable for consequen
    8·1 answer
  • Managerial coordination refers to the
    6·1 answer
  • _______ believed that quality stemmed from "constancy of purpose," and that managers should stress teamwork,be helpful rather th
    6·1 answer
  • Far Side Corporation is expected to pay the following dividends over the next four years: $13, $12, $6, and $3. Afterward, the c
    5·1 answer
  • 1
    9·1 answer
  • The following diagram shows the five styles of handling conflict. Select the correct label for each. Then read the scenario and
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!