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
ransfers real estate worth $180,000 (basis of $40,000) andservices (worth $20,000) rendered in organizing the corporation. Each
MrRissso [65]

Answer:

Emily has a basis of $60,000 in the shares of Red Corporation.

Explanation:

Emily's basis for Red Corporation's stock = real estate ($40,000)  + service ($20,000) = $60,000

Sarah's basis for Red Corporation's stock = computers ($80,000) = $80,000

Even though both Emily and Sarah received 600 shares each, the basis for her tax calculations are different.

3 0
3 years ago
What are the requirements for something to be used as money?
Anastasy [175]
For it to have international value
7 0
3 years ago
The​ short-run aggregate supply curve slopes upward because of all of the following reasons except
ololo11 [35]

Answer:

B) in the short run, an unexpected change in the price of an important resource can change the cost to firms.

Explanation:

The short run aggregate supply (SRAS) curve is upward sloping because as the price of goods and services increases, the quantity supplied will increase. In the short run, wages are more sticky than prices, and businesses can adjust prices more rapidly than employees can get a raise. This will result in businesses increasing their profit margins as the general level of prices increases, therefore the SRAS curve will be upward sloping.

An unexpected change in the price of a key input will shift the entire SRAS curve either to the right (price of key input decreases) or to the left (price of key input increases).

3 0
3 years ago
Read 2 more answers
The reason fast food restaurants often are found in close proximity to each other is a. they enjoy competition b. location clust
olganol [36]

Answer:

b. location clustering near high traffic flows

Explanation:

Proximity to customers is a major consideration when deciding on a business location.  A business situated in areas with many potential customers has a high probability of succeeding. Restaurants are usually strategically situated in places with heavy customer flow.  

Restaurants may be established near offices, in market places, near public transport terminus, or other location convenient to customers.  With time, customers tend to associate that particular building, area, or street with restaurants. As the area becomes synonymous with restaurants, more customers will visit it, leading to more restaurants to open in that locality.

3 0
3 years ago
Based on the following information: Rate of Return If State Occurs State of Probability of Economy State of Economy Stock A Stoc
Sonja [21]

The expected return for stock A and B is 8.55% and 15.11% respectively.

<h3>What is the Expected return?</h3>

= (Probability of Recession × Return during recession) + (Probability of normal × Return during normal) + (Probability of boom × Return during boom)

Expected return for stock A:

= (0.20 * .05) + (0.57 * 0.08) + (0.23 * 0.13)

= 0.0855

= 8.55%

Expected return for stock B:

= (0.20 * 0.20) + (0.57 * 0.09) + (0.23 * 0.26)

= 0.1511

= 15.11%

Therefore, the expected return for stock A and B is 8.55% and 15.11% respectively.

Read more about Expected return

<em>brainly.com/question/25821437</em>

#SPJ1

3 0
2 years ago
Other questions:
  • If the reserve ratio is 10 percent, banks do not hold excess reserves, and people hold only deposits and no currency, when the f
    8·1 answer
  • 1. ________ dictate the terms and conditions state governments would have to meet in order to qualify for financial assistance i
    13·1 answer
  • An environmentally, friendly 2,800 square-foot green home (99% air tight) cost about 8% more to construct than a same-sized conv
    12·1 answer
  • For which purpose do producers use surveys and focus group?
    12·2 answers
  • Nichols Enterprises has an investment in 30,500 bonds of Elliott Electronics that Nichols accounts for as a security available-f
    5·1 answer
  • Project managers need to recognize the risk of __________, which is the piling up of small changes that by themselves are manage
    6·1 answer
  • Treasury bonds have what maturity date?
    5·2 answers
  • Pedee Company's inventory turnover in days is 80 days. Which of the following actions could help to improve that ratio? a.Increa
    9·1 answer
  • GiftBasket has successfully created a higher perceived value in the e-commerce industry, though it offers the same products at s
    14·1 answer
  • A company purchased a delivery van for $28,400 with a salvage value of $3,900 on september 1, year 1. it has an estimated useful
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!