Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
Employees at Gitonga’s factory are paid an hourly rate of KES. 1000 for first 40 hours. The overtime rate for hours in excess o...Asked by Denis
Employees at Gitonga’s factory are paid an hourly rate of KES. 1000 for first 40 hours. The
overtime rate for hours in excess of 40 is 1.5 times the regular rate. Write a C program to read
an employee’s name, employment number, KRA pin and number of hours worked. Each
employee pays 30% of total income earned to KRA. The program computes the following:
I. Normal pay.
II. Overtime pay
III. Tax paid
IV. Net income
zeki
overtime rate for hours in excess of 40 is 1.5 times the regular rate. Write a C program to read
an employee’s name, employment number, KRA pin and number of hours worked. Each
employee pays 30% of total income earned to KRA. The program computes the following:
I. Normal pay.
II. Overtime pay
III. Tax paid
IV. Net income
zeki
Answers
Answered by
oobleck
I assume you can do the i/o. Given the hours,
(I) n_pay = 1000 if hours <= 40
(II) o_pay = 1000/40 * 1.5 * (hours-40) if hours > 40
t_pay = n_pay + o_pay
(III) tax = 0.30 * t_pay
(IV) net = t_pay - tax
(I) n_pay = 1000 if hours <= 40
(II) o_pay = 1000/40 * 1.5 * (hours-40) if hours > 40
t_pay = n_pay + o_pay
(III) tax = 0.30 * t_pay
(IV) net = t_pay - tax
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.