[Solved]Following Program Pseudocode Source Code Also Python Indentions Copy Paste Properly Also M Q37172349
For the following program can you do the pseudocode and thesource code? and also do it in Python with indentions sothat I can copy and paste it properly. also make it where you caninput different arrays and show them when you print out theresult.
Also I got some advice on how to do it and it involves alinear search and not a binary search.
Program 2: Re-work program #5 (WeeklyHours)from the previous assignment such that
- The program prints out the day an employee worked mosthours.
- 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 Thu Fri Sat Sun
Employee1 10 2 7 2 0 3 8
Employee2 5 6 1 5 1 4 2
Employee3 1 5 2 6 4 8 7
Employee1 worked most hours on Monday
Employee2 worked most hours on Tuesday
Employee3 worked most hours on Saturday
Employee# Weekly Hours
—————————-
2 24
1 32
3 33
Program 5: Design (pseudocode) and implement(source code) a program (name it WeeklyHours) to compute the totalweekly hours for 3 employees. The program main method defines atwo-dimensional array of size 3×7 to store employers’ daily hoursfor the week. Each row represents one employee and each columnrepresent one day of the week such that column 0 designates Monday,column 1 designates Tuesday, etc. The program main method populatesthe array with random numbers between 0 and 10 and then prints outthe array in rows and columns as shown below. The main method thencalls method addHours() that takes a two-dimensional array as aparameter and displays the total weekly hours for each employee asshown below. Document your code and properly label the outputs asshown 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
Employee# Weekly Hours
—————————-
1 37
2 40
3 26
Sample run 2:
Employees Data:
MonTue Wed Thu Fri Sat Sun
Employee1 10 2 7 2 0 3 8
Employee2 5 6 1 5 1 4 2
Employee3 1 5 2 6 4 8 7
Employee# Weekly Hours
—————————-
1 32
2 24
3 33
Expert Answer
Answer to For the following program can you do the pseudocode and the source code? and also do it in Python with indentions so tha… . . .
OR

