Body Mass Index (BMI) is the measure of the total body fat. It estimates weight in relation to a person's…