Question: Steel Grade String Number Code Grade 1 Steel 1 Grade 2 Steel 2 Grade 3 Steel 3 Grade 4 Steel 4 Titanium 5 Write program
| Steel Grade String | Number Code |
| Grade 1 Steel | 1 |
| Grade 2 Steel | 2 |
| Grade 3 Steel | 3 |
| Grade 4 Steel | 4 |
| Titanium | 5 |
Write program that takes in two arrays, the first with shear forces, the second array of the same length with tensile forces, for fastened joints. As an output, this function returns the type of metal to use in those joints. You can assume that no shear Forces are above 120000 and that no tensile forces are above 150000. Please call your function from Recitation 3 problem 1 to solve this.
Recitation 3 problem 1 Function:
function lowest = Recitation3Problem1(ss,ts) %UNTITLED Summary of this function goes here % Detailed explanation goes here if(ss<=33000 && ts <= 60000) lowest = 'Grade 1 Steel'; elseif (ss<=55000 && ts<=70000) lowest = 'Grade 2 Steel'; elseif (ss<=65000 && ts<=85000) lowest = 'Grade 3 Steel'; elseif (ss<=80000 && ts<=100000) lowest = 'Grade 4 Steel'; elseif (ss<=90000 && ts<=120000) lowest = 'Titanium'; else lowest = 'Consider a redesign!'; end
end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
