Tuesday, November 8, 2011

Lab 10 - WeeklyHours

As one of the requirements to earn a B- or higher,
you must complete exercise 6.23 (6th ed, p207; 7th ed, p224) /
7.4 (8th ed, p252).

The class name must be WeeklyHours and it must execute as a command line application. This assignment requires that you use multi-dimensional arrays, specifically, you'll need an 8 x 7 array to hold the following data:

            Sun Mon Tue Wed Thu Fri Sat
Employee0    2   4   3   4   5   8   8
Employee1    7   3   4   3   3   4   4
Employee2    3   3   4   3   3   2   2
Employee3    9   3   4   7   3   4   1
Employee4    3   5   4   3   5   3   8
Employee5    3   4   4   6   3   4   4
Employee6    3   7   4   8   3   8   4
Employee7    6   3   5   9   2   7   9


the you will need an 8 x 2 matrix to hold the total hours worked by each employee and their employee numbers. You'll sort the second matrix by hours and "carry along" the employee numbers.

Sample Output
Here is a screenshot of my code running.

Weekly Hours output

This is the input file I used.

Refer to the deliverables post for comment formatting and required program identification information.

Due Date:
Monday, November 21st, 8:00am