Question: Write a function that takes a 2D array as an argument, the array consists of 3 columns: the patient ID as the first column, his

Write a function that takes a 2D array as an argument, the array consists of 3 columns: the patient ID as the first column, his temperature as second column, the third column represents if the patient has cough (1) or not (0).

The function:

- checks each patient, if the patient temperature is more than 38 and he has cough, the patient diagnosed as positive, otherwise he is diagnosed as negative.

The function returns a 2D array which first column is the patient id and the second column is "p" or "n" according to his diagnosis.

in C language

and explain the function

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!