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
Lyle founded a salsa manufacturing plant in his hometown of El Paso, Texas. Sales have been good, and demand for his products ha
Bumek [7]

Answer:

broker

Explanation:

Based on the information provided about Tim it seems that Tim's description shows that he is most likely a broker. This term refers to an individual that arranges specific transactions, usually between a buyer and a seller. Which in this situation it seems that he has brokered a lot of deals with people in the food industry which is why he has a lot of connections in this market and is able to help Lyle find buyers for his salsa.

6 0
4 years ago
Companies Heidee and Leaudy are virtually identical in that they are both profitable, and they have the same total assets (TA),
Gemiola [76]

Answer:

Correct Answer:

e. Company Heidee has a higher ROE than Company Leaudy.

Explanation:

Return on Equity, (ROE) is a ratio that provides investors with insight into how efficiently a company and more specifically, its management team is handling the money that shareholders have contributed to it. That is, it measures the profitability of a corporation in relation to stockholders' equity.

<em>Company Heidee has the higher debt ratio shows that the ROE is very high. This shows that the investors money in Company Heidee is well managed in the business.</em>

3 0
3 years ago
Timmy and Tommy are two casino owners. During their opening day celebration theyeach decide to run a special called the infinite
Dmitrij [34]

Find the given attachment for complete solution

6 0
3 years ago
A company’s capital structure decisions address the ways a firm’s assets are financed (using debt, preferred stock, and common e
MArishka [77]

Answer:

Option D (The optimal........capital) would be the right choice.

Explanation:

  • The optimal composition of capital would be the one with the lowest average capital structure.
  • Such alternatives are meaningless since the optimal capital structure is not reflected by them. Maximizing earnings growth, interest burdens, or equity burdens would not enhance the worth including its shareholder.
7 0
4 years ago
​________ occurs when economic benefits are distributed fairly. A. Equity B. Allocative efficiency C. Equality D. Productive eff
dlinn [17]

Answer: (A) Equity

Explanation:

  The equity is the term which refers to the concept of fairness in the economics concept as they providing the various types of economic benefits regarding the taxation and also the welfare of the economics.

The equity is basically relating to the fairness in terms of opportunity, various types of services and income and that are distributed between the various types of groups in the society.

 In an organization, the equity is one of the type of investor that share all the investing shares of the company and then it distributed fairy.

 Therefore, Option (A) is correct answer.  

3 0
3 years ago
Other questions:
  • "​A complete supply chain dedicated to the reverse flow of products and materials for the purpose of​ returns, repair,​ remanufa
    11·1 answer
  • What is the incidence of a tax?
    8·1 answer
  • Techniques for building employee empowerment include__________.A) building communication networks that include employeesB) devel
    7·1 answer
  • Selma Inc. is comparing several alternative capital budgeting projects as shown below:ProjectsA B CInitial investment $80,000 $1
    5·1 answer
  • Little Company provides its employees with varying amounts of vacation per year, depending on the length of employment. The esti
    9·1 answer
  • Iconix Brand Group owns and markets various brands and trademarks, including Joe Boxer, London Fog, Ocean Pacific, Ecko Unltd.,
    6·1 answer
  • What is a good and easy 1 credit class to take on FLVS?
    14·2 answers
  • Identify whether each of the following examples belongs in M1 or M2. If an example belongs in both, be sure to check both boxes.
    5·1 answer
  • Which sentence indicates that Roger's company, Fine Jewelry, follows a subscription business model? Roger's company, Fine Jewelr
    8·1 answer
  • Ling Li of Li​ Windows, Inc. is considering making a change in the material the firm uses for panes in its residential window li
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!