folk

Date Submitted: 05/22/2003 07:51:49
Category: / Society & Culture / Religion
Length: 2 pages (637 words)
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); …
Is this Essay helpful? Join now to read this particular paper
and access over 480,000 just like this GET BETTER GRADES
…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**
Need a custom written paper? Let our professional writers save your time.