You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print "%s worked %d hours this week at %d dollars per hour. The total earned is %d" %(self.name,self.hours,self.wage,(self.hours * self.wage))
elif (self.hours > 40):
overtime_hours = self.hours - 40
print "%s worked %d hours this week. %d of those hours are at an overtime rate. The total earned is %d." %(self.name,self.hours,overtime_hours,((40 * self.wage) + (overtime_hours * self.overtimeWage)))