0% found this document useful (0 votes)
3 views1 page

Philhealt With Train

This C++ program calculates the net income of an individual in the Philippines based on the TRAIN Law deductions for 2023. It prompts the user to enter their monthly salary, computes the corresponding Philhealth deduction and TRAIN tax based on annual income brackets, and then outputs the gross income, tax amount, Philhealth deduction, and net income. The program includes conditional statements to determine the appropriate tax rate and deductions based on the user's income level.

Uploaded by

Manuel Latayan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Philhealt With Train

This C++ program calculates the net income of an individual in the Philippines based on the TRAIN Law deductions for 2023. It prompts the user to enter their monthly salary, computes the corresponding Philhealth deduction and TRAIN tax based on annual income brackets, and then outputs the gross income, tax amount, Philhealth deduction, and net income. The program includes conditional statements to determine the appropriate tax rate and deductions based on the user's income level.

Uploaded by

Manuel Latayan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

//Manuel Latayan R

// Cpe2A
// Train Law wwe
#include <iomanip>
#include <iostream>

using namespace std;


int main () {
int AnnualIncome ;
double TRAINrate[] {0.35,0.30,0.25,0.20,0.15} ;
int TRAINrateNo = sizeof(TRAINrate)/sizeof(TRAINrate[0]) ;
float Monthly,TrainTax,NetIncome,PhilhealthDeduct;

cout << " Welcome to the Philippines " << endl


<< " Train Law Deduction 2023 " << endl
<< " " << endl
<< " Please enter your Salary/Income" << endl;
cin >> Monthly;

if (Monthly <= 10000)


{PhilhealthDeduct= 250 ;}
else if ( Monthly > 10000 && Monthly <100000)
{PhilhealthDeduct = Monthly*0.025 ; }
else if ( Monthly >= 100000)
{PhilhealthDeduct = 2500 ; };

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;
}

You might also like