I keep getting a error on this project for school im doing can someone look over it and see what is wrong that im missing also can you help me with where to put the command to freeze the application after its done cause i dont know where to put system("pause"); on this problem.
"The payroll manager at Gerston Blankets wants a program that calculates and displays the gross pay for
each of the company’s employees. It also should calculate and display the total gross pay. The payroll
manager will enter the number of hours the employee worked and his or her pay rate. Employees
working more than 40 hours should receive time and one-half for the hours over 40. Use a void function
to determine an employee’s gross pay. Use a value-returning func-tion to accumulate the total gross
pay. The program should display the total gross pay only after the payroll manager has finished entering
the data for all the employees. Use a sentinel value to end the program."
Well, you should put the return statement after your while loop for one.
GetTotalGrossPay is not declared before it is used, so you should add a declaration for it like you did for the other. It doesn't do anything, though. If you don't need it then just get rid of it altogether.