Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using the above: Determine the overall procedure that the software system must p

ID: 3891052 • Letter: U

Question

Using the above:

Determine the overall procedure that the software system must perform and list this procedure out in the form of pseudocode. This includes what information is known prior to the start of the system; what information must be acquired once the system is placed into operation; what are the detailed operations that must be performed during calculations and data processing; and what information must be provided as part of the system output. Create the system by translating each line/section of the pseudocode into python syntax.Test the system with valid data by hand-calculating several BMI values using the provided formulas.

BMI WEIGHT CATEGORIES BMI Weight Status Below 18.5 Underweight 18.5 - 24.9 Normal 25 - 29.9 Overweight 30.0 + Obese (weight in pounds x 703) BMI = height in inches

Explanation / Answer

The formula to calculate the BMI is known to the user.

We must acquire weight and height of the person from the user.

Psuedocode:

def COMPUTE_BMI():

    # enter weight

    weight = ask user to enter the weight (in pounds)

   

    # enter height

    height = ask user to enter the height (in inches)

   

    # calculate BMI

    BMI = ( weight * 703 ) / (height * height)

   

    # if BMI is Below 18.5

    if(BMI < 18.5):

        print('Underweight')

    # if BMI is between 18.5 - 24.9

    elif(BMI <= 24.9):

        print('Normal')

    # if BMI is between 25 - 29.9

    elif(BMI <= 29.9):

        print('Overweight')

    # if BMI is above 30

    else:

        print('Obese')

       

# call function

COMPUTE_BMI()

Hand Calculation:

1.

Let,

height = 168 inches

weight = 448 pounds

So, BMI = ( 448 * 703 ) / ( 168 *168 )

       BMI = 11.16

Hence, the person is Underweight.

2.

Let,

height = 147 inches

weight =402 pounds

So, BMI = ( 402 * 703 ) / ( 147 *147 )

       BMI = 13.07

Hence, the person is Underweight.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote