The inputting should continue until negative values


Write a program to: read the survey results into an array of structs. The inputting should continue until negative values (sentinel values) are encountered or 25 records are obtained (size of the array). In other words, the array may or may not fill up. Count the number of households included in the survey and print (on the screen) a three-column table displaying the data. Display appropriate headers, prior to displaying the contents of the array of structs. Calculate and display the average household income. Display the average household income using an appropriate message, and list the identification number and income of each household that exceeds the average, using a two-column table. Display an appropriate message prior to displaying the two-column table. Determine the percentage of households that have incomes below the poverty level. Compute the poverty level income using the formula p = $7000.00 + $850.00 × (m - 2) where m is the number of members of each household. This formula shows that the poverty level depends on the number of family members, m, and that the poverty-level income increases as m gets larger. Display the percentage of households that have incomes below the poverty level, using an appropriate message, once it's been computed.

Request for Solution File

Ask an Expert for Answer!!
Operation Management: The inputting should continue until negative values
Reference No:- TGS02542259

Expected delivery within 24 Hours