A company hired 10 temporary workers who are paid hourly and you are asked to take a one-dimensionalarray from the user that contains the last name of the employees, and a two-dimensional array that containsthe number of hours each employee worked in a week, and the hourly pay rate of each employee.You are asked to write a program that computes each employee’s weekly pay and the average salary ofall the workers. The program then outputs the weekly pay of each employee, the average weekly pay, andthe names of all the employees whose pay is greater than or equal tothe average pay. If the number of hours worked in a week is more than 40, then the pay rate for the hoursover 40 is 1.5 times the regular hourly rate. Use two arrays: a one-dimensional array to store the namesof all the employees, and a two-dimensional array of 10 rows and 2 columns to store the number of hoursan employee worked in a week, the hourly pay rate. Your program must contain the following functions:1. a function to take the data from the user into the arrays,2. a function to determine the weekly pay,3. a function to output the names of all the employees whose pay is greater than or equal to theaverage weekly pay,4. and a function to output each employee’s data.