Question: write a Java console application that Create a text file called Data.txt. Within the file, use the first row for the name and data title,

write a Java console application that Create a text file called Data.txt. Within the file, use the first row for the 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 other columns contain numeric data. In your application, read file Data.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.

Population and Housing Characteristics (Population, Age, Sex, Race, Households and Housing) Column Number percent 0 to 5 years 2531333 6.8 5 to 9 years 2505839 6.7 10 to 14 years 2590930 7.0 15 to 19 years 2823940 7.6 20 to 24 years 2765949 7.4 25 to 29 years 2744409 7.4 30 to 34 years 2573468 6.9 35 to 39 years 2573579 6.9 40 to 44 years 2609131 7.0 45 to 49 years 2689819 7.2 50 to 54 years 2562552 6.9 55 to 59 years 2204296 5.9 60 to 64 years 1832197 4.9 65 to 69 years 1303558 3.5 70 to 74 years 971778 2.6 75 to 79 years 766971 2.1 80 to 84 years 603239 1.6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!