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 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 is entered for any of the 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 or less. Gross pay hours rate.
Otherwise, hours is at the overtime rate of plus the rate.
Example Sample input & output for one person
Enter name: Glenn
Enter hourly rate:
Enter hours worked:
Enter name: Stephanie
Enter hourly rate:
Enter hours worked:
Enter name:
Pay to: Glenn
Hours worked:
Hourly rate:
$Program Description
Payroll Processingpdf darr
Grading:
Has Functions
Using Parameter Passing
a By Reference using pointers
b By Value
Uses the return value of a functions
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
