Help!
Write a C program to process weekly employee time cards for all employees of an organization. Each employee will have three data items: an identification number. the hourly wage rate, and the number of hours worked during a given Week o Each employee is to be paid time and a half for all hours worked over 36 A tax amount of 1% of gross salary will be deducted. program output should show the employee's number and net pay.​

Respuesta :

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