Question: help me with this c program Write a C program using multiple functions that will calculate the gross pay for a set of employees. See

help me with this c program
help me with this c program Write a C program using multiple
functions that will calculate the gross pay for a set of employees.

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 multigle 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. You should implement this program using one array for clock number, one array for wage rate, etc. - Continue to use-constants and bulid upon what you learned in previous assignments - Read in the hours worked for each employee. - DO NOT use global variables. - Leam how to pass parametersi One global variable you are welcome to use is for an optional flie pointer so you don't have to worry about passing it to functions. You do not have to use fie pointers for this assignment, but are weicome to if you wish. We will cover pointers and how to pass them more in detail later this semester. - You should have at least 3 -4 functions designed and implemented in addition to the main function. - Try to limir how much. code you have in your main function, call other functions to do the work that is needed. - Re-read the homenork coding standard5 ... 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 functien. - 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 havever to initialize them to zero if you wish, but it is not needed since. these values get overwritten via input prompts or calculations. - Define function prototypes for each function (note: not needed for the main function) I would recommend that your clock, wage, hours, overtime, and gross values be stored in individual arrays. As a challenge, you can have your program prompe the user to enter the number of hours each employee worked. When prompted, key in the hours shown below. Do define your array size up front in your variable declaration. Don't define the array size at run time with a variable. This strategy does not always work an every C compiler Create a separate function whenever possible to break up your program. For instance, you might have a function for obtaining the hours from the user, another function for calculating overtime hours, another for calculating gross pay and another function for producing the output. At a minimum, you should have a main function and three or more other functions. havly, as always, don't use concepts we have not yet covered. Optional Challenge (Totals and Averages) For those of you more experienced programmers, continue with the challenges below that were offered in last week's assignment. The additional challenge this week would be encapsulating the logic into functions that can be called to do this work. - Calculate and print the total sum of Wage, Hours, Overtime, and Gross values - Calculate and print the average of the Wage, Hours, Overtime, and Gross Values

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!