I get the error where for example, entering 4000 the tax is 1400, which is 35% of 4000 so it looks like a problem with the if. You can fix this in two ways, the first changing the if
if (income <= 8350){
tax = income * 0.10;
break;
}
in every one (don't) and the other option is just putting an
else if (income > 372950)
instead of just an else at the end. This fixes the weird $2000 problem you were having.