The employee.txt input's an employees id, hourly rate and hours worked. I needed to change tax rates depending on their salary and I can't get the program to execute. It has something to do with line 14. Can't seem to figure it out
Got it to work thanks dude! Now I just need to declare a Martial Status by adding 5% to single person and deducting 5% to a head of household, Declare marital status as a character: S=Single M=Married H=Head of Household is what I need to do.
My buddy gave me this hint:
char ms; if (ms=='s') taxrate=taxrate+0.05;
else if (........)
Where do you think the best place to put that staement is?
Now my question is because I've never used switch really. Between which lines am I inputting this statement? I'm gonna try inputting it in the right place till I get a reply back buddy