BMI Analyzer
You will be creating a Python program that allows for the numeric entry of a person’s Height and Weight. You will perform some calculations to determine a person’s Body Mass Index, which is an indicator of healthy weight.
Code a Python program that does the following:
1. Write out a welcome message with your name contained in the message.
2. Prompt for the person’s name that the BMI is being calculated for and store the name in a variable.
3. Prompt the user to for a person’s Height in inches. Only whole numbers should be accepted.
4. Prompt the user to for a person’s Weight in pounds. Only whole numbers should be accepted.
5. You need to do a mathematical conversion from Inches to Meters and store this in a variable data type that can store decimal point values. This new variable will contain the person’s height in Meters. The formula is: Height / 39.36
6. You need to do a mathematical conversion from Pounds to Kilograms and store this in a variable data type that can store decimal point values. This new variable will contain the person’s weight in Kilograms. The formula is: Weight / 2.2
7. Calculate the person’s BMI and store this in a variable data type that can store decimal point values. BMI and the formula is: Kilograms / ( Meters * Meters )
8. Write C++ logical statements to determine the person’s BMI finding as a String:
BMI
Underweight
BMI between 18.51 and 24.90 the finding is:
Normal
BMI between 24.91 and 29.90 the finding is:
Overweight
BMI > 29.90 the finding is:
Obese
9. For maximum points make sure you pick the best data type for each variable.
10. For maximum points make sure you code the most efficient in terms of execution Python if logical statements.
11. Make sure you use Hungarian Notation when naming the variables.
12. Make sure to include comments in your code.
13. Output the Person’s Name, calculated BMI and BMI finding.
14. Format the output to 2 decimal positions.