please please please help me this is my last program i have to write and i am having difficulty, this could mean a pass or fail. Thank you for your patience and help.

I need a very simple code that asks the user,
#input the minutes that are allowed
how many minutes are allowed:
#enter the mnutes between 200 and 800
how many minutes are allowed
#if it is over 800 or below 200 then it will re-ask the question
#if the user enters a negative number then it displays
please enter minutes used of at least 0
#display how many minutes the user was over
you were over your minutes by:
#then it displays a monthly use report
minutes allowed:
minutes used were:
minutes over were:
#then the total is 74.99 for a normal rate then .20 for each minute over
total due is: $
#finally ask the user if they want to end the program
#must be case sensative
Do you want to end program?(enter no or yes):
please enter a yes or no

here is an example of what it should look like:

How many minutes are allowed: 1000
Please enter minutes between 200 and 800
How many minutes are allowed: 801
Please enter minutes between 200 and 800
How many minutes are allowed: 350
How many minutes were used: -10
Please enter minutes used of at least 0
How many minutes were used: 400

You were over your minutes by 50

---------------MONTHLY USE REPORT------------------

Minutes allowed were 350
Minutes used were 400
Minutes over were 50
Total due is $ 84.99

Do you want to end program? (Enter no or yes): NO
Please enter a yes or no
Do you want to end program? (Enter no or yes): 9
Please enter a yes or no
Do you want to end program? (Enter no or yes): no

this is what i have so far
def main():
mins=mins()
used=used()
calctotal (used, mins)
def mins():
mins = input("how many minutes are allowed)
if mins <200:
print "Please enter minutes between 200 and 800"
if mins >800:
print "Please enter minutes between 200 and 800"
return mins
def used():
used = input("how many minutes were used")
if used < 0:
print "enter minutes used of at least 0"
return used
def calctotal(used,mins):

def main():
mins=mins()
used=used()
calctotal (used, mins)
def mins():
mins = input("how many minutes are allowed)
if mins <200:
print "Please enter minutes between 200 and 800"
if mins >800:
print "Please enter minutes between 200 and 800"
return mins
def used():
used = input("how many minutes were used")
if used < 0:
print "enter minutes used of at least 0"
return used
def calctotal(used,mins):

This article has been dead for over six months. Start a new discussion instead.