Answered You can hire a professional tutor to get the answer.
PROGRAM 410t (Household Income Report) Program Description: The results of a survey of the households in your township have been made available.
PROGRAM 410t
(Household Income Report)
Program Description: The results of a survey of the households in your township have been made available. Each record contains data for one household, including a four-digit integer identification number, the annual income for the household, and the number of members of the household. Write a program to read the survey results into three arrays, echo print the data and perform and output the following analyses:
1. Count the number of households included in the survey and print a three-column table displaying the data read in (assume no more than 25 households)
2. Calculate the average household income, and list the identification number and income of each household that exceeds the average.
3. Determine the percentage of households having incomes below the poverty level. The poverty level income may be computed using the formula: p= $3750.00 + $750.00 * (m-2) where m is the number of members of each household.
Run the program twice to verify it's accuracy.
Statements Required: input, output, decision making, array, methods, class
Data Location: survey2.dat
survey.dat
Sample Output: (your output will be in a single column and will include output from the second file)
id income members
1041 12180 4
1062 13240 3
1327 19800 2
1483 22458 8
1900 17000 2
2112 18125 7
2345 15623 2
3210 3200 6
3600 6500 5
3601 11970 2
4725 8900 3
6217 10000 2
9280 6200 1
Households with income exceeding an average income of 12707.4
id income members
1062 13240 3
1327 19800 2
1483 22458 8
1900 17000 2
2112 18125 7
2345 15623 2
Percent of households below poverty level = 0.0769231
Datfile:
1041 12180 4
1062 13240 3
1327 19800 2
1483 22458 8
1900 17000 2
2112 18125 7
2345 15623 2
3210 3200 6
3600 6500 5
3601 11970 2
4725 8900 3
6217 10000 2
9280 6200 1