Question: 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

 Problem 3: In this problem, you will be writing a MATLAB

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 outpufthe cate Systolic 50-89 90-119 120-139 140-159 160-179 180-209 210-239 Diastolic 35-59 60-79 80-89 90-99 100-109 110-119 120-135 Categor Hypotension Low Blood Pressure Normal re- Mild Hvpertension (Stage 1 Moderate H Severe H Very Severe H nsion sion (Stage 2 ension (Stage 3 nsion (Stage 4 Other Requirements for the Pro 1. Your program should first checkfor 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 boe 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

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!