Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

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

Students also viewed these Databases questions

Question

6. Explain how to train managers to coach employees.

Answered: 1 week ago

Question

5. Tell how job experiences can be used for skill development.

Answered: 1 week ago