Write the pseudocode using modules and show how your module will be called for the following example: BMI is often used to determine whether a person is overweight or underweight based on height and...

1 answer below »

Write the pseudocode using modules and show how your module will be called for the following example:


BMI is often used to determine whether a person is overweight or underweight based on height and weight. The calculation uses the following formula:



BMI = 703 x (weight / (height2))



Design a program that calculates and displays a person's body mass index (BMI).


Your submission must include:



  • Pseudo code for the entire program.

  • Internal documentation, using block and/or line comments.

  • You must declare all variables before using them in your pseudo code. Don't forget that variables are just names. You need to assign values to variables. For example:
    Set price = 20
    Or
    Set dollars = 2.75

  • Your pseudo code must illustrate all calculations and modules called.

Answered Same DayApr 28, 2021

Answer To: Write the pseudocode using modules and show how your module will be called for the following...

Aditya answered on Apr 29 2021
150 Votes
Pseudo Code
Main.py
import the BMI module
declare height, weight and body mass index as 0.0
Take
height and weight from the user
call the CalculateBMI(height,weight) function from the BMI module and store the value return by it in a variable named body_mass_index
print the body_mass_index
BMI.py
Declare a function named CalculateBmi having two parameter as height and weight
calculate the BMI using the...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here