I'm trying to write a function for whether or not tax deductions are applied based on income and family size but I keep getting errors in my build. If income is less than or equal to $30,000 with a household size of 4 or more, then no income tax is applied. Otherwise 25% deduction is applied.
Here's your problem.
If you want to check multiple conditions in an if statement, you need to use &&, not a comma, and numbers (no matter how big) can't have commas in them.
Try this: if ((income <= 30000) && (size > 4))
Don't put commas in numbers. The compiler won't interpret that as a number.