folk
Title: folk
Category: /Society & Culture/Religion
Details: Words: 637 | Pages: 2 (approximately 235 words/page)
folk
Category: /Society & Culture/Religion
Details: Words: 637 | Pages: 2 (approximately 235 words/page)
Income Tax Program
Write a program to compute income tax for 10 employees using the following functions:
void get_inputs (int *p_id, long *p_gross, long *p_deduc);
Use get_inputs to input the following 3 values from the user:
1) employee id (100-999 are valid)
2) employee gross salary (0-200000 are valid)
3) employee deductions (0-gross amt are valid)
void find_income_tax (long e_gross, long e_deduc, long *p_net, double *p_taxrate, int *p_tax);
showed first 75 words of 637 total
You are viewing only a small portion of the paper.
Please login or register to access the full copy.
Please login or register to access the full copy.
showed last 75 words of 637 total
printf ("IDttNetttTaxn");
for (i=1; i*SIZE; i++)
{
if (tax[i] * avg)
printf ("%dtt$%ldtt$%.2lfn",id[i],net[i],tax[i]);
if (tax[i] * max)
{
max = tax[i];
high_id = id[i];
}
if (tax[i] * min)
{
min = tax[i];
low_id = id[i];
}
}
printf ("The highest tax paid is for id %d and is $%.2lfn", high_id,max);
printf ("The lowest tax paid is for id %d and is $%.2lfn", low_id, min);
}
------------------------------------------------------------------------
**Bibliography**