Write a two-class solution to calculate and display a person’s body
mass index (BMI). BMI is an internationally used measure of obesity.
Depending on where you live, the Imperial BMI formula or the Metric
Imperial Formula is used. Once the BMI is calculated, display a message
of the person’s status. Prompt the user for both their weight and height.
The BMI status categories, as recognized by the U.S. Department of
Health & Human Services, are given in the following table:
BMI Weight Status
Below 18.5 Underweight
18.5–24.9 Normal
25–29.9 Overweight
30 & above Obese
Provide constructors and methods so that both imperial and metric
objects can be instantiated. Use the second class to test your design.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here