Question

Show transcribed image textThe body mass index (BMI), or Quetelet index, is a heuristic proxy for human body fat bassed on an individual's weight and height. BMI does not actually measure the percentage of body fat. We will be building a BMI calculator method to integrate with a GUI application. Body mass index (BMI) is computed using the formula, where mass is the subject's weight in pounds (lb) and height is the height in inches (in). The value 703 is a factor to convert BMI to a value that matches the original BMI calculations done in metric units (i.e. kilograms-meters). A frequent use of the BMI is to assess how much an individual's body weight departs from what is normal or desirable for a person of his or her height. The weight excess or deficiency may, in part, be accounted for by body fat (adipose tissue) although other factors such as muscularity also affect BMI significantly. The world Health Organization regards a BMI of less than 18.5 as underweight and may indicate malnutrition, an eating disorder, or other health problem, while a BMI greater than 25 is considered overweight and above 30 is considered obese. These ranges of BMI values are valid only as statistical categories. http://en.wikipedia.org/wiki/Body_mass_index In this project we will implement a function that accepts weight and height and returns the computed BMI. All input and output will be of type double values. The BMI function will be part of a java class that is a separate code block from the block that will be calling the function. We will call the class containing the BMI function healthLib. Later we will include other functions and methods in this class related to human healthy living. Write the public class healthLib that contains the BMI function. Write a separate class with a main program that tests the BMI function. Specifically write a program that asks the user to enter weight (in lbs) and height (in inches), calls the BMI function to compute the BMI and then displays the result. Submit source code for both classes with example output.