Bayagkugan
Eternal Poster
- Joined
- Oct 8, 2015
- Posts
- 999
- Reaction
- 170
- Points
- 300
- Age
- 25
Choose your partner and write a program that accepts the height (m) and weight (Kg) of a person. Compute for the Body Mass Index (BMI) using the formula:
BMI = weight ÷ height²
Ask if the person is Asian or not. Using the computed BMI, determine his/her nutritional status based on "Asian criteria" if he/she is an asian, otherwise, use the "WHO criteria" as presented in the picture.
Sample output:
Enter height (m): 1.64
Enter weight (Kg): 60
Your BMI is 22.31.
Are you Asian (y/n)? y
You are normal. Ty po sa tutulong
BMI = weight ÷ height²
Ask if the person is Asian or not. Using the computed BMI, determine his/her nutritional status based on "Asian criteria" if he/she is an asian, otherwise, use the "WHO criteria" as presented in the picture.
Sample output:
Enter height (m): 1.64
Enter weight (Kg): 60
Your BMI is 22.31.
Are you Asian (y/n)? y
You are normal. Ty po sa tutulong