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
FIRST PERSON TO ANSWER PROPERLY GETS BRAINLIEST!!!
TiliK225 [7]
School district administrators
4 0
3 years ago
Read 2 more answers
An increase price caused no change in quantity demanded. Thus, demand must be
NNADVOKAT [17]

Answer:

Perfectly inelastic

Explanation:

A demand is perfectly inelastic when quantity demanded does not change in response to a change in price.

8 0
3 years ago
Sebastian, an employee, understands that he has great potential after taking a self-assessment test at his company. He decides t
tiny-mole [99]
<h2>Sebastian is employing <u>Goal setting</u> as a mechanism of career management.</h2>

Explanation:

<u>Goal setting:</u>

  • Serve as a base for "Human resource Planning"
  • It is proven that those employees who have goal setting will show good performance on their job.
  • This will directly or indirectly promote the organization
  • We can achieve organizational goals too
  • Goal setting techniques are used by successful people around the world
  • This might even be a favorite interview questions because the HR can understand how effective the employee would be for the organization.
5 0
3 years ago
Read 2 more answers
An insured purchased an insurance policy 5 years ago. last year, she received a dividend check from the insurance company that w
grandymaker [24]
Dang this question is pretty hard
7 0
3 years ago
Alice Durant works in the accounts payable department for the BC Group. She recently found out that Della Granger, another A/P c
lions [1.4K]

Answer:

Rationalization

Explanation:

The Fraud Triangle has three legs:

  1. opportunity: what circumstances were needed or allowed for the fraud to occur? Weak internal controls, inadequate accounting policies, etc.
  2. incentive or pressure: what made the employee think about committing fraud? Financial expectations, bonuses based of performance, etc.
  3. rationalization: How does the employee justify to himself/herself committing fraud? My boss or colleagues treat me wrong, everyone else does it, it is the only solution for my problem, etc.

5 0
3 years ago
Other questions:
  • Suppose that JVC is trying to decide how to price a new stereo system composed of a receiver, CD player, and speakers. The compa
    8·1 answer
  • Miguel, Inc. reported net income of $2.5 million in 2022. Depreciation for the year was $160,000, accounts receivable decreased
    11·1 answer
  • Suppose you borrow​ $1,000 at an interest rate of 12 percent. if the expected real interest rate is 5​ percent, then the rate of
    7·1 answer
  • An article in the Wall Street Journal refers to​ "debt-strapped emerging markets already struggling with​ current-account defici
    8·1 answer
  • Responsible drivers assess their personal fitness to drive before getting behind wheel Discuss 3 questions you should ask yourse
    7·1 answer
  • "Discuss the financial and operational implications for airlines as they try to offer the newest technology services?"
    6·1 answer
  • Assume that a U.S. firm considers investing in British one-year Treasury securities. The interest rate on these securities is 12
    14·1 answer
  • Sarah, a manager at Ackles Inc, plays pranks on her subordinates in an attempt to make the workplace livelier. She trusts her su
    10·2 answers
  • Internal information: A. attempts to describe something that is unknown. B. describes the environment surrounding the organizati
    10·1 answer
  • Pestel analysis for security industry in uk
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!