Code 2: Write a program that will prompt a user to enter a systolic blood pressure (SBP) and diastolic blood pressure (DBP) value. The program will then compute the following parameters Pulse Pressure (PP) PP = SBP – DBP 2(DBP+SBP) Mean Arterial Blood Pressure (MAP) MAP = 3 Based on what is entered, use the table below to display the blood pressure category to the console window. Have TA verify code output. SYSTOLIC mm Hg (upper number) DIASTOLIC mm Hg (lower number) BLOOD PRESSURE CATEGORY NORMAL LESS THAN 120 and LESS THAN 80 ELEVATED 120 – 129 and LESS THAN 80 HIGH BLOOD PRESSURE 130 - 139 or 80 - 89 (HYPERTENSION) STAGE 1 HIGH BLOOD PRESSURE 140 OR HIGHER or 90 OR HIGHER (HYPERTENSION) STAGE 2 The code has the following requirements SBP, DBP, and PP are integer data types MAP is a float data type

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Code 2: Write a program that will prompt a user to enter a systolic blood pressure (SBP) and diastolic
blood pressure (DBP) value. The program will then compute the following parameters
Pulse Pressure (PP) PP = SBP – DBP
2(DBP+SBP)
Mean Arterial Blood Pressure (MAP) MAP =
3
Based on what is entered, use the table below to display the blood pressure category to the console
window. Have TA verify code output.
SYSTOLIC mm Hg
(upper number)
DIASTOLIC mm Hg
(lower number)
BLOOD PRESSURE CATEGORY
NORMAL
LESS THAN 120
and
LESS THAN 80
ELEVATED
120 – 129
and
LESS THAN 80
HIGH BLOOD PRESSURE
130 - 139
or
80 - 89
(HYPERTENSION) STAGE 1
HIGH BLOOD PRESSURE
140 OR HIGHER
or
90 OR HIGHER
(HYPERTENSION) STAGE 2
The code has the following requirements
SBP, DBP, and PP are integer data types
MAP is a float data type
Transcribed Image Text:Code 2: Write a program that will prompt a user to enter a systolic blood pressure (SBP) and diastolic blood pressure (DBP) value. The program will then compute the following parameters Pulse Pressure (PP) PP = SBP – DBP 2(DBP+SBP) Mean Arterial Blood Pressure (MAP) MAP = 3 Based on what is entered, use the table below to display the blood pressure category to the console window. Have TA verify code output. SYSTOLIC mm Hg (upper number) DIASTOLIC mm Hg (lower number) BLOOD PRESSURE CATEGORY NORMAL LESS THAN 120 and LESS THAN 80 ELEVATED 120 – 129 and LESS THAN 80 HIGH BLOOD PRESSURE 130 - 139 or 80 - 89 (HYPERTENSION) STAGE 1 HIGH BLOOD PRESSURE 140 OR HIGHER or 90 OR HIGHER (HYPERTENSION) STAGE 2 The code has the following requirements SBP, DBP, and PP are integer data types MAP is a float data type
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Knowledge Booster
Returning value from Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education