عندي هذا السؤال واريدله حل للي يقدر
Your task is to design, write, and run java algorithm to messier the body mass index (BMI) using an interface to allow the user to key in the values of the user weight in kilograms and value of the user height in centimeters to calculate the BMI and store it in an array. Your algorithm should generate different messages based on the BMI values:
· BMI = <18.5 (your weight is under weight)
· BMI = 18.5-24.9 (your weight is normal weight)
· BMI = 25-29.9 (your weight is over weight)
· BMI = 30 & above (your are obese)
The array should save the value to keep a record of the BMI of the user
Your task is to design, write, and run java algorithm to messier the body mass index (BMI) using an interface to allow the user to key in the values of the user weight in kilograms and value of the user height in centimeters to calculate the BMI and store it in an array. Your algorithm should generate different messages based on the BMI values:
· BMI = <18.5 (your weight is under weight)
· BMI = 18.5-24.9 (your weight is normal weight)
· BMI = 25-29.9 (your weight is over weight)
· BMI = 30 & above (your are obese)
The array should save the value to keep a record of the BMI of the user
تعليق