That shouldn't make a difference elad.
robshirah, why didn't you take my advice? I'm pretty sure your formulae are wrong. These should be the calculations:
Using those formulae should fix any problems you're having. Plus, using my structure will make your program more efficient.
Code:cout <<"Please enter workers total hours: "; cin >>hours; cout <<"\n"; cout <<"Please input workers salary: "; cin >>salary; cout <<"\n"; if (hours <= 40) gross = salary*hours; else gross = (salary+1) * hours; tax = gross*.75;