Write a C program to store, analyze and update Covid-19 information about Greater Toronto Area (GTA) for the health ministry of Ontario. This assignment mainly tests your ability to use linked lists.

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
icon
Concept explainers
Question
100%

Write a C program to store, analyze and update Covid-19 information about Greater Toronto Area (GTA) for the health ministry of Ontario. This assignment mainly tests your ability to use linked lists.
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 African American, Asian, Caucasian, Indigenous, Other
• Number of people in the household—must be an integer greater than 0 and less than 12;
• Number of people tested positive for Covid-19 must not be more than number of people in the household;
• Number of people fully vaccinated—must not be more than number of people in the household.
Instructions
Create an application that should:
• Randomly populate information for one hundred households and store them in a linked list. It should be ensured that random generator correctly match region and town pairs as given above and enter valid data for rest of the fields.
• Once the linked list of 100 nodes is populated with valid random data, display the entire list as shown in the screenshots which follow.
• Don’t forget to display the serial number in every output on the console that gives list of records.
• Use a text-based menu driven interface to perform following actions based on user input in a loop.
A. Display records of only one:
a. Race
b. Region
c. Town

B. Display household information of:
a. Region and total Covid-19 cases tested positive per household over a threshold
b. Region and town-wise ranking of total people vaccinated
C. An option to add a record
D. An option to delete all records meeting following criteria of
a. Race, Region, and Town
E. Display updated database
F. Store updated data on a file
G. Display data from the file
H. Exit the program
• Create a well-designed modular program based on design techniques taught.
• Create appropriate header, implementation, and tester file.
• You must also display updated data immediately after adding or deleting a record.
• Use good naming conventions for all variables and functions.
• Use filing to store either in text or binary format.
• USE OF STRUCTRES and LINKED LIST IS REQUIRED.
Hint! For menu option G i.e., display data from the file, it is only required to display the data. You are not required to populate the linked list with the data you receive from the file. HOWEVER, remember random generator must populate a linked list and all other operations of deleting/updating the records should be on a linked list as detailed above.

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Types of Linked List
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.
Similar questions
  • SEE MORE QUESTIONS
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