Question
Introduction: This assignment is to provide practice in using the Java I/O techniques discussed in the Module 10 video lectures and readings. Although the main
Introduction:
This assignment is to provide practice in using the Java I/O techniques discussed in the Module 10 video lectures and readings. Although the main focus of this assignment is Java I/O techniques, Java design and implementation techniques discussed in earlier modules should be incorporated in to this assignment.
Problem:
Supplied is a data file from the US Census which contains data from US school districts and reports statistics related to child poverty (links provided at bottom). It is desired to have a summary report which calculate basic statistics at the state level.
Desired Implementation:
Java 8 implementation to read the supplied text data and produce a report similar to the below:
There should be two separate programs (main()), one to read the text data file and write a reformatted file to be read by the second program which will create the report to standard out. Note before the report is displayed, a single line with File: then the path of the input file for the report is displayed.
The first program will have 3 run-time parameters, the data source file path, the destination file path, and the number of records in the data file (13486) .
The second program will have 2 run-time parameters, the input file path and the number of records.
Features and Restrictions:
The programs should use standard (SE) Java 8 code and compile without errors or warnings. It should also run without errors or warnings when given valid input.
The programs should provide reasonable parameter validation (correct number of parameters,reasonable values, etc.).
The programs should not use any Java collections (ArrayList, Map, Vector, etc.) except standard Java arrays. Collections are introduced in a later module. The file produced by the first program should not be deleted after running the report program. The program's code should be reasonable formatted and commented as demonstrated so far in the course. Resources: File: SmallAreaIncomePovertyEstData.txt contains the small area poverty data. It is a standard 8-bit readable text file. https://file.io/OgXZNr
File: SmallAreaIncomePovertyEstLayout.txt contains information about the field layout of the SmallAreaIncomePovertyEstData.txt file. https://file.io/pcPbVz
y-841 t -11470 07721570 10104502461 e -52452537934389946 2 1 n | 3 8 7 0 5 1 5 9 4 2 8 535945 0 | 2 1 7 2 1 8 9 6 4 2 0 7 3 3932 i | 0 1 7 9 7 3 8 1 5 06362563 me n a -56828975085967674 1 | 0 1 8 3 6 3 7 2274252278 /8S 14s 1 el /ae ed! /aM 0 1 ttl ch- n | 7 0 1 0 8 6 9 9 7 11648666 0 | 7 4 3 5 6 9 2 3060998408 i | 3 7 9 9 2 7 6 2 5 3 2 4 2 2 1 36 9 et5 ye6 tv/ a | 4 2 2 6 7 2 3 7 0 8 1 6 4 4 5 93 1 | 1 3 8 1 6 0 9 4 7 4 2 1 1 2622 u -81-56951 98232155 1 1 Pct enn nrc al IA Do n ! 2 2 9 35769905460967 o ! 2 3 4 7 0 6 7 4 4 6 6 536915 i | 7 1 1 3 2 3 6 7 4 84010049 1 e1/ a | 3 5 8 9 9 8 7 5620424003 | | 3 3 8 5 0 6 4 2 4 5 1 010799 u | 8 7 6 99279650467508 1/d atjt 82853 90117632 vght js D n/IE b-Ft e 1 2 4 5 6 8 9 0 1 2 3 5 6 7 8 90 ,10.- yt- y-841 t -11470 07721570 10104502461 e -52452537934389946 2 1 n | 3 8 7 0 5 1 5 9 4 2 8 535945 0 | 2 1 7 2 1 8 9 6 4 2 0 7 3 3932 i | 0 1 7 9 7 3 8 1 5 06362563 me n a -56828975085967674 1 | 0 1 8 3 6 3 7 2274252278 /8S 14s 1 el /ae ed! /aM 0 1 ttl ch- n | 7 0 1 0 8 6 9 9 7 11648666 0 | 7 4 3 5 6 9 2 3060998408 i | 3 7 9 9 2 7 6 2 5 3 2 4 2 2 1 36 9 et5 ye6 tv/ a | 4 2 2 6 7 2 3 7 0 8 1 6 4 4 5 93 1 | 1 3 8 1 6 0 9 4 7 4 2 1 1 2622 u -81-56951 98232155 1 1 Pct enn nrc al IA Do n ! 2 2 9 35769905460967 o ! 2 3 4 7 0 6 7 4 4 6 6 536915 i | 7 1 1 3 2 3 6 7 4 84010049 1 e1/ a | 3 5 8 9 9 8 7 5620424003 | | 3 3 8 5 0 6 4 2 4 5 1 010799 u | 8 7 6 99279650467508 1/d atjt 82853 90117632 vght js D n/IE b-Ft e 1 2 4 5 6 8 9 0 1 2 3 5 6 7 8 90 ,10.- ytStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started