int main()
{
//Wrong, these should be doubles you had it right before
int GMS,NIS,NHT,PEN,TFA,EDTX,INTX,Bonus1,Bonus2,Bonus3;
TFA=10,000; //OK, this makes sense, you have an established variable and you are assigning the value to it (though no commas!))
NIS:=520 //meaningless no such symbol :=
NIS:=1040 //meaningless
NHT:=0.02*GMS //X What is GMS at this point? nothing.
PEN:=0.05*GMS //X
EDTX:=0.02*GMS-(NIS+PEN) // X
INTX:=0.25*GMS-(PEN+NIS+TFA) //X
Bonus1:=15000 //X
Bonus2:=9000 //X
Bonus3:=3000 //X
All of those with the Xs are wrong too for the same reasons
cout<<"\n Enter IdNum";
cin>>IdNum; //you don't have a declaration for IdNum earlier. Since this is C++ you could declare it (i.e., int IdNum;) right before this but put it at the top to keep track
cout<<"\n Enter GMS";
cin>>GMS;
if(IdNum>=9000)
//These calculations are all the same, do them first and then add on the bonuses for these employees last, they don't depend on any of the other values but GMS
NetPay=GMS-(NIS+NHT+PEN+EDTX+INTX)+Bonus1+TFA;
//don't add the TFA back on, that's just the amount free from taxes
if(IdNum>=7000<=7999) ****
//go back and look at how I had shown you before, it doesn't look like this and you need else if for this step
NetPay=GMS-(NIS+NHT+PEN+EDTX+INTX)+Bonus2+TFA;
else(NetPay=GMS+Bonus3);
if(GMS>=60000)
NIS=1040; //too late you already calculated the NET just above this
else(NIS=520); //nope should be in braces or nothing else has no conditions
if(GMS=TFA=10000)
NIS=NHT=EDTX=PEN=INTX=0; //got the right idea with this, or you can initialize them to zero at the top and leave them that way if it is less than the TFA
else
return 0;
}//
… jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster