logo

Crowdly

Write a function called "categorise_BMI" that takes a patient ID and the patient...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Write a function called "categorise_BMI" that takes a patient ID and the patient data as inputs. 

Note that the patient data is an array that contains:

  • Column 1: IDs
  • Column 2: Heights ()
  • Column 3: Weights ()
  • Column 4: BMIs ()

The function should return a string with the BMI category that the corresponding patient fits into (i.e. either 'underweight', 'normal', 'overweight' or 'obese'). Copy and paste your function code into the textbox below.

More questions like this

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!