Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Every country is using all its possible resources and planning options to fight against the global pandemic situation raised due to Covid-19. In Pakistan

   

Every country is using all its possible resources and planning options to fight against the global pandemic situation raised due to Covid-19. In Pakistan NCOC (National Command Operation Centre) is working to meet the new challenges regarding Covid-19 in the country. Your services are hired to maintain the record of Covid-19 patients. The following information is required to maintain: Patient Name CNIC Number Gender Address City Province Age Status (Alive or Dead) Occupation (Field of profession e.g. doctor, student, government employee, etc.) Date of report (Day, Month, Year) Your Task: 1- Your task is to design a data structure that can hold the above information. (10 Marks) 2- Provide the reason of opting this data structure. (2 Marks) 3- Provide the functions to insert the data in your selected data structure and print all the record. (4 + 4 Marks) 4- Provide the implementation of the following functions: (10 + 10 Marks) Function Name double totalPatients() float averageAge(); double totalPatients(string) Count and return the total number of patients in a Description Count and return the total number of patients Calculate the average age of patients. specified city that is provided as parameter of function. Print the data of patients of having age which is provided in parameter of function. void printDataByAge(float age); age) double totalPatients(float age1, float age2) Count and return the total number of patients which fall in the range of age that is provided in parameter Calculate the number of patients of having province which is provided in parameter of function. double printDeathData(string province); double totalPatients(bool status) Count and return the total number of patients according to their status void print(float age , string city); double totalPatients(string gender, bool status) Print the data of patients of having age and city whic is provided in parameter of function. Count and return the total number of patients in a specified gender according to status that is provided as parameter of function. Print the data of patients of having age which is provided in parameter of function. void printDataByAge(float age); Please Solve this question with LinkedList using different declarations and implementations classes I want to get this question solved with LinkedList having different declaration(. h) and implementation (. cpp) files and it should solve all the upper given functions with proper parameters. It should be in C++ language

Step by Step Solution

3.38 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

MathJax allows you to include mathematics in your web pages either using LaTeX MathML or AsciiMath notation and the mathematics will be processed using JavaScript to produce HTML SVG or MathML equatio... 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

Labor Economics

Authors: George J. Borjas

6th edition

73523208, 2900073523209 , 978-0073523200

More Books

Students also viewed these Mathematics questions

Question

=+What is the EVPI?

Answered: 1 week ago

Question

What is a verb?

Answered: 1 week ago