The body mass index (BMI) is a numerical body fat classification based on height. The computation can be performed either…