



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This C++ program calculates the net pay of an employee based on their basic salary, allowance, pension, income tax, and credit association deductions. The user inputs the basic salary, allowance, and credit association, and the program calculates the pension, income tax, total deduction, and net pay using a series of functions. The program also displays the gross salary, income tax, pension, total deduction, and net pay.
Typology: Assignments
1 / 6
This page cannot be seen from the preview
Don't miss anything!




#include
#include
cout<<" Total Deduction:"<<" "<<totDeduction<<endl; cout<<" Net Pay:"<<" "<<Netpay<<endl; cout<<"==================================================="<<endl; return 0; } //******Calculate Gross Salary********* int GrowthSalary(float Salary, float Allow){ float grSal=(Salary + Allow); return grSal; } //******Calculate Income Tax********* int IncomeTax(float Salary){ int Tax; if((Salary>=0)&&(Salary<=600)) { Tax=0Salary; } else if((Salary>=601)&&(Salary<=1650)) { Tax=0.1Salary; } else if((Salary>=1651)&&(Salary<=3200)) { Tax=0.15Salary; } else if((Salary>=3201)&&(Salary<=5250)) { Tax=0.2Salary; } else if((Salary>=5251)&&(Salary<=7800)) { Tax=0.25*Salary; } else if((Salary>=7801)&&(Salary<=10900)) {