Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please include the code you used in the answer!! Write a C program that performs the following tasks: Prompts the user to enter (via the
- Please include the code you used in the answer!!
- Write a C program that performs the following tasks:
-
- Prompts the user to enter (via the terminal) the systemic arterial systolic and diastolic pressures for a given subject (see Excel file Physiologic_data) in units of mmHg.
-
- Calculates the mean arterial pressure (MAP) by calling a separate function that accepts as input arguments the systolic and diastolic pressures and returns MAP.
-
- Displays on the terminal (separate lines) the systolic pressure, diastolic pressure, and MAP each with appropriate message and units (mmHg).
-
- Calculates pulse pressure (PP) by calling a separate function that accepts as input arguments the systolic and diastolic pressures and returns PP.
PP = systolic pressure diastolic pressure
- Displays on the terminal PP (on a separate line) with appropriate message and units of mmHg.
Excel file Physiologic_data
Weight (pounds) | Height (inches) | Systolic BP (mm Hg) | Diastolic BP (mm Hg) | HR (beats/min) | Age (years) |
175 | 68 | 128 | 77 | 68 | 21 |
240 | 73 | 108 | 74 | 68 | 26 |
160 | 73 | 138 | 76 | 66 | 20 |
220 | 69 | 165 | 91 | 100 | 20 |
235 | 74 | 140 | 64 | 80 | 20 |
145 | 67 | 132 | 72 | 95 | 20 |
140 | 66 | 154 | 74 | 93 | 20 |
210 | 72 | 131 | 66 | 97 | 20 |
200 | 70 | 109 | 63 | 78 | 20 |
185 | 69 | 152 | 97 | 70 | 22 |
165 | 67 | 122 | 64 | 77 | 19 |
118 | 65 | 137 | 96 | 85 | 21 |
195 | 70 | 142 | 72 | 68 | 20 |
140 | 63 | 110 | 74 | 75 | 22 |
165 | 67 | 111 | 52 | 53 | 21 |
175 | 68 | 103 | 53 | 47 | 21 |
145 | 71 | 123 | 68 | 56 | 20 |
206 | 73 | 114 | 65 | 60 | 21 |
218 | 70 | 137 | 75 | 70 | 21 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started