Good evening,
I am having difficulties figuring how to get my calculations working. Basically, I want my hours to actually be what is typed in under each question, but they are all ones. I could use some help
def Employee():
global eName
global pRate
global hWork
def Low(hoursList):
hoursList.sort()
lowestPay = hoursList[0]
return lowestPay
def High(hoursList):
hoursList.sort()
highestPay=hoursList[len(hoursList)-1]
return highestPay
def Avg(hoursList):
total=0
for hour in hoursList:
total += hour
avgPay = total / len(hoursList)
return avgPay
raw_input("Hit ENTER to start Payroll Program.")
while True:
eName=raw_input("\nPlease enter the employees' first and last name. ")
hWork=int(raw_input("How many hours did they work this week? "))
if hWork <1 or hWork >60:
print "Employees' can't work less than 1 hour or more than 60. "
continue
pRate=int(raw_input("What is their hourly rate? "))
if pRate <6 or pRate >20:
print "Employees' can't make less than $6 or more than $20. "
continue
eName != "DONE"
eName=raw_input("Type DONE if you finished with all employees'. ")
if eName == "DONE":
break