Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Lets Set our Variables Up...
- DOTW = {'Monday': 0, 'Tuesday': 0, 'Wednesday': 0, 'Thursday': 0, "Friday": 0, "Saturday": 0, "Sunday": 0}
- day = raw_input("what is today? \n >")
- def main(day):
- if day == "Monday":
- print "Today is %s, How many hours would you like to add today?" % (day)
- hours = int(raw_input())
- DOTW['Monday'] = DOTW['Monday'] + hours
- print "Cool your hours for %s are %d" %(day, DOTW['Monday'])
- want = raw_input("Do you want to add more time? y/n \n > ")
- overtime()
- leave(want)
- if day == "Tuesday":
- print "Ah, Today is %s, How many hours have you worked?" %(day)
- hours = int(raw_input())
- DOTW['Tuesday'] = DOTW['Tuesday'] + hours
- print "alright, yours hours for %s are %d" %(day, DOTW['Tuesday'])
- want = raw_input("Do you want to add more time? y/n \n > ")
- overtime()
- leave(want)
- if day == "Wednesday":
- print "Ah, Today is %s, How many hours have you worked?" %(day)
- hours = int(raw_input())
- DOTW['Wednesday'] = DOTW['Wednesday'] + hours
- print "Cool for %s I've got %d hours" %(day, DOTW['Wednesday'])
- want = raw_input("Do you want to add more time? y/n \n > ")
- overtime()
- leave(want)
- if day == "Thursday":
- print "Ah, Today is %s, How many hours have you worked?" %(day)
- hours = int(raw_input())
- DOTW['Thursday'] = DOTW['Thursday'] + hours
- print "Your hours for %s are %d" %(day, DOTW['Thursday'])
- want = raw_input("Do you want to add more time? y/n \n > ")
- overtime()
- leave(want)
- if day == "Friday":
- print "FINALLY IT'S FRIDAY!!! How many hours have you worked?"
- hours = int(raw_input())
- DOTW['Friday'] = DOTW['Firday'] + hours
- print "Cool. for %s I've got %d hours" %(day, DOTW['Friday'])
- want = raw_input("Do you want to add more time? y/n \n > ")
- overtime()
- leave(want)
- if day == "Saturday":
- print "Ah, Today is %s, How many hours have you worked?" %(day)
- hours = int(raw_input())
- DOTW['Saturday'] = DOTW['Saturday'] + hours
- print "alright, yours hours for %s are %d" %(day, DOTW['Saturday'])
- want = raw_input("Do you want to add more time? y/n \n > ")
- overtime()
- leave(want)
- if day =="Sunday":
- print "Ah, Today is %s, How many hours have you worked?" %(day)
- hours = int(raw_input())
- DOTW['Sunday'] = DOTW['Sunday'] + hours
- print "Cool your hours for %s are %d" %(day, DOTW['Monday'])
- want = raw_input("Do you want to add more time? y/n \n > ")
- overtime()
- leave(want)
- # Lets make this software do Thigns
- def leave(want):
- if want == "n":
- overtime()
- print "bye"
- exit()
- elif want == "y":
- day = raw_input("for What Day?")
- main(day)
- def overtime():
- hoursWorked = DOTW['Monday'] + DOTW['Tuesday'] + DOTW['Wednesday'] + DOTW['Thursday'] + DOTW['Friday'] + DOTW ['Saturday'] + DOTW['Sunday']
- if hoursWorked > 40:
- overtimeHours = hoursWorked - 40
- print "Woah there! you've worked %r hours! Have you cleared this with your manager??" % (hoursWorked, overtimeHours)
- if hoursWorked < 40:
- print "You've worked %r hours so far this week." % (hoursWorked)
- def PaycheckCalculator ():
- print "You've called the paycheck calculator portion of the app. Check eeeet."
- # Get Shit Started.
- main(day)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement