// // Program to test "height_convert_1" function. // #include #include // "height_convert_1" function. // Pre: "ft" and "in" are both non-negative. // Post: Returns number of inches in "ft" feet and "in" inches. int height_convert_1(int ft, int in) { return 12*ft + in; } int main(void) { int a, b; cout << "Enter two non-negative integers " << "representing height in feet and inches:\n"; cin >> a >> b; cout << a << " feet and " << b << " inches is " << height_convert_1(a,b) << " inches\n"; return EXIT_SUCCESS; }