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
financial statements include assets listed ata.all of these choices are correct.b.their fair valuec.their historical costd.their
Novay_Z [31]

Financial statements include assets listed at historical costs. Hence, the assets are recorded at their historical cost.

<h3>What do you mean by historical costs?</h3>

The price paid when an asset was purchased is known as the historical cost. On a company's balance sheet, the majority of long-term assets are recorded at their historical cost.

One of the fundamental accounting principles outlined by generally accepted accounting principles is historical cost (GAAP). The use of historical cost is consistent with conservative accounting because it avoids overstating an asset's value.

Hence, Financial statements include assets listed at historical costs. Hence, the assets are recorded at their historical cost.

Learn more about historical costs:

brainly.com/question/27622433

#SPJ4

3 0
1 year ago
Assume that Leyia and Larry could be persuaded not to begin a family for another five years. What specific budgeting recommendat
xxMikexx [17]

Answer:

The budgeting recommendations will be cutting the expenses on feeding, groceries and every other expenses, in other to save over the next five years. This will prepare Leyia and Larry beforehand to begin a family and also, mitigate hosterity effects of their variable expenses financially for an anticipated $2,400 loss of income for 18 months as well as the expenses for the new baby.

Explanation:

Beginning a family can be a tough task for low income earners. Leyia and Larry will need to wait for five years and cut their expenses( Every expenses) over this waiting period of five years. By so doing, they will have saved enough money to carter for the expenses of new baby.

Also, a $2,400 loss of income, in 18 months is anticipated. Cutting of expenses over the period of five years will reduce the financial hardship effects on the family which Leyia and Larry will begin, after the stipulated five years.

7 0
3 years ago
During the 1990s, one of the dominant firms in the U.S. cigarette industry would raise prices once or twice a year by about 50 c
Veronika [31]

Answer:

This is an example of price leadership.

Explanation:

Price leadership is a type of practice where a firm, most likely a dominant one, sets the price and other firms follow it. It is commonly seen in an oligopoly market.  

In an oligopoly market, there are a few firms, these firms are interdependent. A price change by one firm affects its rivals.

Price leadership is of different types.

  • Barometric
  • Collusive
  • Dominant

So when a dominant firm changes its price, the followers have to follow it if we they want to retain their market share.

8 0
3 years ago
Bisa cari tau ini negara apa..<br>lha koq gua bisa nyasar tu gmn​
choli [55]
what language is this if i may ask
5 0
2 years ago
Older people who live in communities that provide amenities such as housekeeping, dining facilities, and transportation services
Neko [114]
Elders reside with those accommodations available to them usually live in a assisted living facility or a nursing home
8 0
3 years ago
Other questions:
  • Rs.4000 becomes Rs.8000 in 10 years .What is the rate of interest ?​
    8·1 answer
  • A partial adjusted trial balance of Piper Company at January 31, 2017, shows the following:
    10·1 answer
  • When several hurricanes hit Florida in 2004, a number of local governments imposed price controls that prevented sellers from ra
    11·2 answers
  • The four determinants in Porter's model of international competitive advantage include all of the following EXCEPT: Group of ans
    10·1 answer
  • Do you think it makes sense for a transnational organization to have more than one headquarters? What might be some advantages a
    14·1 answer
  • Proponents of rational expectations theory argued that, in the most extreme case, if policymakers are credibly committed to redu
    5·1 answer
  • The SRAS curve is upward rising because:
    13·1 answer
  • Candle Stix estimates that 2% of the $100,000 balance in accounts receivable is uncollectible. Prior to year-end adjusting entri
    6·1 answer
  • *ECONOMICS*
    15·1 answer
  • PLEASE HELP ME I AM STUCK
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!