Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions