Design a project to collect household information for a census bureau which should obtain and analyze household information within the Greater Toronto Area. Data Collected: Date of collection of data using MM/DD/YYYY format Regions: o Peel o York o Durham Towns – required o For Peel Brampton Mississauga o For York Maple Vaughan o For Durham Whitby Oshawa Race of head of household – required (Caucasian, Indigenous, African American, Asian, Other) Number of people in the household – required, must be greater than 0 The household yearly income – required, must be numeric, must be greater than 0. Instructions Create an application that should: Get information for five households from the use with data validation and then randomly populate valid information in an array of structures of 100 households; Use text-based menu driven interface to perform following actions based on user input in a loop. A. Total Households Surveyed per region: it should show total of the overall surveyed by town and region. (see the following example). B. Total Households Surveyed per Race: Will show the total of the overall surveyed by town and region. (see the following example ). C. Average Household Income: Show the overall average household income for those that are surveyed. D. Average Household Income by town and region: Will display the average household income by town and region. E. Average Household Income by race: Will display the average household income by race (see below for an example). F. Percentage below Poverty: Show the overall percentage of those below poverty based on the table below for all data collected. G. Percentage below Poverty by town and region: Show the overall percentage of those below poverty based on the table below for all data collected by town and region (see below for an example). H. Percentage below Poverty by race: Show the overall percentage of those below poverty based on the table below for all data collected by race (see below for an example). Note: approximate average/total income to nearest hundred and percentage to nearest integer. Create a well-designed modular program based on design techniques taught; Make appropriate use of a header file; Use good naming conventions for all variables and functions; Use enumerated data types where appropriate; AND YOU MUST USE data STRUCTURES CORRECTLY Example layout of data for the various queries above: Average Household Income Peel: $30,000 Brampton: $40,000 Mississauga: $20,000 Durham: $37,500 Oshawa: $40,000 Whitby: $35,000 Basis of Poverty: Household of 1 and less than $15,000 Household of 2 and less than $20,000 Household of 3 and less than $25,000 Household of 4 and less than $30,000 Household of 5 or more and less than $40,000
also name which data structure is going to be used
and do some changes in code
C PROGRAMMING: - USING data STRUCTURE
PLEASE USE SIMPLE CODING
D E S C R I P T I O N
Design a project to collect household information for a census bureau which should obtain and analyze household information within the Greater Toronto Area.
Data Collected:
Date of collection of data using MM/DD/YYYY format
Regions:
o Peel
o York
o Durham
Towns – required
o For Peel
Brampton
Mississauga
o For York
Maple
Vaughan
o For Durham
Whitby
Oshawa
Race of head of household – required (Caucasian, Indigenous, African American, Asian, Other)
Number of people in the household – required, must be greater than 0
The household yearly income – required, must be numeric, must be greater than 0.
Instructions
Create an application that should:
Get information for five households from the use with data validation and then randomly populate valid information in an array of structures of 100 households;
Use text-based menu driven interface to perform following actions based on user input in a loop.
A. Total Households Surveyed per region: it should show total of the overall surveyed by town and region. (see the following example).
B. Total Households Surveyed per Race: Will show the total of the overall surveyed by town and region. (see the following example ).
C. Average Household Income: Show the overall average household income for those that are surveyed.
D. Average Household Income by town and region: Will display the average household income by town and region.
E. Average Household Income by race: Will display the average household income by race (see below for an example).
F. Percentage below Poverty: Show the overall percentage of those below poverty based on the table below for all data collected.
G. Percentage below Poverty by town and region: Show the overall percentage of those below poverty based on the table below for all data collected by town and region (see below for an example).
H. Percentage below Poverty by race: Show the overall percentage of those below poverty based on the table below for all data collected by race (see below for an example).
Note: approximate average/total income to nearest hundred and percentage to nearest integer.
Create a well-designed modular program based on design techniques taught;
Make appropriate use of a header file;
Use good naming conventions for all variables and functions;
Use enumerated data types where appropriate;
AND YOU MUST USE data STRUCTURES CORRECTLY
Example layout of data for the various queries above:
Average Household Income
Peel: $30,000
Brampton: $40,000
Mississauga: $20,000
Durham: $37,500
Oshawa: $40,000
Whitby: $35,000
Basis of Poverty:
Household of 1 and less than $15,000
Household of 2 and less than $20,000
Household of 3 and less than $25,000
Household of 4 and less than $30,000
Household of 5 or more and less than $40,000
Step by step
Solved in 2 steps with 5 images