Code:
#include <stdio.h>
int main ( void )
{
int cou;
int counet;
int id [10];
double hours [10];
double wage [10];
double tax [10];
double gros [10];
double net [10];
char Employee1 [60];
char Employee2 [60];
char Employee3 [60];
char Employee4 [60];
char Employee5 [60];
char Employee6 [60];
char Employee7 [60];
char Employee8 [60];
char Employee9 [60];
char Employee10 [60];
printf(" Input Employee 1's name\n");
scanf("%s", Employee1);
printf("\nInput %s 's wage", Employee1);
scanf("%f", &wage [1]);
printf("\nThe amount of hours %s 's wored are", Employee1);
scanf("%f", &hours [1]);
printf("\nThe tax in %s 's area is", Employee1);
scanf("%f", &tax [1]);
printf(" Input Employee 2's name\n");
scanf("%s", Employee2);
printf("\nInput %s 's wage", Employee2);
scanf("%f", &wage [2]);
printf("\nThe amount of hours %s 's wored are", Employee2);
scanf("%f", &hours [2]);
printf("\nThe tax in %s 's area is", Employee2);
scanf("%f", &tax [2]);
printf(" Input Employee 3's name\n");
scanf("%s", Employee3);
printf("\nInput %s 's wage", Employee3);
scanf("%f", &wage [3]);
printf("\nThe amount of hours %s 's wored are", Employee3);
scanf("%f", &hours [3]);
printf("\nThe tax in %s 's area is", Employee3);
scanf("%f", &tax [3]);
printf(" Input Employee 4's name\n");
scanf("%s", Employee4);
printf("\nInput %s 's wage", Employee4);
scanf("%f", &wage [4]);
printf("\nThe amount of hours %s 's wored are", Employee4);
scanf("%f", &hours [4]);
printf("\nThe tax in %s 's area is", Employee4);
scanf("%f", &tax [4]);
printf(" Input Employee 5's name\n");
scanf("%s", Employee5);
printf("\nInput %s 's wage", Employee5);
scanf("%f", &wage [5]);
printf("\nThe amount of hours %s 's wored are", Employee5);
scanf("%f", &hours [5]);
printf("\nThe tax in %s 's area is", Employee5);
scanf("%f", &tax [5]);
printf(" Input Employee 6's name\n");
scanf("%s", Employee6);
printf("\nInput %s 's wage", Employee6);
scanf("%f", &wage [6]);
printf("\nThe amount of hours %s 's wored are", Employee6);
scanf("%f", &hours [6]);
printf("\nThe tax in %s 's area is", Employee6);
scanf("%f", &tax [6]);
printf(" Input Employee 7's name\n");
scanf("%s", Employee7);
printf("\nInput %s 's wage", Employee7);
scanf("%f", &wage [7]);
printf("\nThe amount of hours %s 's wored are", Employee7);
scanf("%f", &hours [7]);
printf("\nThe tax in %s 's area is", Employee7);
scanf("%f", &tax [7]);
printf(" Input Employee 8's name\n");
scanf("%s", Employee8);
printf("\nInput %s 's wage", Employee8);
scanf("%f", &wage [8]);
printf("\nThe amount of hours %s 's wored are", Employee8);
scanf("%f", &hours [8]);
printf("\nThe tax in %s 's area is", Employee8);
scanf("%f", &tax [8]);
printf(" Input Employee 9's name\n");
scanf("%s", Employee9);
printf("\nInput %s 's wage", Employee9);
scanf("%f", &wage [9]);
printf("\nThe amount of hours %s 's wored are", Employee9);
scanf("%f", &hours [9]);
printf("\nThe tax in %s 's area is", Employee9);
scanf("%f", &tax [9]);
printf(" Input Employee 10's name\n");
scanf("%s", Employee10);
printf("\nInput %s 's wage", Employee10);
scanf("%f", &wage [10]);
printf("\nThe amount of hours %s 's wored are", Employee10);
scanf("%f", &hours [10]);
printf("\nThe tax in %s 's area is", Employee10);
scanf("%f", &tax [10]);
for (cou = 0;cou <= 10; cou++) {
gros [cou] = wage [cou] * hours [cou] ;
}
for ( ctax = 0; ctax <= 10; ctax) {
tax[ctax] /= 100;
}
for (counet = 0; counet <= 10; counet++) {
net[counet] = gros [ counet ] * tax [ counet ];
}
for ( coid = 0; coid <= 10; coid++) {
printf("\nPlease input your 10 Empolyee's ID numbers" );
scanf("%d", &id [ciod] );
}
printf ("ID %d\n %d\n %d\n %d\n %d\n
%d\n %d\n %d\n %d\n %d\n", id [1], id [2],
id [3], id [4], id [5], id [6], id [7], id [8],
, id [9], id [10]);
getchar ();
getchar ();
return 0;
}