Page 1 of 1

NOTE: Please do all parts. Part 1: Design a Java class that performs BMI calculations. Call this program “Individual Hea

Posted: Sun Jul 10, 2022 11:26 am
by answerhappygod
NOTE: Please do all parts.
Part 1:
Design a Java class that performs BMI calculations. Call thisprogram “Individual Health Assessment Program”. The specificationsfor the formula for Body Mass Index (BMI) are as follows:
BMI = Weight (in kg) / height (in meters) squared
Create a class BNICalculator which is passed weight and heightdata and returns the BMI index value. The class should also returna string message for a given value of BMI as a report asfollows:
“Seriously underweight” for BMI value below 18.0
“Underweight” for BMI value less than 18.5
“Normal weight” for BMI values between 18.5 – 24.9
“Overweight” for BMI values between 25 – 29.9
“Obese” for BMI values between 30-39.9
Part 2:
Using the BMICalculator class implement a GUI interface thatallows an operator to evaluate a persons BMI health factors thatmay contribute to his/her “wellness”. Create a Java FX GUI in whichthe height and weight is entered by an operator and the BMI valueis calculated and checked against ranges and outputs a smallnotification message displaying the calculated BMI value.
Part 3:
If a BMI calculation results in a value that is far out ofbounds (e.g. <18.5 or greater than or equal to 35), create a GUInotification box that he or she should see a doctor, or to consulta health professional and display the proper message for that valueas shown above e.g. is BMI value is 17 the notification box shoulddisplay message string BMI is 17, Patient is Seriously Underweightand should consult with Doctor.