Question: Create a function called BSA that calculates the body surface area in m 2 according to the following formula: where H is the person's height
Create a function called BSA that calculates the body surface area in m2 according to the following formula:
where H is the person's height in inches, and W is the person's weight in lb.
Your input arguments are H (height) and W (weight). The function should return BSA according to the formula above. Your H1 and help statements should instruct users about expected units of H and W.
Write a program that will ask the user for H and W (use type of input that will allow publishing of your results), call the function, and use formatted print to print and explain inputs and output/result of your function.
The function must be defined in the same Matlab program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
