Taxes Using Arrays
|Due date: Time and date
||Due time/date: Monday, April 19
|What to do
Rewrite your TaxManager.java so that it will accept up to 99,999 taxpayers, using an array.
Reuse your code in assignment
|How to turn in your
Your homework should be
received in the
homework inbox by the specified time. You should e-mail it to:
You will turn in your JAVA code, all the required files (.java files) The
name of your programs should be TaxManager.java and Taxpayer.java
The subject of the e-mail should be "taxes/lastname", don't
include the quotes, and substitute the lastname for yours.
The subject of the e-mail should be exactly as shown or you will get
Make sure that your files are not zipped or otherwise compressed,
or you will get no credit.
Changes to the TaxManager Program
You will have a menu option to create a taxpayer. It should be the first one in the menu.
The menu should look as follows:
create a taxpayer
modify income of a given taxpayer
calculate taxes to pay for a given taxpayer
print all the taxpayers
For options 2 and 3, the search for the taxpayer should be done by taxpayer number.
Each taxpayer should be stored in the array position corresponding to his/her taxpayer number
Taxpayer numbers should be betweek 1 and 99,999. (yes, we will "waste" position zero)
Aside from these changes, all the requirements and policies applicable to assignment 3 still apply to this
The SSN should be unique. Before creating a taxpayer object, read the corresponding SSN. Verify that it is
not part of your array. If it is send a message letting the user know that it is a duplicate SSN. If it is
not part of your array, then collect the remaining information, validate it, create the taxpayer and
add it to your
Changes to the Taxpayer.java class
SSN (social security number), it will now be a number between 1 and 99,999
The rest of the instance variables and methods, will remain the same.
If you have any more questions please e-mail Blanca or