Question: Create a function in swift that: Accepts weight in pounds and height in inches Converts these values to kg and cm One kilogram is equal

Create a function in swift that: Accepts weight in pounds and height in inches Converts these values to kg and cm One kilogram is equal to 2.2046226218 pounds One inch is equal to roughly 2.54 centimeters Calculate REE

Your Resting Energy Expenditure (REE), is the energy it takes to run your body without any movement.Heres what the formula looks like.

For males:10 x weight (kg) + 6.25 x height (cm) 5 x age (y) + 5 = REE

For females:10 x weight (kg) + 6.25 x height (cm) 5 x age (y) 161 = REE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!