C PROGRAMMING: - USING any 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 STRUCTRES 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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

C PROGRAMMING: - USING any 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 STRUCTRES 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

7. Percentage of households below poverty by race
8. Percentage of households below poverty by town and region
e. Exit
1
Durham Region: 36
Peel Region: 34
York Region: 30
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
2
Caucasians: 23
Indigenous: 18
African American: 20
Asian: 16
others: 23
Transcribed Image Text:7. Percentage of households below poverty by race 8. Percentage of households below poverty by town and region e. Exit 1 Durham Region: 36 Peel Region: 34 York Region: 30 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 2 Caucasians: 23 Indigenous: 18 African American: 20 Asian: 16 others: 23
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education