part 3
part 3
// CPE2A
// TrainLaw , Philhealth , Pag-ibig , SSS
#include <iostream>
int main() {
//Declaration of the variable
int AnnualIncome, Tax, Monthly, MembershipType, PagIBIGtax, sssContribution,
TotalsssContribution, i =0 ;
int Branch, MonthlyDeduct, b = 200, x= 0, LowBracketsss, HighBracketsss;
double traintaxrate [] { .35, 0.32, 0.25, 0.20, 0.15} , pagIbigRate[]
{ 0.001,0.002,0.003} ;
switch (MonthlyDeduct) {
switch (MonthlyDeduct) {
switch (static_cast<int>(PagIBIGtax) ) {
break ;
case 2 : PagIBIGtax = (Monthly * 0.002) ;
break ;
case 3 : PagIBIGtax = (5000*0.003) ;
break; }
switch ( static_cast<int>(PagIBIGtax)) {
case 4:
break;
case 5:
default : cout << " Invalid Membership Type " << endl;
}
if (MembershipType >= 6 ) { goto Repeat; }
AnnualIncome = Monthly *12 ; // to get the Annual income
switch (Branch) {
return 0; }