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
. Suppose your firm buys $1,000 worth of supplies on credit with terms 3/15 n60. a. What does "3/15 n60" mean? b. If you pay the
leva [86]

Answer:

a.Please see explanation.

b.0%

c.25.14%

Explanation:

a. 3/15, n 60 means that if my firm pays within 15 days, it will get discount of 3%, otherwise it can pay within 60 days in full.

b. Since, the firm is paying within 14 days i.e. before the discount period of 15 days allowed by supplier,therefore the cost of trade credit in this case will be 0%.

c. annual percentage cost of  non-free trade credit based on 365 days can be calculated using the below formula:

Discount %/(100%-Discount %)*(365/(Actual credit days – Discount days))

In this case:

Discount%=3%

Actual credit days=60

Discount days=15

Cost of non- free credit=3%/(100%-3%)*(365/(60-15)

                                      =3%/97%*(365/45)

                                      =0.031*8.11

                                      =25.14%

8 0
4 years ago
Another major concern for firms in the sharing economy is uncertainty around the ability of these firms to continue to consider
ipn [44]

Answer:

Independent contractors.

Explanation:

An independent contractor is a person that provides goods or services under a contract with a company. Contractors do not work on a regular basis but as required by the employer. Contractors are subject to the law of agency and are regarded as agents representing the interests of the company.

There is uncertainty associated with persons that are independent contractors as they do not have a binding relationship with the employer. They can easily be disengaged.

6 0
4 years ago
All slings shall be manufactured under ASME B30.9 guidelines and must have an affixed permanent identification tag that includes
Vikentia [17]

Answer:

All of the above

Explanation:

All slings must have an affixed permanent identification tag that includes; The name or trademark of the manufacturer, WLL for the given type of hitch and configuration, and also the type of material used for the production of the sling. although there are many slings in the market but slings can be categorized into three recognized categories which are ; synthetic,chain and wire rope.

ASME B30 is charged with the responsibility for the Safety and Standard for Cableways, Cranes, Derricks, Hoists, Hooks, Jacks, and Slings. so they ensure that an affixed permanent identification tag is attached to products as well.

8 0
3 years ago
When a seller makes a profit from the resale of goods after a buyer breaches a contract, the seller: Select one: a. may keep the
vaieri [72.5K]

Answer:

The correct answer is the option A: may keep the profits.

Explanation:

To begin with, it all depends from the kind of contract that both parties have signed but the most situation that will happen after the resale of a goods that were given pack because of the breach of the contract from the buyers then the seller of the goods may keep the new profits because initially those profits will not be tied to the first contract that was breached and secondly the one that finished the contract by not accomplish one the rules was the buyer so that means that the sellers was not involved in the damage but he receive the damage from the buyer.

3 0
3 years ago
The following information on selected transactions for the year has been provided by Baker Company: Proceeds from issuing bonds
8_murik_8 [283]
I think it is D. 800000
3 0
3 years ago
Other questions:
  • Seller Blake's home just hosted a caravan for his agent's brokerage. What should he or his agent do to get feedback from the oth
    5·1 answer
  • The firm projected its proforma of financial statements using AFN method and finds that next year its AFN is $2 million. Its tot
    7·1 answer
  • Rate is the percent of interest charged for money loaned.<br> a. true<br> b. false
    10·2 answers
  • Molly liquidates her catering business. She is left with $20,000 after selling all the assets and settling the liabilities. In t
    6·1 answer
  • money owed to the hotel for services already performec is called (a)accounts payable(b)accounts receivable(c)unposted transactio
    9·1 answer
  • In its first year of operations Acme Corp. had income before tax of $400,000. Acme made income tax payments totaling $150,000 du
    6·1 answer
  • Presented below are a number of operational guidelines and practices that have developed over time. Select the assumption, princ
    15·1 answer
  • Question 1 (2 points)
    14·1 answer
  • If you were asked to choose a profession between an agricultural expert and a veterinary doctor which one will you choose give y
    8·1 answer
  • the common stock and debt of northern sludge are valued at $64 million and $36 million, respectively. investors currently requir
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!