Computers and Technology, 30.03.2021 17:50 kassandrarosario1115
Imagine that you were taking an incredibly difficult programming course. The stress of the course is starting to get to you so your doctor tells you to start regularly checking your systolic blood pressure. Unfortunately, the numbers are fairly hard to remember, you'd much rather know your pressure in common language terms.
Create a simple branching statement to achieve this objective.
Specifications
Work on a new line on your existing notebook
Using a combination of input(), if, elif, and else, write a program that asks the user their blood pressure. Compare the blood pressure against the following chart and save the Status to a variable named BP_STATUS. At the end of the program, print a nice sentence with a formatting string to tell you your status and use .format() to replace the formatting string with your BP_STATUS.
Blood Pressure Readings
Start
End
Status
--
89
Low
90
119
Ideal
120
139
Warning
140
159
High
160
--
Emergency
Hint
Don't forget that the input of input is a string!
Expected Output
$ python -i task_05.py
What is your blood pressure? 120
Your status is currently: Warning!
Submission
Code should be submitted via Blackboard as a Jupyter notebook file.
Answers: 1
Computers and Technology, 22.06.2019 03:00
Which action describes an aspect of technological design?
Answers: 1
Computers and Technology, 22.06.2019 03:30
Which group on the home tab allows you to add shapes to a powerpoint slide?
Answers: 1
Computers and Technology, 24.06.2019 00:00
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
Computers and Technology, 24.06.2019 01:30
Suppose a cpu with a write-through, write-allocate cache achieves a cpi of 2. what are the read and write bandwidths (measured by bytes per cycle) between ram and the cache? (assume each miss generates a request for one block.)
Answers: 1
Imagine that you were taking an incredibly difficult programming course. The stress of the course is...
Biology, 17.10.2020 01:01
Arts, 17.10.2020 01:01
Geography, 17.10.2020 01:01
History, 17.10.2020 01:01
Mathematics, 17.10.2020 01:01
Mathematics, 17.10.2020 01:01
Mathematics, 17.10.2020 01:01
Advanced Placement (AP), 17.10.2020 01:01
Geography, 17.10.2020 01:01
Chemistry, 17.10.2020 01:01
Mathematics, 17.10.2020 01:01