#include using namespace std; // This assignment is worth 5 points. // -1 if code does not utilize const for conversion values. // -1 if inches and weight input goes to int. Feet input is allowed as integer // only because inches input takes the place of decimals for that value. double ft, in, lbs; double height, weight, bmi; const double in_cm = 2.54; const double kg_lbs = 2.20462; const int ft_in = 12; const int m_cm = 100; int main() { cout << "Enter height (ft. in.): "; cin >> ft >> in; cout << "Enter weight (lbs.): "; cin >> lbs; height = in_cm*(ft*ft_in + in)/m_cm; weight = lbs/kg_lbs; bmi = weight/(height*height); cout << "Height is " << height << "m. Weight is " << weight << "kg." << endl; cout << "The BMI is " << bmi << '.' << endl; return 0; }