The program requires the use of loops.
Loops are simply used to perform repetitive operations.
The program in C, where comments are used to explain each line is as follows:
#include <stdio.h>
int main(){
//This declares all the variables
int n, idno, hours; float rate,pay;
//This gets input for the number of employees
printf("Employees: "); scanf("%d", &n);
//This is repeated n times
for(int i = 0; i<n; i++){
//This gets input for the identification number
printf("Identification number: "); scanf("%d", &idno);
//This gets input for the hours worked
printf("Hours worked: "); scanf("%d", &hours);
//This gets input for the hourly rate
printf("Rate: "); scanf("%f", &rate);
//This calculates the pay, after tax
pay = rate * hours * 0.99;
//This calculates the pay, after tax for hours greater than 36
if(hours > 36){
pay = 0.99 * (rate * 36 + 0.5 * rate * (hours - 36));
}
//This prints the required output
printf("Identification number: %d Pay: %f\n",idno,pay);
}
return 0;
}
Read more about loops at:
https://brainly.com/question/18430675