A diabetic research center wants you to develop an application
that keeps track of glucose reading for a certain number of
patients in a given day. The application should display a report
after each input consisting of age, weight, and a statement related
to the glucose level (normal, high, low). When the user ends the
input for all patients, your program must display the patient
related info. For the patient with the highest glucose level and
the patient with the lowest level.
Your input consists of:
-patient age.
-patient weight //added attribute
-patient glucose reading (donāt enter glucose reading if patient
is not fasting for more than 12 hours: need to check with patient
first).
Note that you must repeat the input and glucose evaluation for
each patient (loop needed). Also, when, user is prompted to
continue, validate the user answer accordingly.
Required:
-Code a single function for all of the input. Do not evaluate
and reject input if patient is not fasting for 12 hours or more).
(Hint: call by referenceā¦.do not use global vars)
-Code a function that evaluates the state of the glucose level
(80-130 normal, less than 80 too low, over 130 too high)
-Code a function that displays the patient report including
his/her state of the glucose level.
-Code a function that determines the patient with highest
glucose level.
-Code a function that determines the patient with lowest glucose
level.
-Code a function that displays a final report for the patient
with higher glucose level.
-Code a function that displays a final report for the patient
with lowest glucose level.
I need a basic code C program include condition
,pointers, while loops, and array. Thank you.