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
Over lunch, Daniela and Hassan are discussing their managers. Daniela describes her boss as extremely motivating. Work goals are
Pepsi [2]

Answer:

transformational leader

Explanation:

Based on the information provided within the question it can be said that Daniela's boss can be described as a transformational leader. This type of leadership style refers to leaders that work with their teams in order to identify and create a mental blueprint for change, as well as guide and inspire them to pursue and achieve this change. Which is what Daniela is saying about her boss as she describes him as motivating and inspiring.

8 0
3 years ago
Identify the obstacles that are most relevant for a person trying to become a Geographer. Check all that apply.
Elden [556K]

Answer:

the answer 1235 credits to the guy that commented

Explanation:

5 0
3 years ago
Read 2 more answers
According to a 2002 article in USA Today that was discussed in chapter 5, a researcher has found that 11 of the 15 largest compa
lawyer [7]

Answer:

interlocking directorates

Explanation:

5 0
3 years ago
Each year a company selects a number of employees for a management training program. On average, 60 percent of those sent comple
Gnesinka [82]

Answer:

the probability that exactly 8 complete the program is 0.001025

Explanation:

given information:

60 % of those sent complete the program, p = 0.6

the total of people being sent, n = 27

exactly 8 complete the program, x = 8

to find the probability, we can use the following formula

P(X=x)=\left[\begin{array}{ccc}n\\x\\\end{array}\right] p^{x} (1-p)^{n-x}

P(X=8)=\left[\begin{array}{ccc}27\\8\\\end{array}\right] 0.6^{8} (1-0.6)^{27-8}

P(X=8)=\left[\begin{array}{ccc}27\\8\\\end{array}\right] 0.6^{8} (0.4)^{19}

                = 0.001025

3 0
3 years ago
Sun-hi, who operates a pan-asian restaurant in her apartment, is charged with criminal violations of the local health and buildi
vlada-n [284]
<span>The standard of proof to find a defendant who has been charged with a crime guilty is beyond a reasonable doubt. This means Sun-Hi can only be found guilty by jurors after all the evidence is given and all the the facts and information about the case has been given as well. The jurors must be convinced that Sun-Hi is guilty of the crime by using the evidence. This term creates a standard for all courts in the U.S. to follow, which ensures the court process is done right.</span>
6 0
3 years ago
Other questions:
  • A ______ is a firm that produces the entire market supply of a particular good or service
    11·1 answer
  • What are the period and vertical shift of the cosecant function below? period: ; vertical shift: 1 unit up period: ; vertical sh
    15·2 answers
  • Tanning Company analyzes its receivables to estimate bad debt expense. The accounts receivable balance is $302,000 and credit sa
    11·1 answer
  • A buyer is concerned about making changes to a historic property he wants to purchase. Who should the buyer consult?
    11·1 answer
  • When a good is nonexcludable: a. a free-rider problem will exist. b. consumers will pay the producers the market price for the g
    12·1 answer
  • Makers Corp. had additions to retained earnings for the year just ended of $415,000. The firm paid out $220,000 in cash dividend
    13·1 answer
  • "All of the following are reasons that implementing a new ERP may fail except
    5·1 answer
  • What are chemical contaminants?
    10·2 answers
  • Please answer both questions in complete sentences
    6·1 answer
  • The primary disadvantage of using ______ is that they may have a low response rate and thus a limited impact on sales.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!