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 and operates two restaurants. The revenue of the first restaurant at time t is f(t) dollars, and the revenue of the
kati45 [8]

Answer:

F(t)=f(t)+g(t) represents the TOTAL revenue at time t.

Explanation:

f(t) is the revenue at the time t at the first restaurant.

g(t) is the revenue at the time t at the second restaurant.

If we want to know the TOTAL revenue at the time t, we would sum these quantities:

TOTAL revenue = f(t)+g(t)

So F(t)=f(t)+g(t) represents the TOTAL revenue at time t.

7 0
3 years ago
The consumer sector is the largest part of the macroeconomy. Please select the best answer from the choices provided T F
cricket20 [7]
The answer is true bc businesses depend on consumers buying their product
5 0
3 years ago
Imagine you are the manager of the housekeeping department of the local hospital. Recently, you have noticed that your worker’s
Vaselesa [24]
 I would simply make the job more enjoyable. Add cheep perks make it fun. 
3 0
3 years ago
Read 2 more answers
The theory of comparative advantage states that:
Stella [2.4K]

Answer:

Productivity rises more quickly when countries produce goods and services for which they have a natural talent.

Explanation:

This is the best option with the theory of comparative advantage states countries produce goods for which they have a lower opportunity cost. Having resources and talents lower the opportunities cost. When countries do this, it increases economic welfare for all.

6 0
3 years ago
Which one of the following categories provides a common approach and frame of reference for conducting project management activi
Flauer [41]

Answer:

The correct answer is the option A: Business alignment.

Explanation:

To begin with, the concept known as <em>"Business Alignment"</em> refers to the process by which the managers of a company tend to use the information technology in order to obtain certain business objectives inside the organization that are the goals that they looked for. In addition, this process sometimes tend to focus more on the financial improvement of the company as well as its marketplace competitiveness. Therefore that this type of term gives a good approach and frame of reference for the managers who are looking for conduct project management activities inside the company.

4 0
3 years ago
Other questions:
  • Chuck Diesel Burger is a food truck in Houston, Texas. Imagine that Chuck Diesel Burger’s minimum average total cost (ATC) is $3
    14·1 answer
  • The income statement will present
    14·1 answer
  • Foster Industries manufactures 20,000 components per year. The manufacturing cost of the components was determined as follows: D
    5·1 answer
  • When the price of hot dogs is $1.50 each, 500 hot dogs are sold every day. After the price falls to $1.35 each, 510 hot dogs are
    11·1 answer
  • A marketing consultant wants to estimate the proportion of all shoppers at a certain mall who make at least one purchase. he sta
    9·1 answer
  • 12/31/06Accounts receivable $525,000Allowance (45,000)Cash realizable value 480,000During 2007 sales on account were $145,000 an
    14·1 answer
  • Indicate which of the following statements is true. a. Public transportation may be covered by an employer-provided spending acc
    6·1 answer
  • Paul consumes only books and DVDs. At his current consumption​ bundle, his marginal utility from DVDs is 21 and from books is 4
    15·1 answer
  • If one of your other classes has a writing assignment, this would be the perfect opportunity to apply this lesson activity towar
    14·1 answer
  • Smokecity, Inc., manufactures barbeque smokers. Based on past experience, smoke city has found that it’s total annual overhead c
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!