Write a program that checks if someone’s BMI (Body Mass Index) is within a normal range. A BMI is considered optimal if it is between 18.5 and 25. BMI is calculated with the formulas:
BMI (imperial) = weight (in lbs) x 703/height2 (in inches)
Or
BMI (metric) = weight (in kilograms)/ height2 (in meters)
When prompting the user for input, give him/her the choice of doing it in imperial or metric. For imperial measure, give the user the choice of doing it in feet and inches. The response to the user should tell them what their BMI is and whether it is normal, below normal or above normal.
1
Expert's answer
2012-10-26T11:02:34-0400
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Comments
Leave a comment