Question: write a Java console application that analyzes Community Facts from US Census Bureau data. Create a text file called CommunityData.txt. Starting with web page factfinder.census.gov/faces/nav/jsf/pages/index.xhtml,
write a Java console application that analyzes Community Facts from US Census Bureau data. Create a text file called CommunityData.txt. Starting with web page factfinder.census.gov/faces/nav/jsf/pages/index.xhtml, enter any city, town, or zip code in the US, and click Go. From the community data web page, select a category and subcategory. Pick any self-contained data set consisting of not more than twenty rows and between three and five columns. Copy and paste the data into file CommunityData.txt. Within the file, use the first row for the community name and data title, and use the second row for column headers. Within the columns, insure that the first column is a label column and that at least two or more other columns contain numeric data. In your application, read file CommunityData.txt into parallel arrays, one for each column in the file. Create method printArrays to print the header row(s) and the (unsorted) data in formatted columns. Within method printArrays, also calculate and print the max, min, and average of each numeric column. Sort the data by the first numeric column using any sort method. Use method printArrays to print the (sorted) data again. Format all real numbers to one decimal place.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
