Answered step by step
Verified Expert Solution
Question
1 Approved Answer
mathlab Write a function, which should take the weight (w) and height (h) of a person and should return the body mass index using the
mathlab
Write a function, which should take the weight (w) and height (h) of a person and should return the body mass index using the following formula: BMI = w/h? Then write a script, where you ask the user his/her weight and height. Finally his/her BMI value (with 2 decimal places) and its category should be prompted to the screen according to the table below: BMI value from BMI value to Category 15 Very severely underweight 15 16 Severely underweight 16 18.5 Underweight 18.5 25 Normal 25 30 Overweight 30 Obese Example: What is your height (in m.): 1.82 What is your weight (in kg) : 93 Your BMI is 27.77, so you are overweight. function BMI = w/h.12 write a function which should take the weight (W) and height (n) of a person and should return the body mass index using the following formula: BMI = w/h^2 Then write a script where you ask the user his/her weight and height. Finally his/her BM value (with 2 decimal places Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started