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

Lack sufficient data about the employees.

To write a C program to calculate the normal pay, overtime pay, tax paid, and net income for an employee at Gitonga's factory, you can follow these steps:

1. Start by including the necessary header files:

```c
#include <stdio.h>
```

2. Declare variables to store the employee's name, employment number, KRA pin, and number of hours worked:

```c
char name[50];
int employmentNumber, KRAPin, hoursWorked;
```

3. Ask the user to input the employee's details:

```c
printf("Enter employee name: ");
scanf("%s", name);

printf("Enter employment number: ");
scanf("%d", &employmentNumber);

printf("Enter KRA pin: ");
scanf("%d", &KRAPin);

printf("Enter number of hours worked: ");
scanf("%d", &hoursWorked);
```

4. Calculate the normal pay based on the given hourly rate of KES. 1000 for the first 40 hours:

```c
int normalPay = 0;
if (hoursWorked <= 40) {
normalPay = hoursWorked * 1000;
} else {
normalPay = 40 * 1000;
}
```

5. Calculate the overtime pay for hours worked in excess of 40. The overtime rate is 1.5 times the regular rate:

```c
int overtimeHours = hoursWorked - 40;
int overtimePay = 0;
if (overtimeHours > 0) {
overtimePay = overtimeHours * (1000 * 1.5);
}
```

6. Calculate the total income earned by adding the normal pay and overtime pay:

```c
int totalIncome = normalPay + overtimePay;
```

7. Calculate the tax paid, which is 30% of the total income:

```c
float tax = 0.3 * totalIncome;
```

8. Calculate the net income by subtracting the tax paid from the total income:

```c
float netIncome = totalIncome - tax;
```

9. Print the results:

```c
printf("Normal pay: KES. %d\n", normalPay);
printf("Overtime pay: KES. %d\n", overtimePay);
printf("Tax paid: KES. %.2f\n", tax);
printf("Net income: KES. %.2f\n", netIncome);
```

10. Finally, end the program:

```c
return 0;
```

Here's the full C program:

```c
#include <stdio.h>

int main() {
char name[50];
int employmentNumber, KRAPin, hoursWorked;

printf("Enter employee name: ");
scanf("%s", name);

printf("Enter employment number: ");
scanf("%d", &employmentNumber);

printf("Enter KRA pin: ");
scanf("%d", &KRAPin);

printf("Enter number of hours worked: ");
scanf("%d", &hoursWorked);

int normalPay = 0;
if (hoursWorked <= 40) {
normalPay = hoursWorked * 1000;
} else {
normalPay = 40 * 1000;
}

int overtimeHours = hoursWorked - 40;
int overtimePay = 0;
if (overtimeHours > 0) {
overtimePay = overtimeHours * (1000 * 1.5);
}

int totalIncome = normalPay + overtimePay;

float tax = 0.3 * totalIncome;

float netIncome = totalIncome - tax;

printf("Normal pay: KES. %d\n", normalPay);
printf("Overtime pay: KES. %d\n", overtimePay);
printf("Tax paid: KES. %.2f\n", tax);
printf("Net income: KES. %.2f\n", netIncome);

return 0;
}
```

You can compile and run this program to calculate the normal pay, overtime pay, tax paid, and net income for an employee at Gitonga's factory.