Reference no: EM1358566
Write a program that will read the data from the CSV file into an ArrayList of State objects where each State object stores information about all County objects for that state; note for this program States, districts, and territories(eg D.C.) will just be considered states. The CSV file contains aggregate information for all states and counties of each state. The CSV file I have uploaded is needed to run this program, the CSV file cannot be altered in any way form or fashion, it must be used as is. This program must be written using multiple classes, e.g. State class and County Class. this program doesn't require any mutators, for the State class and County class, since the program will read from the CSV file, but it will need constructors. You need to aim for methods that are about 25 lines of code long. This will require the designing of solutions where you're breaking down a problem into smaller subproblems. Each method should have a single well-defined purpose that is documented in its JavaDoc with pre and post conditions.25 lines of code should easily fit within the height of a window (typical heights). So If you need to scroll through the code of a method so that you can see all of it, then it's too long.Process the data provided and aggregate it by writing the following to an output file.
1) For each state, first confirm the aggregate information for each state in the data file with the individual county information. For the state of Alabama, the data file shows that there were 2,069,212 tax returns. You need the add all county records to verify that this value is the sum of all tax returns for every county. Similarly with other values.
2) For each state, display aggregate information for that state, including: the total number of counties in the state, the total number of tax returns, total number of exemptions, total adjusted gross income, etc. Also for each state, display the average number of exemptions and the averages for each of the monetary amounts.