Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

Is how things are said consistent with what is said?

Answered: 1 week ago

Question

Do you currently have a team agreement?

Answered: 1 week ago

Question

c. How is trust demonstrated?

Answered: 1 week ago