In standard units i it is 28 Body mass index (BM/D) is a meusure of obesity. cul
ID: 1766760 • Letter: I
Question
In standard units i it is 28 Body mass index (BM/D) is a meusure of obesity. culated by the formula where W'is weight in pounds, and IH is height in inches. The obesity clasif. cation is BMI Below 18.5 18.5 to 24.9 Classification Underweight Normal 25o 299 Overweight 30 and above Obese Write a program in a script file that calculates the BMII of a person. The pro- gram asks the person to enter his or her weight (Ib) and height (in.). The program displays the result in a sentence that reads: "Your BMI value is XXX, which classifies you as SSSS," where XXX is the BMI value rounded to the nearest tenth, and ssss is the corresponding classification. Use de program for determining the obesity of the following two individuals a) Aperson 6 ft 2 in tall with a weight of 180 lb (h) A person 5 ft in, tall with a weight of 150 lb.Explanation / Answer
%BMI = 703*mass / height^2 = (lbs/in^2) in SI units disp('This is the BMI calculator.') disp(' ') Weight = input('Enter your weight (lbs): '); Height = input('Enter your height (in): ') BMI = (Weight / (Height^2)) %lbs/in^2 if (BMI 18.5) && (BMI 25) && (BMI 30); disp('You are obese') end end end end On calculating using the MATLAB code, the BMI calculated for the two problems are 23.10 and 28.34 respectively.Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.