0% found this document useful (0 votes)
636 views3 pages

Flow 1

This pseudocode defines a program to calculate body mass index (BMI) by first displaying prompts for the user to enter their weight and height, then calling a calculateBMI module that calculates BMI as weight in kilograms multiplied by 703 and divided by height in meters squared, and finally displaying the result to the user. The flow chart shows the main and calculateBMI modules and input/output steps to calculate and output a user's BMI.

Uploaded by

Muhammad Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
636 views3 pages

Flow 1

This pseudocode defines a program to calculate body mass index (BMI) by first displaying prompts for the user to enter their weight and height, then calling a calculateBMI module that calculates BMI as weight in kilograms multiplied by 703 and divided by height in meters squared, and finally displaying the result to the user. The flow chart shows the main and calculateBMI modules and input/output steps to calculate and output a user's BMI.

Uploaded by

Muhammad Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Pseudocode For BMI:

Module main()
   Display "Enter weight and height below to their respective
locations"
   Display "to find out you body mass index (BMI)."
   Display "Enter your weight below."
   Input weight
   Display "enter your height below."
   Input height
   Call calculateBMI()
End Module
 
Module calculateBMI()
   Set BMI = weight * 703 / height^2
   Display "Your BMI is ", BMI
End Module

Flow Chart Of BMI:

Main()

Display "Enter weight and height


below to their respective
locations"

Display " to find out you body


mass index (BMI)."
Display “Enter your weight”

Input Weight

Display “Enter your height”

Input height

calculateBMI()

End
CalculateBMI()

BMI = weight * 703 /


height^2

   Display "You
r BMI is ", BMI

END

You might also like