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
To find the net worth of a company, liabilities are subtracted from assets true or false
beks73 [17]

Answer:

To find the net worth, subtract the liabilities from the assets

Explanation:

6 0
3 years ago
After a nonparty to the lawsuit allegedly told defendant that plaintiff was gay or bisexual, defendant relayed that information
Leto [7]

Answer:

Answer explained

Explanation:

The case is about the defamation claimed by plaintiff on the defendant on the basis of race remark of g a y or bisexual by third party information. This ultimately broken the relationship of two person.

I think that court should ultimately found that the accusations of homosexuality or bisexuality amounted to defamation per se because of the following reason:

  1. The Race Remark on the plaintiff by the defendant.
  2. It is a slander per se.
  3. This remark impute to the commission of the crime of sodomy.
  4. It is implying Unchastity that means Exposing Plaintiff to Public Hatred. This spoils the life of the plaintiff.
4 0
3 years ago
The inductive approach to writing a business argument Multiple Choice
kotykmax [81]

Answer:

The correct answer is 2. provides the supporting reasons before the primary message.

Explanation:

7 0
3 years ago
The Labour Relations Act provides that every employee has the right not to be unfairly dismissed. Discuss this statement (Refer
baherus [9]

The National Labor Relations Act ("NLRA"),

National labor relation act approved by Congress in 1935,made it plain that the United States' objective is to promote collective bargaining by upholding employees' complete freedom of organization. By giving workers in private-sector companies the fundamental right to demand better working conditions and choice of representation without fear of punishment, the NLRA safeguards workplace democracy. Section 1. Strikes and other forms of industrial conflict or unrest have the intention or necessary effect of impeding or obstructing commerce by (a) affecting the effectiveness, safety, or operation of the instruments of commerce; (b) occurring as a result of (a) the denial by some employers of the right of employees to organize and the refusal by some employers to accept the procedure of collective bargaining in the flow of commerce; (c) materially affecting, restricting, or controlling the flow of raw materials or manufactured or processed goods from or into the channels of commerce, or the prices of such materials or goods in commerce; or (d) causing a decline in employment and wages in a quantity that significantly affects or disrupts the market for goods flowing from or into the channels of commerce.

Learn more about National labor relation act hear :

brainly.com/question/28214843

#SPJ9

8 0
2 years ago
Pakistan’s GDP in 2010, using the official exchange rate on 1/1/2010, is equal to $300 billion USD ($300,000,000,000). When 2010
docker41 [41]

Answer:

Undervalued

Explanation:

The PPP exchange rate is the implicit exchange rate, so that everywhere, one dollar has the same purchasing power. In general, this exchange rate is different from the exchange rate on the market.

Because the same nominal GDP translates to a higher real GDP by using the PPP exchange rate, one Pakistan Rupee must be valued more in terms of U.S. dollars than in contexts of the market exchange rate under the PPP exchange rate. The Pakistan Rupee is therefore worth less than its true value in the economy, i.e., undervalued.

5 0
4 years ago
Other questions:
  • Johnson Company calculates its allowance for uncollectible accounts as 5% of its ending balance in gross accounts receivable. Th
    13·1 answer
  • You want to determine the upper control line for a p-chart for quality control purposes. You take several samples of a size of 1
    6·1 answer
  • Costs that can be eliminated in whole or in part if a particular business segment is discontinued are called:
    5·1 answer
  • Review 4: AIMS Science Practice
    7·1 answer
  • If a student identifies herself as having strong skills and an interest in working on her own, which of the following might be a
    11·1 answer
  • Friendly’s Quick Loans, Inc., offers you “seven for nine or I knock on your door.” This means you get $7.00 today and repay $9.0
    10·1 answer
  • Which of the following is a characteristic protected by anti-discrimination laws?
    10·2 answers
  • How do u become happy
    14·1 answer
  • HELP!!! i’ll give you brainliest!
    11·1 answer
  • Carla vista co. received proceeds of 5585020 on a 10-year, 8% bonds issued on January 1, 2019. The bonds had a face value of 530
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!