YOU MUST USE STRUCTURES Write a C program to collect and analyze Covid-19 related information of Greater Toronto Area (GTA) population for provincial health ministry. Data Collected: Regions: o Peel o York o Durham Towns: o For Peel Brampton Mississauga o For York Maple Vaughan
YOU MUST USE STRUCTURES
Write a C program to collect and analyze Covid-19 related information of Greater Toronto Area (GTA)
population for provincial health ministry.
Data Collected:
Regions:
o Peel
o York
o Durham
Towns:
o For Peel
Brampton
Mississauga
o For York
Maple
Vaughan
o For Durham
Whitby
Oshawa
Race of head of the household which is supposed to be one of the following:
o Caucasian, Indigenous, African American, Asian, Other
The households yearly income –must be a positive number
Number of people in the household—must be an integer greater than 0
Number of household members tested for Covid-19
Number of household members tested positive for Covid-19
Instructions
Create an application that should:
Get information for up to three households from the user with data validation and store it in an array
of structures of 100 households. For remaining records, randomly populate valid information in the
array;
User must be given a choice to skip manual data entry before entering each manually-entered record;
Once the array is fully populated with manual data entry of up to three records and/or randomly
generated records, use a text-based menu driven interface to perform following actions based on user
input in a loop;
A. Display household records only of a race or region or town;
B. Races ranking by total number of household members tested for Covid-19;
C. Races ranking by total number of household members tested positive for Covid-19;
D. Regions ranking by total number of household members tested for Covid-19;
E. Regions ranking by total number of household members tested positive for Covid-19;
F. Towns ranking by total number of household members tested for Covid-19;
G. Towns ranking by total number of household members tested positive for Covid-19;
Basis of Poverty:
a. Household of 1 with annual income of less than $20,000
b. Household of 2 with annual income of less than $25,000
c. Household of 3 with annual income of less than $30,000
d. Household of 4 with annual income of less than $35,000
e. Household of 5 or more with annual income of less than $40,000
H. Races ranking by poverty: Show races with highest to lowest percentage of poor households
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 header files;
Use good naming conventions for all variables and functions;
YOU MUST USE STRUCTURES
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images