Section Involves Programming Tasks Described Small Company 4 Hourly Workers Wage Rate 10 P Q43786289
This section involves programming tasks, as described below In a small company we have 4 hourly workers. Their wage rate is $10. Their pay depends on how many hours they worked last week. We do provide overtime pay of 2 times of regular wage. Hours over 40 hours (not including 40) are considered overtime. Please write a program to calculate employees’ pay of last week. The program should process all the records. Lucy Mary Nancy Olie 40 hours 45 hours 25 hours 35 hours 1. (4 points) Declare and initialize needed variables and arrays 2 (8 points) User a loop for user to enter working hours. Please use the data provided in the table to test and generate results 3. (8 points) Calculate each worker’s pay of last week and output to screen in a table. Write a function called calEarn(hours) to carry out the calculation. The function has one parameter of hours worked and will return the amount of pay. 4. (8 points) Calculate average pay of last week. 5. (8 points) Find out the lowest pay of last week. Please show the worker’s name and pay. 6. (4 points) In your program, please practice good programming habit by including comments Put your name and today’s date as comments at the top of your program. Please output your name and today’s date on your HTML page. Please include your name and today’s date in your Word report Show transcribed image text This section involves programming tasks, as described below In a small company we have 4 hourly workers. Their wage rate is $10. Their pay depends on how many hours they worked last week. We do provide overtime pay of 2 times of regular wage. Hours over 40 hours (not including 40) are considered overtime. Please write a program to calculate employees’ pay of last week. The program should process all the records. Lucy Mary Nancy Olie 40 hours 45 hours 25 hours 35 hours1. (4 points) Declare and initialize needed variables and arrays 2 (8 points) User a loop for user to enter working hours. Please use the data provided in the table to test and generate results 3. (8 points) Calculate each worker’s pay of last week and output to screen in a table. Write a function called calEarn(hours) to carry out the calculation. The function has one parameter of hours worked and will return the amount of pay. 4. (8 points) Calculate average pay of last week. 5. (8 points) Find out the lowest pay of last week. Please show the worker’s name and pay. 6. (4 points) In your program, please practice good programming habit by including comments Put your name and today’s date as comments at the top of your program. Please output your name and today’s date on your HTML page. Please include your name and today’s date in your Word report
Expert Answer
Answer to This section involves programming tasks, as described below In a small company we have 4 hourly workers. Their wage rate…
OR