Question: Write a MATLAB function called fitness Female which takes three integers as inputs and returns one output. The inputs are the weight, the height and
Write a MATLAB function called fitness Female which takes three integers as inputs and returns one output. The inputs are the weight, the height and the age. The output is the BMR BMI Weight (kg) height? (m) BMR-161 +(10 weight(kg))+(6.25 height(cm)) - (5 age) Call the function in the main program, print the result of the BMR in the main program and print the result of the BMI in the function itself Sample output is shown below: (user input is indicated as bold Please enter the weight in Kg: 55 Please enter the height in cm: 160 Please enter the age: 25 The BMI is: 21.4844 Kg/m The BMR is: 1264 calories/day
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
