Question: - Create a two-dimensional array that holds the workers' weekly working hours. Each row records an employee's seven-day work hours with seven columns. Randomly assign

 - Create a two-dimensional array that holds the workers' weekly working

- Create a two-dimensional array that holds the workers' weekly working hours. Each row records an employee's seven-day work hours with seven columns. Randomly assign working hours between 1 and 9 for 10 workers. int [] [] workHours = createWorkersArray(); - Write a method that displays the workers' weekly working hours as below. displayArray (workHours); - Calculate the average of the workers' weekly working hours for each workers. Create an array that holds the average of the workers' weekly working hours. double [] averageHours = calculateAvg (workHours); - Write a method that displays the workers' weekly average working time. displayAvg (averageHours); - Create an array that holds the salary of the workers. The salary for each worker is 2500 . However, for workers working more than 35 hours, add 100 lira per hour to the salary. double [] salary = createSalary (workHours) - Write a method that displays the workers' salary. displaysalary (salary)

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!