CSCI317 Assignment 2 Methods

$30.00

Download Details:

  • Name: Assignment-2-Methods-ol39xi.zip
  • Type: zip
  • Size: 35.91 KB

Category:

Description

Rate this product

Body mass index (BMI) is a value derived from the mass (weight) and height of a person. The BMI is
defined as the body mass divided by the square of the body height, and is universally expressed in units of
kg/m2, resulting from mass in kilograms and height in meters (Reference retrieved from
https://en.wikipedia.org/wiki/Body_mass_index).
Figure 1 BMI Chart
Please make two methods in Java: calculate () method to return the BMW index by receiving the weight(kg)
and height(m), and the result() method to return obesity levels. Your output will look like Figure 2 below.
Figure 2 Output Screen