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”
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here