Design a modular program that calculates and displays a person's body mass index (BMI). BMI is often used to determine whether a person with a sedentary lifestyle is overweight or underweight for his or her height. A person's BMI is calculated with the following formula:
BMI = Weight x 703 / Height^2
You must write your algorithms using modules. Your first module must be the Main Module. Recommended other modules would be:
- getWeight
- getHeight
- calcBMI
- displayBMI
You will need to determine what variables will need to be passed as arguments to the modules and whether they are passed by value or by reference.
Create the program using pseudocode, then create a Raptor flowchart.