Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

9. You are an engineer at a manufacturing company that uses several equipments.

ID: 1845981 • Letter: 9

Question

9. You are an engineer at a manufacturing company that uses several equipments. These equipments are very sensitive to temperature and can only function properly under certain settings. Your manager asked you to design an alert system that will notify the engineers on duty if the temperatures in the building are not in the proper ranges. Such a system will require the use of sensors. However, for this assignment your goal is to create a MATLAB code that will receive the temperature measurements of the sensors as input and:

a. Display

Explanation / Answer

for the first part of your question (9) .. the code is

while(1)

index=0;

temp= input(' enter the temperature: ');

if(isempty(temp)==1)

index=1;

continue;

end

if(temp>100)

x=sprintf('Too hot