akosiraff

Download EmployeeSalary_Array C Answer

Oct 5th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1.  
  2. Download: https://solutionzip.com/downloads/employeesalary_array/
  3. 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.————————————————————————–
  4. Clock# Wage Hours OT Gross
  5. ————————————————————————–
  6. 098401 10.60 51.0 11.0 598.90
  7. 526488 9.75 42.5 2.5 426.56
  8. 765349 10.50 37.0 0.0 388.50
  9. 034645 12.25 45.0 5.0 581.88
  10. 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.
  11. Limit your use of global variables – Learn how to pass parameters!
  12. You should have at least 3-4 functions designed and implemented in addition to the main function.
  13. Try to limit how much code you have in your main function, call other functions to do the work that is needed.
  14. Remember to use constants and all the other things we have covered up to this assignment.
  15. 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.
  16. Feel free to initialize the clock and wage values into your arrays with the test data above.
  17. 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.
  18. Download: https://solutionzip.com/downloads/employeesalary_array/
Add Comment
Please, Sign In to add comment