Every country is using all its possible resources and planning options to fight against the global...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
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... View the full answer
Related Book For
Posted Date:
Students also viewed these mathematics questions
-
The length of member DC in the figure below is 60 mm. Determine the angle d O A O B. OE where. [(20 mm) sin 1151 AB AB= 202 + 602 sin SO D. in 65% [(20 mm) sin 65% AB where, AB 20 + 60-2(20)(60) cos...
-
Old MathJax webview from his next door neighbour, Jono, by telling him that he was 20 years old and had a good, stable income. The loan was payable in three equal fortnightly payments. After the...
-
Suppose that an additional year of schooling raised wages by 7 percent in 1970, regardless of the worker's race or ethnicity. Suppose also that the wage differential between the average white and the...
-
Distance between Cars (Refer to Example 6.) At 9:00 A.M. car A is traveling north at 50 miles per hour and is located 50 miles south of car B. Car B is travel- ing west at 20 miles per hour. (a) Let...
-
a. Refer to Exercise 24. State the alternative hypothesis for each test. Explain whether you decided to use a one- sided or a two-sided test and why. b. Write the conclusion for the Time 2 test in...
-
A uniform thin rod of length 0.500 m and mass 4.00 kg can rotate in a horizontal plane about a vertical axis through its center. The rod is at rest when a 3.00 g bullet traveling in the rotation...
-
In case of free expansion enthalpy_________ .
-
A waste-holding lagoon situated near the main plant receives sludge daily. When the lagoon is full, it is necessary to remove the sludge to a site located 8.2 kilometers from the main plant....
-
Question 2 ( 2 points ) Barnes Corp. issues $ 8 0 0 , 0 0 0 of 9 % , 2 0 - year bonds. The bonds are dated January 1 , 2 0 1 1 , and are due in 2 0 years on January 1 , 2 0 3 1 . Interest is paid...
-
Estimate K based on the data Differential equation: dL/dt = K(1-L) using separation of variables 1. We let L (t) be the fraction of the list already committed to memory at time t . So L =0...
-
Q2. Consider the following problems separately given below. a) Compute the following convolution integrals: i) u(t) * u(t 6) ii) 68(t 2) * e-2t u(t) b) Determine the Fourier-series coefficients of...
-
Explain the difference between primary and an intermediate input in relation to production function.
-
The capital loss of $100,000 cannot be deducted in the current year because corporations can only deduct capital losses to the extent of capital gains, and there are no capital gains in this...
-
Consider the log-linear demand curve, lnQ = a b lnP, where a and b are positive real numbers. What is price elasticity of demand?
-
Want summary on a 15-minute presentation by Bjarke Ingels, an architect, who presents a Vancouver-based project, as well as other innovative forms of adaptation in landscapes. Click on the link below...
-
One person earns $37,000 per year. Another person earns $2300 per month. How much more does the first person earn in a year than the second?
-
The production engineering group at the Singapore plant of a computer company has been put in charge of production for a new printer model. The printer will be built via an assembly line. The plant...
-
Sue Deliveau opened a software consulting firm that immediately paid $2,000 for a computer. Was this event a transaction for the business?
-
Suppose two households earn $40,000 and $56,000 respectively. What is the expected percent difference in wages between the children, grandchildren, and great-grandchildren of the two households if...
-
Figure 3-18 in the text shows the ratio of the federal minimum wage to the average hourly manufacturing wage. (a) Describe how this ratio has changed from the 1950s to the 1990s. What might have...
-
Empirical work suggests that labor demand is very elastic while labor supply is very inelastic. Assume too that payroll taxes are about 15% and legislated to be paid half by the employee and half by...
-
As the Internet continues to grow in its business influence, it is increasingly being used for applications that were formerly client/server based applications. What are some of the similarities in...
-
Fill in the blanks for the following statements: a. Source documents should be portioned into different zones for data, data, and depending upon the system inputs and reviewing form, for data that...
-
Why does the free-rider problem occur in the debt market?
Study smarter with the SolutionInn App