Can someone please make this work.. Please?…
Question Answered step-by-step Can someone please make this work.. Please?… Can someone please make this work.. Please? # SuperMarket.py – This program creates a report that lists weekly hours worked # by employees of a supermarket. The report lists total hours for # each day of one week. # Input: Interactive# Output: Report. # Declare variables.HEAD1 = “WEEKLY HOURS WORKED”DAY_FOOTER = “Day Total “SENTINEL = “done” # Named constant for sentinel valuehoursWorked = 0 # Current record hourshoursTotal = 0 # Hours total for a dayprevDay = “” # Previous day of weeknotDone = True # loop control dayTotals=[]print (“nn”)print(“t”+HEAD1)print(“nn”) dayOfWeek= input(“Enter day of Week or done to quit:”)if dayOfWeek==SENTINEL: notDone=Falseelse: hoursWorked=input(“Enter hours worked:”) prevDay=dayOfWeekwhile notDone==True: found=0 for i, day in enumerate(dayTotals): if day[0]==dayOfWeek: found=1 dayTotals[i][1]+=int(hoursWorked) break if found==0: dayTotals.append([dayOfWeek, int(hoursWorked)]) dayOfWeek=input(“Enter day of weekor done to quit:”) if dayOfWeek==SENTINEL: notDone=False else: hoursWorked=input(“Enter hours Worked:”) prevDay=dayOfWeek for day in dayTotals: hoursTotal=day[1] print(“t”+DAY_FOOTER+str(hoursTotal)) Computer Science Engineering & Technology Python Programming CIT 1113 Share QuestionEmailCopy link Comments (0)


