Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(C++) The results of a survey of the households in your township are available for public scrutiny. Each record contains data for one household, including

(C++) The results of a survey of the households in your township are available for public scrutiny. Each record contains data for one household, including a four-digit integer identification number, the annual income for the household, and the number of household members. Write a program to read the survey results into three arrays and perform the following analyses.

a. Count the number of households included in the survey and print a three-column table displaying the data. (Assume that no more than 25 households were surveyed.)

b. Calculate the average household income, and list the identification number and income of each household that exceeds the average. c. 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. Test your program on the following data.

image text in transcribed

Annual Income 12,180 13,240 19,800 35,000 17,000 28,500 15,623 3,200 6,500 11,970 8,900 10,000 6,200 Household Members Identification Number 1041 1062 1327 1483 1900 2112 3210 3601 6217

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

What does stickiest refer to in regard to social media

Answered: 1 week ago