Question: You are to write a Java console application that calculates and classifies BMI (Body Mass Index) for individuals. The number of individuals (N) is fixed
You are to write a Java console application that calculates and classifies BMI (Body Mass Index) for individuals. The number of individuals (N) is fixed at 10, so it should be declared as final int N = 10 in your program. BMI is calculated using the following equation: BMI = weight / (height*height) where weight is in kilograms and height is in metres.
Below is example output for N = 3
Your welcome message goes here
Height for person 1 (m): 1.82
Weight for person 1 (kgs): 80
BMI for person 1: 24.2 which is normal (healthy weight)
Height for person 2 (m): 1.82
Weight for person 2 (kgs): 100
BMI for person 2: 30.2 which is moderately obese
Height for person 3 (m): 1.82
Weight for person 3 (kgs): 60
BMI for person 3: 18.1 which is underweight
Summary *******
Lowest BMI : 18.1
Highest BMI : 30.2
Average BMI : 24.2
Number with low BMI: 1
Number with normal BMI: 1
Number with high BMI: 1
Your exit message goes here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
