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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started