A hospital wants to create a program that can store and process the medical data of 100 infants.
You are required to write pseudocode to complete the task using the following specifications:
-
InfantID should be stored in a one-dimensional array of size 100.
-
Temperature and Pulse for each infant should be stored in a two-dimensional array of size 100 × 2.
-
Column 1 = Temperature
-
Column 2 = Pulse
-
-
Status of each infant should be stored in a one-dimensional array of size 100.
-
Status will be either “Normal” or “Critical”.
-
The program must check each infant’s Temperature and Pulse and assign the correct status using the following rules:
-
If Temperature is between 85 and 98 (inclusive)
AND
Pulse is between 90 and 120 (inclusive),
then status is “Normal” -
Otherwise, status is “Critical”
Write pseudocode to:
-
Input the InfantID, Temperature, and Pulse for all 100 infants.
-
Check each infant’s Temperature and Pulse based on the conditions above.
-
Store the correct Status (“Normal” or “Critical”) in the Status array.
-
Output the InfantID and the corresponding Status for all infants.
