b. Weight c. Height 2. Compute the BMI of that individual 3. Make the following decisions if: a. BMI < 18.5 is under weigh
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
The Body Mass Index – BMI is a parameter used to measure the health status of an individual. Various BMI values depicts how healthy or otherwise a person is. Mathematically BMI = WEIGHT/ HIEGHT * HEIGHT
Write a java program using either JOptionPane or Scanner to collect the following values of an individual:
1.a. Namea
b. Weight
c. Height
2. Compute the BMI of that individual
3. Make the following decisions if:
a. BMI < 18.5 is under weight
b. BMI >=18.5 but <25 considerably healthy
c. BMI >=25 but <30 overweight
d. BMI >= 30 but <40 Obesity
e. BMI >= 40 Morbid Obesity
4. Display the results of the individual
5. Explain your answer
Step by step
Solved in 3 steps with 1 images