Question: Program #1 (17 points): Design and implement a Java program (name it week lyHours) to compute the total weekly hours for 3 employees. A 2D-Array

 Program #1 (17 points): Design and implement a Java program (name

Program #1 (17 points): Design and implement a Java program (name it week lyHours) to compute the total weekly hours for 3 employees. A 2D-Array of size 3x7 is used to store employers' daily hours. Each row represents one employee and each column represent one day of the week such that column 0 designated Monday, column 1 designates Tuesday, etc. The main method populates the array with random numbers and 10 and then prints out the array in rows and columns as shown below. Then the main method calls another method (name it addHours) that takes the 2D-Array as a parameter and displays the total weekly hours for each employee as shown below. Design the main method such that it allows the user to re-run the program with different values (as in previous assignments, using a sentinel loop). Document your code, and organize and space the outputs properly using escape characters as shown in the following sample outputs Mon Tue Wed Thu Fri Sat Sun Employeel 3 296 5 7 Employee2 7685 545 Employee3 25 8 7 Employee# Weekly Hours 37 40 26 Mon Tue Wed Thu Fri Sat Sun Employee 0 2 7 203 8 Employee2 5 61 5 42 Employee3 526 8 Employe Meekly Hours 32 24

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!