Array labs Do each of these steps in the sequence listed. Do NOT try to combine 2 steps into the same loop. To make it easier for yourself, download and edit file array_lab1.c . 1. Declare three type double arrays, hours, rate, and gross, with the same size (constant NUM_EMP). 2. Write a loop to read the hours and rate for each employee into arrays hours and rate. Read the data for the first employee, then the data for the second employee, and so on. You only need to read the data one time. hours[i] is hours for employee i, rate[i] is rate for employee i. The input list for your scanf statement should be hours[i], rate[i]. 3. Write a loop to calculate the gross pay for each employee. The gross pay for the employee i, gross[i], should be hours[i] * rate[i]. 4. Write a loop to display each employee's hours, rate, and gross, starting with the first employee. Run this part of the program and see if it works. Due next week (week of April 12) before lab. 5. Write a function to perform step 4. Replace the loop in the main functon with a call to this function. 6. Write and call a function to calculate the average gross pay. This function should accumulate the sum of all gross pays in a local variable and then calculate and return the average gross pay. Print this value out in your main function. To do in lab next week (week of April 12): 7. Write and call a function to read the data into the array using a sentinel controlled loop. 8. Write and call a function to find the median gross pay. Use function select_sort (in the website file) to sort the array gross and then select the middle element as the median gross pay. Print the median gross pay in your main function. Extra credit (due before lab - week of April 19) 9. Modify the selection sort function so that it takes 3 array arguments. Base the sort on the values in the first array argument, but switch values in all three arrays. For example if the three array arguments are list, lista, and listb, use array list in the condition that compares array elements. If you need to exchange values in array list, make sure you also exchange the corresponding elements of arrays lista and listb. 10. Sort the arrays based on hourly rate and print all 3 arrays using your display function (from step 5) to ensure that the exchanges were performed correctly.