#include<iostream>
using namespace std;
int main(){
int la=2,lb=3,lc=5; //defining the no of employee each class
int sla=125000,slb=80000,slc=45000; //salary declaration for all three class
sla-=600;
slb-=600;
slc-=600;
double taxpm=0;
if(sla>50000)taxpm+=sla*.01*la; //if monthly salary is greater than 50k for first class
if(slb>50000)taxpm+=slb*.01*lb; //for second class
if(slc>50000)taxpm+=slc*.01*lc; //for third class
cout<<"Total tax deduction per month for all employees: "<<taxpm; //print total tax
return 0;
}
Comments
Leave a comment