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

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