Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider a hot - air heating system. The control sub - system: Receives information from three temperature sensors ( t 1 , t 2 and
Consider a hotair heating system. The control subsystem:
Receives information from three temperature sensors and and from a temperature selector switch
that set the desired temperature Tref and
Generates two signals: onoff OFF that starts stops the heater, and flow LOW,HIGH that
controls the hotair outlet.
The control subsystem functions is as follows: Every minute
An average temperature, Tav, is computed as Tav;
If Tav Tref then onoff and flow are set to OFF;
if Tref Tav Trefthen onoff ON flow LOW;
if Tav Tref then onoff flow HIGH.
Does the following pseudocode correctly describe the control subsystem?
Tav ;
if Tref Tav then onoff OFF; flow OFF;
wait for ;
end loop;
YES
NO; Tavis miscalculated
NO This pseudocode distinguishes only two situations, when Tavis greater than or equal to Tref, or when
Tavis less than Tref, while the control subsystem must distinguish three situations.Consider a hotair heating system. The control subsystem:
Receives information from three temperature sensors and and from a temperature selector switch
that set the desired temperature Tref and
Generates two signals: onoff OFF that starts stops the heater, and flow LOW,HIGH that
controls the hotair outlet.
The control subsystem functions is as follows: Every minute
An average temperature, Tav, is computed as Tav;
If Tave Tref then onoff and flow are set to OFF;
if Tref Tav Trefthen onoff ON flow LOW;
if Tav Tref then onoff flow HIGH.
Does the following pseudocode correctly describe the control subsystem?
loop
Tav ;
if Tref Tav then onoff OFF; flow OFF;
else onoff ; flow HIGH;
end if;
wait for ;
end loop;
YES
NO; Tavis miscalculated
NO This pseudocode distinguishes only two situations, when Tavis greater than or equal to Tref, or when
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