Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose your cell phone carrier charges you a monthly fee of $30.00 for up to 300 minutes and $0.45 for each additional minute after the
Suppose your cell phone carrier charges you a monthly fee of $30.00 for up to 300 minutes and $0.45 for each additional minute after the first 300. Assuming you used your phone for x minutes with x > 300, the total monthly fee would be?
If you used your phone for <= 300 minutes then the charge is $30.00 Assume the user enters a positive value for the number of minutes
30 + (x -300) * .45 correct answer
Use the following template
A = 300 #CONSTANT fee for <= 300 minutes
m = int(input("Enter the number of minutes ")) c = 0 # initialize cost variable if (m>300): # minutes>300 # calculations here to compute the solution above # use the correct answer provided print(" the cost for ", m, " minutes is ", c ) else: # here m is <= 300# s <= 0 print(" the cost for ", m, minutes is , A )
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