Hello, I'm trying to make a blood pressure calculator that takes two variables, diastolic & systolic. The program uses if statements to determine what category the patient's blood pressure is: Low Ideal Pre-High High Program goal, The user should enter in their two variables, and the program will calculate their blood pressure level based on the chart provided. The Issue: I've attached a copy of the blood pressure chart on which my program is based. The program works perfectly as long as the diastolic & systolic measurements lie within one of those colored boxes (on the chart image provided) HOWEVER, if the systolic measurement is for example 110, and the Diastolic measurement was 85, the program will fail. If someone could help me ifix this code it would be greatly appreciated.
Hello,
I'm trying to make a blood pressure calculator that takes two variables, diastolic & systolic.
The program uses if statements to determine what category the patient's blood pressure is:
- Low
- Ideal
- Pre-High
- High
Program goal,
The user should enter in their two variables, and the program will calculate their blood pressure level based on the chart provided.
The Issue:
I've attached a copy of the blood pressure chart on which my program is based. The program works perfectly as long as the diastolic & systolic measurements lie within one of those colored boxes (on the chart image provided)
HOWEVER, if the systolic measurement is for example 110, and the Diastolic measurement was 85, the program will fail.
If someone could help me ifix this code it would be greatly appreciated.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images