The rest of my code wouldn't fit in the window very nicely so I just copied the function that wasn't doing what it was supposed to and the output of the whole program. I don't know why it's not outputting the tax number under the "Budgeted" column. I set "budgetTax = computeTax(monthlyIncome);" and budgetTax is supposed to be displayed as the budgeted taxes.
The output squished together. sorry abouy that. I bolded the output I'm having troubles with.
There is no open brace to this if statement. Consequently, the closing brace actually closes the function, so nothing is going to happen inside the function.
Edit: That wasn't actually the main problem, but now I do see the problem. In each if statement, you are actually declaring new variables yearlyTax and budgetTax. These variables get assigned the correct values, then immediately go out of scope as soon as that if statement ends. The yearlyTax and budgetTax variables you declare at the beginning of the function never actually change. Remove all the "double"s from inside the if blocks, and it should work. Also, it would be a good idea to initialize yearlyTax and budgetTax to 0.0 when you declare them.