Due to COVID-19 pandemic which has caused high surge of patients at hospital, patients who diagnosed COVID-19 with no symptoms or mild symptoms are instructed to home quarantine and self-monitoring. Table 5 below shows an example of continuous monitoring of a patient's body temperature (TEMP) in 5 hours consecutively using a wearable thermometer. Table 5: Body Temperature Reading example within 5 hours continuous monitoring 2 37.6 3 37.9 4 37.0 5 t (hour) TEMP (°C) 36.9 39.6 You are instructed to design a C program with the following specification: i. Read a 5 hours body temperature measurement result to obtain hour-by-hour value as shown in Table 5 using pre-defined function. ii. Scan through the body temperature value one by one and trigger the auto alarm system using pre-defined function in case any incident is detected as below: • Any TEMP value exceeds the threshold value of 39.5°C (e.g. 1 = 5 when ТЕМP - 39.6°C). • When TEMP value shows an increasing trend for 3 hours consecutively (c.g. the TEMP value increase gradually from 36.9°C to 37.6°C to 37.9°c from t = 1 to 1 = 3). Two pre-defined functions are assumed have been provided as shown in Table 6 below: Table 6: Pre-defined functions for Temperature Reading and Trigger Alarm Function name Description void read_TEMP(int a[]) This function provides a 5 hours TEMP value based on | hour-by-hour measurement as example shown in Table 5 which store in an array a[] with size of 5. void trigger_alarm(int b) This function control the auto alarm system by setting the argument b value: 0 – OFF alarm, 1 – ÓN alarm a) Develop the flow chart based on the given specification. b) Develop the C program of main() based on your flowchart in question (a).

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter7: Transportation, Assignment, And Transshipment Problems
Section: Chapter Questions
Problem 14RP
icon
Related questions
Question
Due to COVID-19 pandemic which has caused high surge of patients at hospital,
patients who diagnosed COVID-19 with no symptoms or mild symptoms are instructed
to home quarantine and self-monitoring. Table 5 below shows an example of
continuous monitoring of a patient's body temperature (TEMP) in 5 hours consecutively
using a wearable thermometer.
Table 5: Body Temperature Reading example within 5 hours continuous monitoring
t (hour)
TEMP (°C)
2
3
4
36.9
37.6
37.9
37.0
39.6
You are instructed to design a C program with the following specification:
i. Read a 5 hours body temperature measurement result to obtain hour-by-hour
value as shown in Table 5 using pre-defined function.
ii. Scan through the body temperature value one by one and trigger the auto alarm
system using pre-defined function in case any incident is detected as below:
• Any TEMP value exceeds the threshold value of 39.5°C (e.g. t = 5 when
ТЕMP - 39.6°C).
• When TEMP value shows an increasing trend for 3 hours consecutively
(e.g. the TEMP value increase gradually from 36.9°C to 37.6°C to 37.9°C
from t = 1 to t = 3).
Two pre-defined functions are assumed have been provided as shown in Table 6 below:
Table 6: Pre-defined functions for Temperature Reading and Trigger Alarm
Function name
void read_TEMP(int a[]) This function provides a 5 hours TEMP value based on
Description
hour-by-hour measurement as example shown in Table 5
which store in an array a[] with size of 5.
void trigger_alarm(int b) This function control the auto alarm system by setting the
argument b value: 0 – OFF alarm, 1 - ON alarm
a) Develop the flow chart based on the given specification.
b) Develop the C program of main() based on your flowchart in question (a).
Transcribed Image Text:Due to COVID-19 pandemic which has caused high surge of patients at hospital, patients who diagnosed COVID-19 with no symptoms or mild symptoms are instructed to home quarantine and self-monitoring. Table 5 below shows an example of continuous monitoring of a patient's body temperature (TEMP) in 5 hours consecutively using a wearable thermometer. Table 5: Body Temperature Reading example within 5 hours continuous monitoring t (hour) TEMP (°C) 2 3 4 36.9 37.6 37.9 37.0 39.6 You are instructed to design a C program with the following specification: i. Read a 5 hours body temperature measurement result to obtain hour-by-hour value as shown in Table 5 using pre-defined function. ii. Scan through the body temperature value one by one and trigger the auto alarm system using pre-defined function in case any incident is detected as below: • Any TEMP value exceeds the threshold value of 39.5°C (e.g. t = 5 when ТЕMP - 39.6°C). • When TEMP value shows an increasing trend for 3 hours consecutively (e.g. the TEMP value increase gradually from 36.9°C to 37.6°C to 37.9°C from t = 1 to t = 3). Two pre-defined functions are assumed have been provided as shown in Table 6 below: Table 6: Pre-defined functions for Temperature Reading and Trigger Alarm Function name void read_TEMP(int a[]) This function provides a 5 hours TEMP value based on Description hour-by-hour measurement as example shown in Table 5 which store in an array a[] with size of 5. void trigger_alarm(int b) This function control the auto alarm system by setting the argument b value: 0 – OFF alarm, 1 - ON alarm a) Develop the flow chart based on the given specification. b) Develop the C program of main() based on your flowchart in question (a).
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Topological Sort
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole