Write a MATLAB script m-file to read in a height (in meters) and a weight (in kilograms) from the keyboard, then compute and display the body mass index (BMI), according to the formula:...



Write a MATLAB script m-file to read in a height (in meters) and a weight (in kilograms) from the keyboard, then compute and display the body mass index (BMI), according to the formula:


BMI=mass/height^2


Display a text message based on the computed BMI as indicated in the ranges below.


- Range: BMI ≤ 18.5



Message: “Underweight”


-Range: 18.5 <>



Message: “Normal”


-Range: 25 <>



Message: “Overweight”


-Range: 30



Message: “Obese”



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here