113k views
4 votes
Write down the pseudo code of a program that calculates the Body Mass Index (BMI) of

a person. The program asks the user to enter this/her height in meter and weight in kg.
Then the program should display the user BMI scale and the corresponding category. Use
the following formula to compute the BMI scale:
BMI scale
weight
height2
Categories
BMI Scale
Underweight
<18.5
Normal
18.5-24.9
Overweight
25.0-29.9
Obesity
>30.0
Problem 3:​

1 Answer

3 votes

Answer:

A pseudo code was used in calculating the body mass index (BMI) of a person. The code was executed and can be shown on the explanation section below

Step-by-step explanation:

Solution

#Pseudocode program to calculate the BMI of a person

Input height in meter

Input weight in kg

BMI = Weight / (height)2

If BMI < 18.5 then

Print output as “Underweight”

ElseIf BMI >= 18.5 and BMI < 24.9 then

Print output as “Healthy”

ElseIf bmi >= 24.9 and BMI < 30

Print output as “overweight”

Else BMI >=30 then

Print output as “Obesity”

End if

User Ramusesan
by
5.5k points