Question: 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
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/h2 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 2 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 BMI value (with 2 decimal places 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/h2 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 2 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 BMI value (with 2 decimal places
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
