(Solved) : Java Write Program Calculates Displays Person S Body Mass Index Bmi Bmi Often Used Determ Q37248132 . . .
In Java, write a program that calculates and displays a person’sbody mass index (BMI). The BMI is often used to determine whether aperson with a sedentary lifestyle is overweight or underweight forhis or her height. A person’s BMI is calculated with the followingformula:
BMI = Weight x 703 / Height^2
where weight is measured in pounds andheight is measured in inches. The program shoulddisplay a message indicating whether the person has optimal weight,is underweight, or is overweight. A sedentary person’s weight isconsidered optimal if his or her BMI is between 18.5 and 25. If theBMI is less than 18.5, the person is considered underweight. If theBMI value is greater than 25, the person is consideredoverweight.


hypergrade.com Your Account -Hyper Grade 3-Hamewark Assignmant Hyper Grade Chapter 3-Lab Assignment-Hyper Grade Gat Homework Help With Chegg Study C. Your question was answared-raysallsg Vew required output Test Case 1 Standard Input 72ENTER ENTER 170 Please enter your height: n Please enter your weight: An BMI = 23.05|nj You are optimal.An Test Case 2 Standard Input 70 ENTER 200 ENTER Please enter your height: Ln Please enter your weight: n BMI 28.69n You are overweight. n Test Case 3 Standard Input 74ENTER 140 ENTER hypergrade.com Your Account -Hyper Grade 3-Hamewark Assignmant Hyper Grade Chapter 3-Lab Assignment-Hyper Grade Gat Homework Help With Chegg Study C. Your question was answared-raysallsg 74ENTER Please enter your height: n Please enter your weight: Ln BMI 17.97|nj Youare underweight.In Test Case 4 Standard Input -1 ENTE Please enter your height: n That’s an invalid height.n Test Case 5 Standard Input 70 ENTER ENTER Please enter your height: An Please enter your weight: An That’s an invalid weight.n Show transcribed image text hypergrade.com Your Account -Hyper Grade 3-Hamewark Assignmant Hyper Grade Chapter 3-Lab Assignment-Hyper Grade Gat Homework Help With Chegg Study C. Your question was answared-raysallsg Vew required output Test Case 1 Standard Input 72ENTER ENTER 170 Please enter your height: n Please enter your weight: An BMI = 23.05|nj You are optimal.An Test Case 2 Standard Input 70 ENTER 200 ENTER Please enter your height: Ln Please enter your weight: n BMI 28.69n You are overweight. n Test Case 3 Standard Input 74ENTER 140 ENTER
hypergrade.com Your Account -Hyper Grade 3-Hamewark Assignmant Hyper Grade Chapter 3-Lab Assignment-Hyper Grade Gat Homework Help With Chegg Study C. Your question was answared-raysallsg 74ENTER Please enter your height: n Please enter your weight: Ln BMI 17.97|nj Youare underweight.In Test Case 4 Standard Input -1 ENTE Please enter your height: n That’s an invalid height.n Test Case 5 Standard Input 70 ENTER ENTER Please enter your height: An Please enter your weight: An That’s an invalid weight.n
Expert Answer
Answer to In Java, write a program that calculates and displays a person’s body mass index (BMI). The BMI is often used to deter…
OR