+ 1
I would think it’s because of your bounds. The upper bounds you have done <= however since BMI is a continuous value, this may miss out a small interval. Try changing the upper bounds to < (so for normal <25 and for overweight <30)
24th Apr 2022, 4:54 PM
Kamil Hamid
Kamil Hamid - avatar
+ 1
Consider, for instance, the case that someone has an IMC of 24.99. It will not be caught by your code...
24th Apr 2022, 4:51 PM
Lisa
Lisa - avatar