Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Take Test: Midterm Exan Secure https://blackboard.uvi.edu/webapps/assessment/tak

ID: 3910298 • Letter: T

Question

Take Test: Midterm Exan Secure https://blackboard.uvi.edu/webapps/assessment/take... Given that the code in the previous question is correct, you now have a variable called BMI that you computed using the height and weight from the user, and it holds a floating point number. I would like you to create the decision structure that will implement the following flow chart diagram. You do not need to redo the previous question or create any variables, I just want the ch implements this decision structure Within in square you will printout then diamonds are the "decisions" that your program is making of code that the screen. The NO YES BMI

Explanation / Answer

Please check following piece of code:

if(BMI<18.5) {
println("UNDERWEIGHT");
} else if(BMI<25){
println("NORMAL");
} else if(BMI<30){
println("OVERWEIGHT");}
else {
println("OTHER")

}

if you remove all curly braces, that also fine, that doesnt impacted on logic.

i written those just for simplicity in understanding.