Westonci.ca makes finding answers easy, with a community of experts ready to provide you with the information you seek. Get quick and reliable solutions to your questions from a community of experienced professionals on our platform. Connect with a community of professionals ready to help you find accurate solutions to your questions quickly and efficiently.

Python
Write a function that calculates a cell phone bill
First screenshot of rules and such
Second screenshot is example of outcome


Python Write A Function That Calculates A Cell Phone Bill First Screenshot Of Rules And Such Second Screenshot Is Example Of Outcome class=
Python Write A Function That Calculates A Cell Phone Bill First Screenshot Of Rules And Such Second Screenshot Is Example Of Outcome class=

Sagot :

print("welcome to the bill calculator")

minutes = float(input("number of minutes you used: "))

data = float(input("the amount of data you used in GB: "))

print("your basic plan costs $39.99 per month")

mcost = (minutes - 450) * .45

print("you will be charged " +  str(mcost) + " for the minutes you used")

print("the monthly data fee is $30.00")

dcost = (data - 3) * 10

print("you will be charged " + str(dcost) + " for the extra data you used")

total = mcost + dcost + 69.99

print("your total bill is " + str(total))

the 20 value your teacher gave may be incorrect, bc 4.2-3*10 = 12 not 20, making the total 109.89

We appreciate your time on our site. Don't hesitate to return whenever you have more questions or need further clarification. Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. Get the answers you need at Westonci.ca. Stay informed with our latest expert advice.