Question: Answer all part of the questions. *Using C++ languages 5 61587360087004... A the 22:38 GA PARTC Recently, the world has been infected with Covid-19 pandemic.

Answer all part of the questions.

*Using C++ languages

Answer all part of the questions. *Using C++ languages 5 61587360087004... A

5 61587360087004... A the 22:38 GA PARTC Recently, the world has been infected with Covid-19 pandemic. You as a programmer has been askad by the Ministry of Health Malaysia to develop a system, that able to perform a fast analysis to categorise whether the user has a Covid-19 symptom or not. The result of the analysis will be based on the user's inputs that correspond to several questions. Finally, the system wil display the result and accumulative numbers of the user that has a Covid- 19 symptom and no Covid-19 symplom. i Write a main() function. This function will do the followings prompts the user to input his her ful name, postoods and age cails the function named aynpton) and send age as an argument. The function symptom () will calculates and return a value and stored in a Variable caled finalResult. in each iteration, display the analysis result based on the conditions in Tablet ask the user whether to repeat the process or not. If the user decided not to repeat then display the tatal number of patients the total number of Non- Covid-19 patients and the total number of Covid-19 patients. Table 1: Symptom decision result Range of final result Description of the result OstiralResult 2 No COVID-19 symptom 2CfinalResults You had COVID-19 symptom finalResult CO OR finalResult The age entered is invalid Write a funcbon named symptom 1). The function will do the following receives the age as a parameter from the main() function. calls the analysis () function. The function analysis will be call based on the conditions in Table 2 and will return the total analysis and stored in variabis named total The function symptoms () calculates and retums the value of finalResult to Calculation formula: final result Mark of the age total Table 2: Range of patient's age mapped to the mark of age Range of age managed Icages17 13 59 6D -1 1 0 II. Write a function named analysis). The analysis is performed according to several questions as shown in Table 3. the weighted from the user's response will be used for the analysis calculation. Function analysis will calculates and returns the value totalAnalysis to the function symptom() Calculation formula: total analysis = Weighted Question 1 + Weighted Question 2 + Weighted Question 3 Table 3. Question for analysis Weighted from user's respond Question Yes No 1 1. Have you got close contact with COVID-19 patient? 1 0 YINI 2. Have you got a fever, caugh, or colds (Y/N) 1 0 3 Have you got any breathing difficulties? [YINI 1 0 Figure 1 shown below is an outpu samole of four eatients. Internet wil bir il Intelor postcode: 7200 Ente age 2 Have you got close contact with COVO-19 patient? [Y/ Have you got a fever, cough or colds? 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!