The program will allow me to input the values, but their is no calculations and it doesn't print. I have moved the endProgram input all over and it just turns it into an infinite loop.
def main ():
endProgram = "no"
while endProgram == "no":
totalBottles = getBottles()
totalPayout = calcPayout(totalBottles)
printInfo = (totalBottles, totalPayout)
endProgram = raw_input("Do you want to end the program? Enter yes or no:")
def getBottles():
counter = 1
totalBottles = 0
todayBottles = 0
while counter <= 7:
todayBottles = input("Enter number of bottles for today:")
totalBottles = totalBottles + todayBottles
counter = counter + 1
return totalBottles
def calcPayout(totalBottles):
totalPayout = 0
totalPayout = totalBottles * .10
return totalPayout
def printInfo(totalBottles,totalPayout):
print "The total bottles collected is:",totalBottles
print "The total payout is $ :",totalPayout
main()somewhere? As stands, this code will exit without doing anything.