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

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!