cin>>filingStatus;
if(filingStatus==0 || filingStatus==1 ||filingStatus==2){
cout<<"Enter the taxable income :";
float income;
cin>>income;
currentTax = 0;
totalRecord++;
if(filingStatus==0){
if(income>0 && income<=33950){
currentTax = income*10/100;
}else if(income>=33951 && income<=171550){
currentTax = income*25/100;
}else if(income>=171551){
currentTax = income*33/100;
}
}else if(filingStatus==1){
if(income>0 && income<=67900){
currentTax = income*10/100;
}else if(income>=67901 && income<=208850){
currentTax = income*25/100;
}else if(income>=208851){
currentTax = income*33/100;
}
}else if(filingStatus==2){
if(income>0 && income<=38950 ){
currentTax = income*10/100;
}else if(income>=38951 && income<=104425 ){
currentTax = income*25/100;
}else if(income>=104426 ){
currentTax = income*33/100;
}
}
cout<<"For income "<
totalIncomeTax+=currentTax;
}
}while(filingStatus!=-1);
cout<<"Tota record entered :
"<
cout<<"Average income tax is
"<
return 0;
}