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
Which statement best explains how manufacturers contributed to the economic slow down that lead to the Great Depression
Alex_Xolod [135]
They were overproducing goods
7 0
3 years ago
Identify which basic principle of accounting is best described in each item below.
adelina 88 [10]

Answer:

The Matching Principle

Explanation:

The Matching Principle of accounting holds that revenues should be matched with expenses. Hence the name.

This is to say, that revenues should only be recognized when the associated expenses with those revenues have been spent.

For example, in numeral a), we can see that Norfolk Southern Corporation recieved cash in advance, but it only recognized revenue once it had performed the services associated with that cash collection.

4 0
3 years ago
g explain which types of organizations (if any) will traditional HRM fit most and which types of organizations (if any) will str
valentinak56 [21]

Answer:

HR Function refers to areas such as recruitment, selection, recruitment and retention, performance evaluation, promotional preparing, and reimbursement managerial staff.

Explanation:

  • Throughout traditional HRM every one of these operations has been associated with capacity building and therefore are constrained even within the HR manager. Those other operations are not focused on an organization’s strategy.
  • Traditional HRM is therefore not focused on effective organizational culture, while strategy Implementation focuses on its philosophy.
4 0
3 years ago
The customer requires ICC(A). Considering that the insurance policies of China’s domestic insurance companies are all based on C
svetlana [45]

The Chinese insurance market has grown at a furious pace in recent years and will surpass that of the United States by 2029.

A strong economy, government investment, consumer awareness, and technology are fuelling China's growth in the insurance sector.

China's biggest insurance companies are among the largest companies in the world.

8 0
3 years ago
Yosemite Bike Corp. manufactures mountain bikes and distributes them through retail outlets in California, Oregon, and Washingto
boyakko [2]

Answer:

See the explanation below.

Explanation:

Note: Find attached the summary table.

Total annual dividend payable to cumulative preferred 2% stock = 25,000 * $80 * 2% = $40,000

For 20Y1

Dividend declared = $24,250

Total payable to cumulative preferred 2% stock = $24,250

Cumulative preferred stock per share = $24,250 / 25,000 = $0.97 per share

Total cumulative preferred carried forward = $40,000 - $24,250 = $15,750

Total dividend payable to common stock = $0

Common stock dividend per share = $0

For 20Y2

Dividend declared = $9,000

Total payable to cumulative preferred 2% stock = $9,000

Cumulative preferred stock per share = $9,000 / 25,000 = $0.36 per share

Total cumulative preferred carried forward = $40,000 - $9,000 + $15,750 = $46,750

Total dividend payable to common stock = $0

Common stock dividend per share = $0

For 20Y3

Dividend declared = $106,750

Total payable to cumulative preferred 2% stock = $40,000 + $46,750 = $86,750

Cumulative preferred stock per share = $86,750 / 25,000 = $3.47 per share

Total dividend payable to common stock = $106,750 - $86,750 = $20,000

Common stock dividend per share = $20,000 / 100,000 = $0.20 per share

For 20Y4

Dividend declared = $95,000

Total payable to cumulative preferred 2% stock = $40,000

Cumulative preferred stock per share = $40,000 / 25,000 = $1.60 per share

Total dividend payable to common stock = $95,000 - $40,000 = $55,000

Common stock dividend per share = $55,000 / 100,000 = $0.55 per share

For 20Y5

Dividend declared = $110,000

Total payable to cumulative preferred 2% stock = $40,000

Cumulative preferred stock per share = $40,000 / 25,000 = $1.60 per share

Total dividend payable to common stock = $110,000 - $40,000 = $70,000

Common stock dividend per share = $70,000 / 100,000 = $0.70 per share

For 20Y6

Dividend declared = $165,000

Total payable to cumulative preferred 2% stock = $40,000

Cumulative preferred stock per share = $40,000 / 25,000 = $1.60 per share

Total dividend payable to common stock = $165,000 - $40,000 = $125,000

Common stock dividend per share = $125,000 / 100,000 = $1.25 per share

Download xlsx
5 0
3 years ago
Other questions:
  • At January 1, 2019, Deer Corp. has beginning inventory of 2,000 surfboards. Deer estimates it will sell 10,000 units during the
    13·1 answer
  • If Vera buys 1/2 of of a kilogram of nuts,how much will she spend?
    12·1 answer
  • The Quarter Burger is a hamburger sold by the international fast-food chain Sammy's Burgers. It was given the name because it co
    14·1 answer
  • What are companies doing to respond effectively to increasing segmentation of the marketplace? Following a traditional sales mod
    11·1 answer
  • There are three key reasons for putting the customer into customer solutions in selling: (1) considerable time and effort is nec
    5·1 answer
  • Angie’s Bake Shop makes birthday chocolate chip cookies that cost $3 each. Angie expects that 12% of the cookies will crack and
    11·1 answer
  • Acme Enterprises began the new year owing its suppliers $3,000 for merchandise purchased last year. Acme then sold half of this
    9·1 answer
  • An imprest petty cash fund of​ $600 was established for minor disbursements. At the end of the​ month, the fund included petty c
    14·1 answer
  • Explain the difference between a depository institution and a non-depository institution.
    7·1 answer
  • Fiscal policy may end up being destabilizing to an economy because:___________
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!