Description

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:

  • Peel
  • York
  • Durham

Towns - required

  • For Peel
    • Brampton
    • Mississauga
  • For York
    • Maple
    • Vaughan
  • 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.
    • Total Households Surveyed per region: it should show total of the overall surveyed by town and region. (see the following example).
    • Total Households Surveyed per region: it should show total of the overall surveyed by town and region. (see the following example).
    • Average Household Income: Show the overall average household income for those that are surveyed.
    • Average Household Income by town and region: Will display the average household income by town and region.
    • Average Household Income by race: Will display the average household income by race (see below for an example).
    • Percentage below Poverty: Show the overall percentage of those below poverty based on the table below for all data collected.
    • 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).
    • 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
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.