Question: please quick i have aquiz Write a program that computes the Body Mass Index (BMI) given the height and weight of a person. The program

please quick i have aquiz

Write a program that computes the Body Mass Index (BMI) given the height and weight of a person. The program should first read the height and weight of the person then calculate and print the BMI category using a function called BMI. The Function BMI should receive the height and weight and return the BMI according to the following formula: BMI = weight / (Height)2 A person is considered Underweight if the BMI is less than or equal to 18.5; Normal Weight if between 18.5 and 24.9; Overweight if between 25 and 29.9; and Obese if greater than or equal to 30. The category (underweight, Normal, etc.) should be printed from the main function. Note: for the (Height)2 ; you should use math functions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!