Question: Task 3 needed. Thanks:) - weight: double - bmi: double - category - calcBMIO: void + BMIO + setHeight(double h): void + setWeight(double w) :
- weight: double - bmi: double - category - calcBMIO: void + BMIO + setHeight(double h): void + setWeight(double w) : void + getHeight): double + getWeight(): double + getBMI0 : double - setCategory): void +getCategory):String Add methods definition and variable declaration to reflect the new BMI class definition as shown in the UML diagram. Add statement(s) in your driver class so that the category is also shown. Task 3: Change the Unit In most BMI calculator that you googled, it would provide you with two types of unit measurement which are the Standard (height in feet and inches and weight in pounds) and the metric (height in centimeters and weight in kilograms). 1 foot 0.3048m and 1 pound 0.454 kilograms. Add option to your BMI calculator where user now can choose which type of unit measurement that they want to use. Make necessary addition or changes in your BMI class definition to accommodate this option
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
