Write a C program using multiple functions that will calculate the gross pay for a set of employees.See the last lecture note this week for a template you can use if you feel you need something to start with. However, feel free to implement this assignment that way you see fit, the template is just there if you need it. There are multiple ways to effectively implement this assignment.The program determines the overtime hours (anything over 40 hours), the gross pay and then outputs a table in the following format shown below. Column alignment, leading zeros in Clock number, and zero suppression in float fields is important. Use 1.5 as the overtime pay factor.————————————————————————–
Clock# Wage Hours OT Gross
098401 10.60 51.0 11.0 598.90
526488 9.75 42.5 2.5 426.56
765349 10.50 37.0 0.0 388.50
034645 12.25 45.0 5.0 581.88
127615 8.35 0.0 0.0 0.00You should implement this program using one array for clock number, one array for wage rate, etc.Read in the hours worked for each employee.
Limit your use of global variables – Learn how to pass parameters!
You should have at least 3-4 functions designed and implemented in addition to the main function.
Try to limit how much code you have in your main function, call other functions to do the work that is needed.
Remember to use constants and all the other things we have covered up to this assignment.
Re-read the homework coding standards … make sure that each local variable is commented in EACH function, and EACH function has a descriptive function comment header. Note that a function comment header is not needed for your main function.
Feel free to initialize the clock and wage values into your arrays with the test data above.
DO NOT pre-fill the hours, overtime, and gross pay arrays with test data values. It is OK however to initialize them to zero if you wish, but it is not needed since these values get overwritten via input prompts or calculations.

New Download