IT 214: Program 3


Category: You will Instantly receive a download link for .zip solution file upon Payment


5/5 - (4 votes)

Remember, you can work with others *IF* no one (at all) has a computer (or similar device) present. In other words, books, paper and discussion are acceptable. Anything else, no!

There are three data files:

• CityCountyData.txt
• CityPopulation.txt
• CountyPopulation.txt

Using the data in these three files, produce a report that provides a list of the counties and specifies the following:

• County name and its population
• Largest city in the county and its population
• Percent rural (not in cities)

This report will be laid out as follows, alphabetized by county name and with one line per county.

County: County Population | | (Largest City: Population) | | Percent Rural

Big Stone: 5,124 (Ortonville: 1,848) 36.1%
Blue Earth: 65,620 (Mankato: 40,411) 21.9%
Brown: 25,463 (New Ulm: 13,258) 22.8%
Carlton: 35,576 (Cloquet: 12,081) 48.1%
Carver: 97,162 (Chanhassen: 24,967) 11.0%

The actual files that I will use for testing will have the same names and the same format, so those names should be hard-coded into your program. The files will *not* be the same size as the original. (I will use a smaller set of about five counties.)

Your output should be written into a file named Prog3.txt, **but** preceded by your initials. For example, if your name was Donald Trump, your output file would be DTPRog3.txt.

Your output should **also** be displayed on the screen.

When you think you are done, double-check:
 Three input files, with correct names, hard-coded?
 Output into XXProg3.txt?
 Output displayed on the screen?

Use only the features of Java found in Chapters 1-7 of the text.
Additional notes for Program 3

Use the 2014 data. Skip the 2010 column.

None of your functions/methods should be longer than ~ 40 lines.

All of the Java files should have your initials as a part of the name and should be in a single ZIP file. (Please use ZIP rather than RAR.)