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

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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

0. Exit
3
The average household income: 24727
Menu:
Enter your choice to display
1. Households by region
2. Households by race
3. Average household income
4. Average household by town and region
5. Average household income by race
6. Percentage of households below poverty
7. Percentage of households below poverty by race
8. Percentage of households below poverty by town and region
e. Exit
4
Durham Region:
Average annual income of Oshawa: 23216
Average annual income of Whitby: 27262
Peel Region:
Average annual income of Mississauga: 23735
Average annual income of Brampton: 22847
York Region:
Average annual income of Maple: 23100
Average annual income of Vaughan: 28590
Transcribed Image Text:0. Exit 3 The average household income: 24727 Menu: Enter your choice to display 1. Households by region 2. Households by race 3. Average household income 4. Average household by town and region 5. Average household income by race 6. Percentage of households below poverty 7. Percentage of households below poverty by race 8. Percentage of households below poverty by town and region e. Exit 4 Durham Region: Average annual income of Oshawa: 23216 Average annual income of Whitby: 27262 Peel Region: Average annual income of Mississauga: 23735 Average annual income of Brampton: 22847 York Region: Average annual income of Maple: 23100 Average annual income of Vaughan: 28590
USER I NTERACTION
SERIES OF MENU OPTIONS:
Data entry for household record number 1:
Enter appropriate number for the region:
Durham (0), PEEL (1), YORK (2)
or enter 3 to skip user inputs to generate rest of the records randomly e
Enter appropriate number for the town:
Whitby (e), Oshawa (1) e
Enter appropriate number for the race:
Caucasian (e), Indigenous (1), African American (2), Asian (3), others (4) e
Enter family(household) size and total annual income ( to the nearest hundred) separated by space/Tab:
4 43000
Data entry for household record number 2:
Enter appropriate number for the region:
Durham (0), PEEL (1), YORK (2)
or enter 3 to skip user inputs to generate rest of the records randomly 1
Enter appropriate number for the town:
Mississauga (e), Brampton (1) 1
Enter appropriate number for the race:
Caucasian (e), Indigenous (1), African American (2), Asian (3), others (4) 1
Enter family(household) size and total annual income ( to the nearest hundred) separated by space/Tab:
3 89000
Data entry for household record number 3:
Enter appropriate number for the region:
Durham (e), PEEL (1), YORK (2)
or enter 3 to skip user inputs to generate rest of the records randomly
Transcribed Image Text:USER I NTERACTION SERIES OF MENU OPTIONS: Data entry for household record number 1: Enter appropriate number for the region: Durham (0), PEEL (1), YORK (2) or enter 3 to skip user inputs to generate rest of the records randomly e Enter appropriate number for the town: Whitby (e), Oshawa (1) e Enter appropriate number for the race: Caucasian (e), Indigenous (1), African American (2), Asian (3), others (4) e Enter family(household) size and total annual income ( to the nearest hundred) separated by space/Tab: 4 43000 Data entry for household record number 2: Enter appropriate number for the region: Durham (0), PEEL (1), YORK (2) or enter 3 to skip user inputs to generate rest of the records randomly 1 Enter appropriate number for the town: Mississauga (e), Brampton (1) 1 Enter appropriate number for the race: Caucasian (e), Indigenous (1), African American (2), Asian (3), others (4) 1 Enter family(household) size and total annual income ( to the nearest hundred) separated by space/Tab: 3 89000 Data entry for household record number 3: Enter appropriate number for the region: Durham (e), PEEL (1), YORK (2) or enter 3 to skip user inputs to generate rest of the records randomly
Expert Solution
steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY