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
![MANUAL
DATA ΕΝΤR YY ME NU
-This program analyzes and stores information related to Covid-19 cases-
----and its impact on various races, regions and towns of GTA--
---Manual data entry module----
Provide data of up to three households or enter 9 to skip manual data entry and to generate records randomly
Data entry for household# 1
race: enter an integer: Indigenous(0), Caucasian(1), African American(2), Asian(3), others(4)
region: enter an integer: Durham(0), Peel(1), York(2)
1
town: enter an integer: Brampton(®), Mississauga(1)
Enter annual household income:
Note!it will be rounded down to the nearest hundred.
567899
Enter number of household members, members tested for Covid-19 and members tested positive for Covid-19 respectively as
three integers separated by space or tab
3 4 2
Make sure you enter three positive integers in descending order, try again
Enter number of household members, members tested for Covid-19 and members tested positive for Covid-19 respectively as
three integers separated by space or tab
33 2
Data entry for household# 2
race: enter an integer: Indigenous (0), Caucasian(1), African American(2), Asian(3), Others(4)
Skipping manual data entry and generating records randomly.....
contents to file written successfully!
Race
Covid Tested Covid Positive
S.no
Region
Town
Income
Family size
1
Indigenous
Рeel
Mississauga
567800
3
2
2
Other
York
Vaughan
56000
9
3
Caucasian
York
Vaughan
15800
4
2
4
Other
Peel
Mississauga
104800
9
2
5
Asian
Peel
Brampton
59100
10
6
3
6
Caucasian
York
Vaughan
15200
10
6
7
African American
Durham
Whitby
30100
8
6.
3
8.
Indigenous
Peel
Brampton
15900
11
6.
Мaple
Mississauga
Caucasian
York
59200
8
10
Indigenous
Peel
60500
11
10
7
Vaughan
Mississauga
11
Indigenous
York
88900
11
5
3
12
Asian
Peel
39600
18
9
1
13
Other
Peel
Mississauga
12900
7
5
14
Caucasian
Peel
Brampton
35000
7
4
Note user interaction and validation above; for example, once user chooses a region, towns only from that](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fff6c9d72-e39a-4a92-bea5-ac3851a6fe5c%2Ff1eaabf8-a185-4687-8893-8163b7a382fd%2Fao2ayq_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)