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)/ height^2(meters)The BMI results for the adult population are interpreted as follows:Very severe low weight: below 16 kg/m^2.Low heavy weight: between 16 and 16.99 kg/m^2.Low weight: between 17 and 18.49 kg/m^2.Normal weight: between 18.50 and 24.99 kg/m^2.Overweight: between 25 and 29.99 kg/m^2.Grade I obesity: between 30 and 34.99 kg/m^2.Grade II obesity: between 35 and 39.99 kg/m^2.Grade III obesity (morbid obesity): greater than 40 kg/m^2.Ideal 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 65 years of age:Low weight: below 21.9 kg/m^2.Normal weight: between 22 and 27 kg/m^2.Overweight: between 27.1 and 32 kg/m^2.Grade I obesity: between 32.1 and 37 kg/m^2.Grade II obesity: between 37.1 and 41.9 kg/m^2.Grade III obesity (morbid obesity): greater than 42 kg/m^2.Body mass index for men over 65 years of age:Low weight: below 21.9 kg/m^2.Normal weight: between 22 and 27 kg/m^2.Overweight: between 27.1 and 30 kg/m^2.Grade I obesity: between 30.1 and 35 kg/m^2.Grade II obesity: between 35.1 and 39.9 kg/m^2.Grade III obesity (morbid obesity): greater than 40 kg/m^2.For female and male children there is a difference in the calculation, considering the graphs below (pictures)Considering children of 2,4,6,8,12 years oldOne Example of the code structure Control and TestPublic class CalculatorImc {Public String calculateImc(double height, double weight, int age, String sex){// return "Low weight very serious";}**************************************@TestPublic void adultLowWeightVeryGrave(){calculatorImc = new CalculatorImc();Assert.assertEquals("Low weight very serious", calculatorImc.calcularImc(1.66,44.0,21, "male"));}Complete the code using the information and the structure above to complete Control and Test using Java Maven
BMI calculation with Java using IntelliJ and

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 Accounting Questions!