est2 m/courses/1466534/quizzes/2326306/take DQuestion 26 10 pts Write a structur
ID: 3706081 • Letter: E
Question
est2 m/courses/1466534/quizzes/2326306/take DQuestion 26 10 pts Write a structure that assigns the value of "low' to the variable named pressure if the variable bloodPressure is less than 68 and it assigns "not low" to pressure if it is 68 or above Then display the result to the screen with a messge that tells the user : Your blood pressure is and then the value. Just create the pseudocode for the structure, not the whole program. Put a ; after each line of code so I can easily parse the statements in a word processor. HTML EditorExplanation / Answer
structure{
var bloodPressure;
var pressure;
}Data;
main()
{
Data d;
input(d.bloodpressure);
if(d.bloodpressure<68)
d.pressure="low";
else
d.pressure="not low";
output("Your blood pressure is "+d.bloodPressure);
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.