procedure Main: While there is data do Classify person procedure Classify person: Read mass in kilograms Read height in centimeters Print mass, height If mass is valid and height is valid then Create body mass index as mass / height^2 Create nutritional state as the result of classifying the body mass index Print body mass index, nutritional state Else Print invalid data function Is mass valid: return mass > 0 and mass <= 1000 function Is height valid: return height > 0 and height <= 300 function Classify the body mass index (bmi): If bmi < 18.5 then return "underweight" If bmi < 25 then return "normal" If bmi < 30 then return "overweight" return "obese"