In this program, a 2010 tax rate schedule will be used to determine the amount of taxes for a person of any given filing status with any given income. The schedule will be provided.
The program will begin by asking the user for a filing status. Use choices 1 for Single, 2 for Married Filing Jointly, 3 for Married Filing Separately and 4 for Head of Household. JOptionPane will be used to display these choices to the user. In addition to the 4 choices, the user can enter -1 to exit the program. If the choice is valid, ask them for the income. If not, go directly to a switch statement. This switch statement should contain cases for 1, 2, 3, 4, -1 and a default case which gives a message that an invalid number was entered for the filing status.
Besides checking that the filing status choice is valid, the program must also check that the user does not enter a negative number for income. If so, or while they continue to give a negative, give an appropriate message and let them try again. Do not make them enter filing status again. A do/while loop for entering income should be used for this purpose.
Enclose all of the above in a do/while loop that will continually allow the same user to enter another status and income until they enter -1. All of this will comprise the main method of the class.
Use a single method for each choice. Four of these methods, one for each filing status, will calculate taxes. Call them from within the cases in the switch statement and pass them the income - they will return the tax due.
The fifth method will also be called by each case. It will display the following:
The 2010 tax due for a taxpayer
who is single with an income of
$50,000 is $8681.25.
14 freelancers are bidding on average $72 for this job
I'm a certified java satand alone programme developer.i have developed many intentory,paying and other systems for [url removed, login to view] you accepts my bid i can assure that you will satisfy with my work. thank you.