Answer by user34073 for Federal and state income tax calculator
That huge if/else statement you have is terrible.First, you print out the values using the same print statement at the end of each if, just move that to the end:else if (begIncome > BRACKET_35) //...
View ArticleAnswer by Jamal for Federal and state income tax calculator
ConstantsConstants denoted with final should also be static.They should either be placed above main() or in another class. When programming in Java, it is important to utilize multiple classes whenever...
View ArticleAnswer by barq for Federal and state income tax calculator
Style: By convention, class names should be capitalized, i.e. FedIncomeTax.Formatting: Indent after opening { and unindent after closing }. Use float instead of double for your constants. You are not...
View ArticleAnswer by SMA for Federal and state income tax calculator
Make use of List or an array in your case to store GA/FED tax(separate one for each tax)The only thing that is changing is calculation of govTax. So define double govTax outside of if/else block and...
View ArticleFederal and state income tax calculator
I'm trying to optimize this code by:condensing repetitive statementsImproving the code/make it less confusingBranch out to include other filing status such as "married""joint" filing statusbranch out...
View Article
More Pages to Explore .....