Question: 3. Create a class called HealthProfile that includes firstname (type String), lastname (type String), height (type int), and weight (type int). Your class should have

3. Create a class called HealthProfile that includes firstname (type String), lastname (type String), height (type int), and weight (type int). Your class should have a constructor to initialize the values of the instance variables. The class should include a method to calculate body mass index (BMI). BMI = (weight in pounds X 703)/(height in inches X height in inches) Here is a sample run: (25 points): First name: Adam Last name: Smith BMI: 20 BMI VALUES Underweight: less than 18.5 Normal: between 18.5 and 24.9 Overweight: between 25 and 29.9 Obese: 30 or greater
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
