Philhealt With Train
Philhealt With Train
// Cpe2A
// Train Law wwe
#include <iomanip>
#include <iostream>
AnnualIncome = Monthly*12 ;
if (AnnualIncome > 8000000)
{ TrainTax= 2202500+( AnnualIncome - 8000000)*TRAINrate[0];}
else if (AnnualIncome <=8000000 && AnnualIncome >= 2000001)
{ TrainTax =402500 +(AnnualIncome -2000000)*TRAINrate[1] ; }
else if (AnnualIncome <=2000000 && AnnualIncome >= 800001)
{ TrainTax = 102500 + ( AnnualIncome -800000)*TRAINrate[2];}
else if (AnnualIncome <=800000 && AnnualIncome >= 400001)
{ TrainTax = 22500 + ( AnnualIncome -400000 )*TRAINrate[3] ; }
else if ( AnnualIncome <= 400000 && AnnualIncome >=250001)
{ TrainTax = (AnnualIncome - 250000)*TRAINrate[4] ; }
else if ( AnnualIncome <=250000)
{ TrainTax = 0 ;
cout << " You are excempted on the tax !!" << endl ;} ;
TrainTax /= 12 ;
NetIncome = Monthly - TrainTax - PhilhealthDeduct ;
cout << " Your Gross Income is "<<fixed<< setprecision (2) << Monthly << "
Pesos " <<endl
<< " Your Tax is " <<fixed<< setprecision (2)<< TrainTax <<
" Pesos "<< endl
<< " Your Philhealt Deduction is "<<fixed<< setprecision (2) <<
PhilhealthDeduct << " Pesos " << endl
<< " Your Net Income is " <<fixed<< setprecision (2) << NetIncome <<
" Pesos "<<endl;
return 0;
}