Question: Modify your solution to Activity 2.3 so that, rather than reading a single characterumber, the program continually reads characterumber pairs and displays the trigonometry result.

Modify your solution to Activity 2.3 so that, rather than reading a single characterumber, the program continually reads characterumber pairs and displays the trigonometry result. The program should terminate when the character ' x ' is entered. In this case, no number should be read and the program should exit immediately. If a number outside the range [100,100] is entereft, the program should not display the trigonometry result and should ask for another characterumber pair to be entered. Exercise 2.12 In Activity 1.6 we introduced the concept of the Injury Severity Score (ISS). The ISS is a medical score to assess trauma severity and is calculated as follows. Each injury is assigned an Abbreviated Injury Scale (AIS) score in the range [05] which is allocated to one of six body regions (head, face, chest, abdomen, extremities and external). Only the highest AIS score in each body region is used. The three most severely injured body regions (i.e. with the highest scores) have their AIS scores squared and added together to produce the ISS. Therefore, the value of the ISS is always between 0 and 75 . Write a MATLAB script m-file to compute the ISS given an array of 6 AIS scores, which represent the most severe injuries to each of the six body regions. Test your code using the array [304530], for which the ISS should be 50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
