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

Qustion : Evaluate the given pseudocode to calculate the body mass index (BMI) w

ID: 3590209 • Letter: Q

Question

Qustion : Evaluate the given pseudocode to calculate the body mass index (BMI) with the following test values:

A) The height = 1.80 meter and the weight = 78 Kg

B) The height = 1.50 meter and the weight = 85 Kg

Input height

Input weight

BMI = Weight / (height)2

If BMI < 18.5 then
Output BMI

            Output “Underweight”

Else

If BMI < 24.9 then
Output BMI

            Output “Normal”

Else

If BMI > 25 then
Output BMI

            Output “overweight”

End if

What is the final output of:

A)

B)

Explanation / Answer

The following is the output for the above pseudocode for calculating the body mass index (BMI) :

A) Normal

B) Overweight