Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a MatLAB question. Will give thumbs up for correct answers. Problem 3: In this problem, you will be writing a MATLAB script that

This is a MatLAB question. Will give thumbs up for correct answers. image text in transcribed
Problem 3: In this problem, you will be writing a MATLAB script that will determine a person's blood pressure category The user will have to input the systolic and diastolic blood pressure readings. Based on the readings and using the table below, the program will determine and output the category Category Hypotension Low Blood Pressure 50-89 35-59 Normal Systolic Diastolic 90-119 60-79 120-13980-89 140-15990-99 Mild Hypertension (Stage 1) Moderate Hypertension (Stage 2) 160-179 100-109 Severe Hypertension (Stage 3) 180-209 110-119 Very Severe Hypertension (Stage 4)210-239 120-135 Other Requirements for the Program 1. Your program should first check for invalid readings and should output a message for invalid readings. Systolic or Diastolic readings that fall below or above the readings in the table are invalid 2. If a person's readings put them in two different categories, the higher category should be selected. For example, someone with a blood pressure reading of 118/85 would be categorized as normal for the systolic reading and pre- hypertension for the diastolic reading. The program should output pre-hypertension. However, if a person has one reading that is normal and one reading in Hypotension (Low), they should be categorized as Hypotension (Low Blood Pressure). Make sure you test your program to make sure that all of the requirements are met. Paste your script file commands here

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

Students also viewed these Databases questions