1. Engineering
  2. Computer Science
  3. please include the code you used in the answer write...

Question: please include the code you used in the answer write...

Question details
  • Please include the code you used in the answer!!
  • Write a C program that performs the following tasks:
    1. 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.
    1. Calculates the mean arterial pressure (MAP) by calling a separate function that accepts as input arguments the systolic and diastolic pressures and returns MAP.
    1. Displays on the terminal (separate lines) the systolic pressure, diastolic pressure, and MAP each with appropriate message and units (mmHg).
    1. 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

  1. 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
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution