Question: Write a code segment that determines if a structure is safe. Assume the variable SF is defined and is a row vector of a list

Write a code segment that determines if a structure is safe. Assume the variable SF is defined and is a row vector of a list of Safety Factors for the components of a structure. If any number in the list is less than 1, set the the value of the variable fail to 1. Otherwise set the value of the variable fail to 0. If any number in the list is less than 1.5, set the the value of the variable unsafe to 1. Otherwise set the value of the variable unsafe to 0. SF=[0.7, 0.6, 2.7, 1.97 $ unsafe=1 and fa')=1 SE 3.5, 2.1, 1.5, 1.91 unsafe U and fai_0 ST=[1.6 1.2] S unsafe=l and fail=0 Notes: Write a code segment, not a function . Do not include any test cases in the code you submit. . Don't forget end statements . Check variable names and spelling
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
