scroll to top
Stuck on your essay?
Get ideas from this essay and see how your work stacks up
Word Count: 681
Income Tax Program Write a program to compute income tax for 10 employees using the following functions void getinputs int pid long pgross long pdeduc Use getinputs 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 findincometax long egross long ededuc long pnet double ptaxrate int ptax In findincometax 1 hard code two arrays income5 10000 20000 45000 70000 200000 tax5 10 15 20 35 50 2 calculate the net income gross - deductions 3 look up the net income in the income array to determine the tax bracket and applicable taxrate if net 10000 use 10 net 20000 use 15 etc 4 calculate the tax payable net taxrate100 5 return to main net income taxrate and tax payable using pointers Note this function uses two arrays income 5 and tax5 with the breakdown of incomes and taxrates which are declared and initialized in the function void printresults int id long net int taxrate double tax As each employee is processed print their employee ID net income taxrate and tax payable void printsummary ind id long net double tax double avg Finally after all employees have been processed print a summary report which displays the employee ID net income and tax payable for all employees paying more than the average tax payable Also print the employee ID and tax payable for the highest tax payable and for the lowest tax payable of the 10 employees include stdioh define SIZE 10 void getinputsint pid long pgross long pdeduc void findincometax long egross long ededuc long pnet int ptaxratedouble ptax void printresults int id long net int taxrate double tax void printsummary int id long net double tax double avg void main
@Kibin is a lifesaver for my essay right now!!
- Sandra Slivka, student @ UC Berkeley
Wow, this is the best essay help I've ever received!
- Camvu Pham, student @ U of M
If I'd known about @Kibin in college, I would have gotten much more sleep
- Jen Soust, alumni @ UCLA