Question: BMI calculation with Java using IntelliJ and Maven Junit. BMI = weight ( KG ) / height ^ 2 ( meters ) The BMI results
BMI calculation with Java using IntelliJ and Maven Junit. BMI weight KG heightmetersThe BMI results for the adult population are interpreted as follows:Very severe low weight: below kgmLow heavy weight: between and kgmLow weight: between and kgmNormal weight: between and kgmOverweight: between and kgmGrade I obesity: between and kgmGrade II obesity: between and kgmGrade III obesity morbid obesity: greater than kgmIdeal weight should be individualized following the criteria:Sex, age, height, biotype and existence or not of associated diseases.For the elderly population, the way to calculate the BMI is exactly the same, however, the results should be interpreted as follows:Body mass index for women over years of age:Low weight: below kgmNormal weight: between and kgmOverweight: between and kgmGrade I obesity: between and kgmGrade II obesity: between and kgmGrade III obesity morbid obesity: greater than kgmBody mass index for men over years of age:Low weight: below kgmNormal weight: between and kgmOverweight: between and kgmGrade I obesity: between and kgmGrade II obesity: between and kgmGrade III obesity morbid obesity: greater than kgmFor female and male children there is a difference in the calculation, considering the graphs below picturesConsidering children of years oldOne Example of the code structure Control and TestPublic class CalculatorImc Public String calculateImcdouble height, double weight, int age, String sex return "Low weight very serious";@TestPublic void adultLowWeightVeryGravecalculatorImc new CalculatorImc;Assert.assertEqualsLow weight very serious", calculatorImc.calcularImc "male";Complete the code using the information and the structure above to complete Control and Test using Java Maven
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
