Question: Write a program that takes two inputs that correspond to a patient's systolic blood pressure ( first number ) , and total cholesterol. Determine if

Write a program that takes two inputs that correspond to a patient's systolic blood pressure(first number), and total cholesterol. Determine if the blood pressure is normal, prehypertension, stage 1 hypertension, or stage 2 hypertension according to the Mayo Clinic. Also, determine if the total cholesterol is desirable, borderline high, or high according to the Mayo Clinic. Two output examples are shown below.
systolic blood pressure blood pressure category
below 120 normal
120-129 prehypertension
130-139 stage 1 hypertension
140 or more stage 2 hypertension
total cholesterol result
below 200 desirable
200-239 borderline
240 or more high
Input:
a) python C:\Users
eda\DataProgramming\M2\assign2-3.py 130206
b) python C:\Users
eda\DataProgramming\M2\assign2-3.py 140190
Output:
a) Systolic blood pressure: 130, stage 1 hypertension
Total cholesterol: 206, borderline
b) Systolic blood pressure: 140, stage 2 hypertension
Total cholesterol: 190, desirable

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!