Question: in c programmingScope: Functions Payroll Application. Collection the names of up to 5 employees, the number of hours worked this week, and their hourly rate

in c programmingScope: Functions
Payroll Application.
Collection the names of up to 5 employees, the number of hours worked this week, and their
hourly rate of pay. After all the data is collected, output a report of how much each employee is
paid, and the total amount being paid to the employees this week.
Basic requirements;
Inside main, declare your arrays.
Write loops to call the functions
When collecting data for an employee, if -1 is entered for any of the 3 inputs, we'll stop
collecting inputs and go to the report.
Additional requirements.
Write a function that prompts the user for hours worked, rate and name. Use parameter
passing, with pass by reference as the mechanic.
Each logical unit of work should generally be its own function. Feel free to split the work
as it makes sense to you.
Functional specifics.
Pay calculation:
If hours worked is 40 or less. Gross pay = hours * rate.
Otherwise, hours >40 is at the overtime rate of 1.5, plus the 40* rate.
Example (Sample input & output for one person)
Enter name: Glenn
Enter hourly rate: 2.00
Enter hours worked: 50
Enter name: Stephanie
Enter hourly rate: 49.75
Enter hours worked: 60.5
Enter name: -1
Pay to: Glenn
Hours worked:
Hourly rate:
,50.0
$,2.00Program Description
Payroll Processing_(1).pdf darr
Grading:
Has Functions
Using Parameter Passing
2.a By Reference (using pointer(s))
2.b By Value
Uses the return value of a function(s).
 in c programmingScope: Functions Payroll Application. Collection the names of up

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!