Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started