Python Program 2 Re Work Program 5 Weeklyhours Previous Assignment 1 Program Prints Day Em Q37103677

IN PYTHON ONLY !! Program 2: Re-workprogram #5 (WeeklyHours) from the previous assignment such that

1. The program prints out the day an employee worked mosthours.

2. The program outputs are displayed in ascending order (stored)by Weekly Hours. Notice that we modifying method addHours()todisplay the outputs sorted by total weekly hours for each employeeas shown below.

Sample run 1:

Employees Data:

           MonTue Wed Thu Fri Sat Sun

Employee1   5    3   2    9    6   5    7

Employee2   7    6  8    5   5    4    5

Employee3   1    2   2    1    5   8    7

Employee1 worked most hours on Thursday

Employee2 worked most hours on Wednesday

Employee3 worked most hours on Saturday

Employee# Weekly Hours

—————————-

  3           26

  1           37

  2           40

Sample run 2:

Employees Data:

           MonTue Wed

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.