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
Boats R Us requires $800,000 in financing over the next 2 years. The firm can borrow the funds for 2 years at 12% interest per y
a_sh-v [17]

Answer: Short term is less costly

Explanation:

Total interest cost under long term financing = 800,000 × 12% × 2

= 800000 × 0.12 × 2

= $192,000

Total interest cost under short term financing = (800,000 × 7% ×1)+ (800,000 × 13.95% × 1) =

= (800000×0.07×1) + (800,000×0.139×1)

= $167,600

Based on the above solution, Short term financing is less costly.

4 0
3 years ago
sarah Jones wants to deposit $2,000 per year into an account earning 4 percent for the next 3 years, so she can purchase a used
andre [41]

Answer:

Compounding formula would be used here which is as under:

Future Value = Present value * (1+r)^n

FV = (PV is $2000) *  ( 1 + 4%)^ 3 number of years

Remember that r is the return that is 4% that Sarah Jones will receive.

So

FV = $2250

So this is the amount that she will receive after three years. I would recommend her to invest in ordinary shares (take higher risk for higher return) so that she is able to buy a better car.

5 0
3 years ago
Suppose that Taggart Transcontinental currently has no debt and has an equity cost of capital of 10%. Taggart is considering bor
labwork [276]

Answer:

Option (D) is correct.

Explanation:

We have to use MM proposition that cost of equity will change itself in such a manner so that it can take care of its debt.

Cost of equity:

= WACC of all equity firm + (WACC of all equity - Cost of debt ) × (Debt -to-equity ratio)

At the beginning, when there was no debt,

WACC = cost of equity = 10%

Levered cost of equity:

= 10% + ( 10% - 6%) × 0.2

= 10.8%

Therefore, Taggart's levered cost of equity would be closest to 11%.

8 0
3 years ago
Unfortunately, Diana doesn't have enough money in her account right now. She needs to make additional contributions at the end o
Kobotan [32]

Answer: $1,203.49

Explanation:

The equal contributions will be an annuity. The $3,500 already there will also grow at 6% for 3 years. Expression is;

8,000 = ( 3,500 * ( 1 + 6%)^3) + Contribution * Future value interest factor of annuity, 3 years, 6%

8,000 = 4,168.56 + Contribution * 3.1836

Contribution = (8,000 - 4,168.56) / 3.1836

Contribution = $1,203.49

6 0
2 years ago
How do you free market and planned economies differ in the allocation of factors of production
SSSSS [86.1K]

Answer:

sorr ia  am blind

Explanation:

hdnb smcjrnjnjrn

4 0
3 years ago
Other questions:
  • A company's product sells at $12 per unit and has a $5 per unit variable cost. The company's total fixed costs are $98,000. The
    7·1 answer
  • Alfred, a software programmer at Gamma Inc., develops a program that spreads Trojan viruses to the organization’s network. When
    6·1 answer
  • When preparing the statement of cash flows by the indirect method, if current liabilities increase the difference is
    14·2 answers
  • Oriole Company had $234,200 of net income in 2019 when the selling price per unit was $151, the variable costs per unit were $91
    9·1 answer
  • Bond valuationThe process of bond valuation is based on the fundamental concept that the current price of a security can be dete
    11·1 answer
  • A withholding allowance is a _____.
    11·1 answer
  • Derrick delivers messages on his bike all over the busy, hilly streets of downtown san francisco. he is engaging in which type o
    14·1 answer
  • Find an online news article related to tort law and write a 3 to 5 sentence response tying the article to at least one key conce
    10·1 answer
  • Bettina Amman is a sales consultant. She travels all over the country selling her company’s products. Her total monthly expenses
    12·1 answer
  • Which of the following are examples of demonstrating professional behavior in the workplace? Check all of the boxes that apply.
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!