body mass index calculation

Body mass that asks the user for height and weight values
calculating the index
If the person is thin, it shows a photo of a thin person on the screen.
If the person is overweight, use the application that shows a photo of an overweight person on the screen.

How can I do it? can you help me?

Search this board for BMI

It has been done before.