Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

Why are employees considering union representation?

Answered: 1 week ago

Question

Types of cultural maps ?

Answered: 1 week ago

Question

Discuss the various types of leasing.

Answered: 1 week ago

Question

Define the term "Leasing"

Answered: 1 week ago

Question

What do you mean by Dividend ?

Answered: 1 week ago