Can some explain the use of arrays and functions for a problem I'm having trouble with, we are learning about arrays which I understand the basics of, but implementing them into void functions is still a problem since I never got voids. Could someone also explain how they are useful still as well and to figure out how to use them along with arrays to solve this problem, this is in visual studio 2008 c++
These are the guidelines for the problem to be solved
Create 4 functions
Main function
Get number of employees (less than 10)
Get employees hourly salary
Store in an floating point array called salaries
Calls calculate pay function
Calls print pay function number_of_employee_times
Calls print pay function 2 to finish the report
Calculate pay function
Gets passed the number of hours
Returns the overtime + regular pay
Print pay function 1 – called printpay
Gets passed number of employees and results from pay function
Prints “employee # made “ $results from pay function
Does not return anything (void)
Print pay function 2 – still called printpay
Only gets passed one parameter – the total pay for all of the employees
Prints “the company owes $$ in payroll”
Thanks for the help, but how can you use that for this problem, because I don't understand the directions that the problem gave me. I get the above directions but don't know to how implement functions into it?