Question: You should submit your work as a 1-page results report with the code as an appendix Attach your script at the end of the results

You should submit your work as a 1-page results report with the code as an appendix Attach your script at the end of the results report as an appendix. Do not upload a screenshot of your code you need to copy and paste your script. Include your names. In this lab, you will build on your scripting experience and create a script that classifies patients into various clinical categories based on BMI and blood pressure using conditional statements. All patient data are to be read in from text files which are provided with this handout. 1. Read in the patient data and save them into individual arrays. The patient data provided are age, height in cm, weight in kg, systolic blood pressure and diastolic blood pressure (20 points)

2. Calculate the BMI of the patients and sort them into the categories as described in Figure 1. You can adapt your script from the previous lab (30 points)

3. Using the blood pressure data, sort the patients into the various blood pressure categories (low, normal, pre hypertension, stage 1 hypertension and stage 2 hypertension) as shown in Figure 2. (30 points)

4. Calculate the mean arterial pressure (MAP) using the formula given below for all patients (10 points): MAP = (Systolic pressure + 2*diastolic pressure)/3

5. Create a plot of patient age vs MAP. Comment on any trends that you may see (10 points)

6. Save the workspace In the 1-page results report, provide the following: Patients in each BMI category. This includes the number of patients in each category, including patient IDs Patients in each blood pressure category. This includes the number of patients in each category, including patient IDs

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!