Question: 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

 This section involves programming tasks, as described below In a small

company we have 4 hourly workers. Their wage rate is $10. Their

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

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!