Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

- 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

image text in transcribed

- 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Java: Radix sort using pseudocode.

Answered: 1 week ago