Question: Question 1. A-D All work must be done in MATLAB. 1b. 1c. 1D. 1e. Write a script for the following branching function: m 7. Most

Question 1. A-D All work must be done in MATLAB.

Question 1. A-D All work must be done in MATLAB. 1b. 1c.

1b.

1D. 1e. Write a script for the following branching function: m 7.

1c.

Most engineering systems have redundancy. That is, an engineering syste has more

1D.

than is re quired to accomplish its purpose. Consider a nuclear reactor

1e.

whose temperature is monitored by three sensors. An alarm should go off

Write a script for the following branching function: m 7. Most engineering systems have redundancy. That is, an engineering syste has more than is re quired to accomplish its purpose. Consider a nuclear reactor whose temperature is monitored by three sensors. An alarm should go off if any two of the sensor readings disagree. Write a function with header [ response] myNukeAlarm (S1, S2, S3) where S1, S2, and S3 are the temperature readings for sen- sor 1, sensor 2, and sensor 3, respectively. The output response should be the string 'alarm! if any two of the temperature readings disagree by strictly more than 10 degrees and 'normal' otherwise. Test Cases: response = myNukeAlarm ( 94, 96, 90) response = normal >> response response = alarm! myNukeAlarm (94,96,80) response -myNukeAlarm(100,96,90) response = normal Input S1-94, S2-98, S3-92 What reponse will be displayed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!