Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING PYTHON 2 An Internet service provider charges a base rate per megabyte (MB) transferred depending on market conditions. In addition to the base, transfers

USING PYTHON 2

An Internet service provider charges a base rate per megabyte (MB) transferred depending on market conditions. In addition to the base, transfers between 100 and 500 MB are charged an additional $0.05/MB plus 33% of the base. Data transfers between 500 MB and 1500 MB are charged 1.44 times the base plus $0.08/MB. Above 1500 MB the rate is simply twice the base. All data in a transfer is charged the same rate. For example, if 1600 MB are transfered, then the charge for all 1600 MB is twice the base. Develop the function 'bill_amount', which takes an amount of data transferred in megabytes and a base rate in dollars and computes the total charge.

def bill_amount(dataamount,baserte):

#do something

return totalcharge

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

Describe employee assistance programs.

Answered: 1 week ago