logo

Crowdly

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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.

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на learning.monash.edu?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!