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
Match each feature with the savings account type.
Marysya12 [62]

<u>1. Basic savings account  </u>

-allows ATM withdrawals  

-allows money transfer  

A savings account is an interest bearing deposit account held at a bank or other monetary foundation that gives an unassuming loan fee. The budgetary organizations may constrain the quantity of withdrawals you can make from your investment account every month. They additionally may charge expenses except if you keep up a specific normal month to month balance in the record. In most cases banks don't give checks investment accounts.  


<u>2. CD </u>

-offers a higher interest rate  

-has a maturity date


A certificate of deposit is a consent to store cash for a settled period with a bank that will pay you premium. You can contribute for three months, a half year, one year or five years. You will get a higher loan fee for the more drawn out time duty. You guarantee to leave all the cash, in addition to the enthusiasm, with the bank for the whole term.  

Basically, you are loaning the bank your cash as an end-result of premium. The CD is a promissory note that the bank issues you.

8 0
3 years ago
Read 2 more answers
A measure such as direct labor-hours or machine hours used to assign overhead costs to products and services is called a cost dr
MrRissso [65]

A measure such as direct labor-hours or machine hours used to assign overhead costs to products and services is called a cost driver or an allocation base.

An entity allocates its overhead costs on the basis of an allocation base. An allocation basis is a measurement, such as the amount of square footage occupied, kilowatt hours consumed, or machine hours used.

Cost accounting assigns overhead expenses using an allocation base. An allocation base can be a quantity, such as the amount of machine hours used, kWh spent, or occupied square footage.

Learn more about allocation base here

brainly.com/question/26475885

#SPJ4

3 0
2 years ago
Jones Company sells an average of 200 chairs per week, of which 30% are regular chairs and 70% are executive chairs. Regular cha
MissTica

Answer:

Contribution margin per unit: $42.9

Total contribution margin: $8,580

Explanation:

The contribution margin per unit is calculated by calculating the total contribution margin, which is basically the total sales, minus the costs of production, in this cae we have that we sold:

60 regular chairs

140 executive charis

Now the total in sales is:

Regular sales: $6,000

Executive chairs: $23,800

The variable cost of each is:

Regular chairs: $3720

Executive chairs: $17,500

We add up the sales and withdraw from it the total variable cost:

29,800-21,220=8,850

The total contribution margin is equal to $8850.

And the contribution margin per unit is given by dividing the total contribution margin by the number of units sold:

8850/200=  42.9

So the contribution margin per unit is 42.9 dollars.

7 0
3 years ago
ill, a manager in healthcare, is leveraging marketing strategies and tactics that will alter or create behaviors that have a pos
Veseljchak [2.6K]

Answer:

The correct answer is the option A: social marketing.  

Explanation:

To begin with, the concept called <em>''social marketing''</em>, in the world of business, refers to the process of implementing the marketing mix strategies to the organization with the purpose of focusing and caring about the good of the community as a whole. Moreover, it also benefits the company due to the fact that it shows a great corporate social responsibility. Furthermore, it aims to influence behaviors that benefit individuals and societies for the greater social good.

7 0
3 years ago
Use the information for Geiberger Corporation from BE21.12, except assume the collectibility of the rentals is not probable. Pre
Vikentia [17]

Answer:

Date                Account title                                      Debit                Credit

12/31/2019      Lease Receivable                           $175,934

                      Cost of Goods sold                         $120,000

                      Sales Revenue                                                        $175,934

                      Inventory                                                                  $120,000

Date                Account title                                      Debit                Credit

12/31/2019      Cash                                                 $40,800

                       Deposit Liability                                                        $40,800

The rental amount is constant and is made on the first day of the lease period so this is an annuity due.

As the collectability is probable, you need to find the present value of this lease:

= 40,800 * Present value of annuity due factor, 5 year, 8%

= 40,800 * 4.3121

= $175,933.68

= $175,934

7 0
3 years ago
Other questions:
  • Hofstede studied how culture influences consumer behavior. When a Japanese company decides that it will be willing to lose money
    11·1 answer
  • A carpenter was nailing a strap onto a residential single-story home construction project using a nail gun with a 16d nail to af
    15·1 answer
  • Matt plans to start his own business once he graduates from college. He plans to save $1,400 every six months for the next five
    8·1 answer
  • The following section is taken from Ivanhoe's balance sheet at December 31, 2021. Current liabilities Interest payable $ 47,500
    15·1 answer
  • In the short​ run, a monopolistically competitive firm will A. select the rate of output where price equals marginal cost. B. ma
    15·1 answer
  • A master plan is devised for
    12·1 answer
  • Mary visits her local shopping mall to purchase some much needed additions to her wardrobe. In selecting the items she wants to
    14·1 answer
  • Dan, and Mike are brothers. They plan to begin savings plans when each is exactly 25. Each brother plans to save $6,000 per year
    13·1 answer
  • Define the term Agriculture​
    8·2 answers
  • an employee is found to have grossly mistreated a client, which the employee has never done before. what consequence should be a
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!