Question: Save the filename as lastname_hw5.c. Below is a partial program that shows the number of hours worked each week by an employee for 26 weeks.
Save the filename as lastname_hw5.c. Below is a partial program that shows the number of hours worked each week by an employee for 26 weeks. Add coding to find The number of weeks that the employee was sick/vacation (less than 40 hours) The number of weeks the employee worked overtime (more than 40 hours), The total number of sick/vacation hours used. The total number of overtime hours accumulated. . If the regular pay - $25 per hour, find the total gross pay after 26 weeks (time and half for more than 40 hours of work, no penalty for sick/vacation time). int hours[26] = {40, 48, 40, 40, 32, 40, 45, 40, 40, 42, 28, 40, 45, 40, 40, 40, 50.45, 48, 40, 32, 28, 40, 40, 45, 40); . Using the following tax rates, compute the total taxes paid after 26 weeks. Gross Pay Tax rate O to $1100 5% $1101 and above 7%
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
