Answered step by step
Verified Expert Solution
Link Copied!

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:
    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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions

Question

6. Identify seven types of hidden histories.

Answered: 1 week ago

Question

What is the relationship between humans and nature?

Answered: 1 week ago