Question
Questions 1-12 are 5 points each, question 13 is 40 points + 10 bonus points. Total 100 points (plus 10 bonus points) 1. What is
Questions 1-12 are 5 points each, question 13 is 40 points + 10 bonus points. Total 100 points (plus 10 bonus points) 1. What is the difference between IF-ELSE and IF-ELSEIF statements? 2. Can I check for multiple logical conditions in an IF-ELSE construct? What is the syntax for doing so? 3. What do the following operators stand for: a. && b. == c. ~= d. || e. >= 4. What is the advantage of the SWITCH statement over IF-ELSEIF statements? 5. Can I use logical conditions in a SWITCH statement? 6. Draw the information flow diagram (flowchart) for a FOR loop 7. Can the looping variable in a FOR loop be a decimal number such as 2.3 ? 8. Does the looping variable in a FOR loop always have to start from 1 ? 9. Why would someone use a WHILE loop instead of a FOR loop? 10. How can I check the time elapsed to execute a set of statements? 11. What is the difference between BREAK and CONTINUE? 12. How does MATLAB know that a control statement (such as IF-ELSE, FOR, etc) has ended? See next page for coding question: 2 13. An Injury Severity Score (ISS) is a medical score used to assess the trauma severity and is calculated as follows: Each injury is assigned an Abbreviated Injury Scale (AIS) score in the range of 05, with 0 being no injury sustained and 5 indicating significant injury sustained. These AIS scores are assigned to six regions of the body (head, face, chest, abdomen, extremities and external). As an example, a person after a major accident has the following AIS: [3 0 4 5 3 0], indicating that the person has suffered the most significant injury to their abdomen (score of 5), followed by chest (score of 4), followed by head and extremities (both a score of 3). They did not suffer any injury to their face or externals (both scored 0). The three most severely injured regions of the body (as determined by the AIS scores) have their individual AIS scores squared and added together to give the final ISS Write a MATLAB script that computes the ISS given an array of 6 AIS scores indicating injuries to the six aforementioned regions of the body. a. What is the ISS score for the following patients: i. Patient #1 with AIS score [0 3 4 5 3 0] ii. Patient #2 with AIS score [3 0 4 5 3 0] b. Bonus question for 10 points: What would the maximum ISS score be? (you do not need a script to answer this question) Comment your code appropriately. Attach your code and a snapshot of your results to your assignment as an appendix and submit it as a SINGLE PDF.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started