The body fat percentage (BFP) of a person can be estimated by the formula BFP= 1.2xBMI+0.23xAGE -10.8xGEnder-0.54 where BMI is the body mass index, given by BMI = 703 W/H^2, in which W is the weight in pounds and H is the height in inches, Age is the person's age, and Gender =1 for a male and Gender = 0
for a female. Write a MATLAB user-defined function that calculates the body fat percentage. For
the function name and arguments use BFP = BodyFat(w,h,age,gen). The input arguments are the
weight, height, age, and gender (1 for male, 0 for female), respectively. The output argument is the
BEF value. Use the function to calculate the body fat percentage of:
a) A 35-years-old, 6 ft 2 in. tall, 220 lb male.
b) A 22-years-old, 5 ft 7 in. tall, 135 lb female.