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
Get step-by-step solutions from verified subject matter experts
