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 is similar to assignment 2 in many ways, however, it MUSTbe implemented using linked lists.

  • Regions
    • Peel
    • York
    • Durham
  • Towns:
    • For Peel
      • Brampton
      • Mississauga
    • For York
      • Maple
      • Vaughan
    • For Durham
      • Whitby
      • Oshawa
  • Race of head of the household which is supposed to be one of the following: Caucasian, Indigenous, African American, Asian, Other
  • Number of people in the household - must be an integer greater than 0
  • Number of people under the age of 20
  • Number of people between 20 and 50
  • Number of people above 50
  • Number of people with chronic diseases under the age of 50
  • Number of people tested for Covid-19
  • Number of people tested positive for Covid-19

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, use a text-based menu driven interface to perform following actions based on user input in a loop;

Program flow:

  • Display records of only one:
    • Region
    • Town
    • Race
  • Display household information of:
    • Region and total Covid-19 cases tested positive per household over a threshold
    • Region and town-wise ranking of total Covid-19 cases
  • An option to add a record
  • An option to delete all records meeting following criteria of
    • Region, Town, and Race triplet
  • Display updated database
  • Store updated data on a file
  • Display data from the file
  • Exit the program
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.