Question: Write a test class to test the methods getBMI and getStatus in the BMI class in Listing 10.4. Data from Listing 10.4. 1 publ1c class
Write a test class to test the methods getBMI and getStatus in the BMI class in Listing 10.4.
Data from Listing 10.4.


1 publ1c class BMI { private String name: private int age: private double weight: /l in pounds private double height; // in inches publ1c static final double KILOGRAMS_PER_POUND = 0.45359237: pub11c static final double METERS_PERINCH = 0.0254; 4 6 7 8 pub11c BMI (String name, 1nt age, double weight, double height) { this.name = name: 10 123
Step by Step Solution
3.41 Rating (154 Votes )
There are 3 Steps involved in it
This method is useful for computing body mass index for a specified weight and height However it has limitations Suppose you need to associate the weight and height with a persons name and birth date ... View full answer
Get step-by-step solutions from verified subject matter experts
