Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Urgent !!!!!!please reply!!!!!!! today and please follow all the instructions D E S C R I P T I O N Write a C program

Urgent !!!!!!please reply!!!!!!! today and please follow all the instructions

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

D E S C R I P T I O N 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: - 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 - The houscholds 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 positive for Covid-19 must not be more than the people in the household - Number of household members fully vaccinated for Covid- 19 must not be more than the people in the household 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 randomly generated records, use a text-based menu driven interface to perform following actions based on user input iteratively; A. Display household records only of a race or region or town; B. Races ranking by total number of household members tested positive for Covid-19; C. Races ranking by total number of household members fully vaccinated for Covid-19; D. Regions ranking by total number of household members tested positive for Covid-19; E. Regions ranking by total number of household members fully vaccinated for Covid-19; F. Towns ranking by total number of household members tested positive for Covid-19; G. Towns ranking by total number of household members fully vaccinated for Covid-19; Basis of Poverty: a. Household of 1 with annual income of less than $30,000 b. Household of 2 with annual income of less than $35,000 c. Household of 3 with annual income of less than $40,000 d. Household of 4 with annual income of less than $45,000 e. Household of 5 or more with annual income of less than $50,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. All list of household records must be consecutively numbered starting from 1. 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 STRUCTRES -and its inpaet on various races, regions and towns of oTA. Provide data of up to three households or enter 9 to skip nanual data entry and to generate records randonty Data entry for householde 1 race: enter an integer: Indigenous (0), Cavcasian(1), African Anerican (2), Asian(3), 0thers (4) 1 region: enter an integer: Durhan (), Peet(1), York (2) 1 town; enter an integer: Branpton(0), Mississauga(1) at Enter annual household incone: Noteflt wilt be rounded down to the nearest hundred. 4598an Enter nunber of hoosehold nenbers, menbers fully vaccinated for Covid-19 and menbers tested positive for Covid-19 respec tively as three integers separated by space or tab 5 4 3 Data eatry for housebolda 2 race: enter an Integer: Indigenous(0), Caveasian(1), African American (2), Astan (3), others(4) Skipping nanuat data entry and generating records randosty +... inantante th tila wittan curcacefultivl Note user interaction and validation above; for example, once user chooses a region, towns only from that region are available for further selection. Out of range or incorrect entries are discarded and user is prompted to correct. Acknowledgaent: above inforeation is obtained fron voluntary contributors to the survey Main menu: Enter your choice to display 1. Household records by race, region, or town 2. Races ranking for Covid-19 3. Regions ranking for Covid-19 4. Toens ranking for Covid-19 5. Races ranking by poverty 0. Exit Enter your choice to display 1. Household records by race, region, or town 2. Races ranking for Covid-19 3. Regions ranking for Covid-19 4. Towns ranking for Covid-19 5. Races ranking by poverty . Exlt 1 Enter an integer to see household records of a particular race (0), region (1), or town (2) 1 Enter an integer: Durhan( ), Peel(1), York(2) (Since options 2,3 and 4 are similar, therefore output for only option 2 is shown) 9 for Covid-19 for Covid-19 oy poverty 8. Exat Enter 0 to see alt Covid-19 vaccinated or 1 for tested positive cases or 9. to go back to the aain menu ..........-Races ranking of Covid-19. Races:Asian:AfricanAmerican:Indigenous:0ther:Caucasian:Vaccinated7677120149107 ......--Acknowledgaent: above inforation is obtained fron voluntary contributors to the survey- Kain menu: Enter your choice to display 1. Househotd records by race, region, or tawn U B M I S S I O N Submit the zipped copy of the project named FirstNameLastNameAssign2, where FirstName and LastName are your first and last names. Not naming the project correctly will result in a penalty of 20% of the mark. In case there are known issues including program crashes under certain conditions or any unfinished/unimplemented required features, these MUST be identified as part of the header comments. Not providing such a list will result in 20% deduction of the mark and this will be over and above the deductions for missing such features! Submit the zipped copy of the project named FirstNameLastNameAssign2, where FirstName and LastName are your first and last names. Not naming the project correctly will result in a penalty of 20% of the mark. In case there are known issues including program crashes under certain conditions or any unfinished/unimplemented required features, these MUST be identified as part of the header comments. Not providing such a list will result in 20% deduction of the mark and this will be over and above the deductions for missing such features

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 3 Lnai 9853

Authors: Bettina Berendt ,Bjorn Bringmann ,Elisa Fromont ,Gemma Garriga ,Pauli Miettinen ,Nikolaj Tatti ,Volker Tresp

1st Edition

3319461303, 978-3319461304

More Books

Students also viewed these Databases questions