Question: Create a program consisting of 2 classes, a human class, and a BMI class. A human has a BMI(in addition to height, weight, name, and
Create a program consisting of 2 classes, a human class, and a BMI class. A human has a BMI(in addition to height, weight, name, and age). When the constructor method for BMI is calledyou take in the height and weight of a student and create their (approximated) BMI.
Algorithm to approximate BMI: (weight in kilograms)/(height in meters)^2
Note BMI approximations are not very good for health, but are good as a programming exampleproblem.
JAVA
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
