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

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

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
Transcribed Image Text: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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
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