#include using namespace std; const int INCHES_PER_FOOT {12}; const int FEET_PER_YARD {3}; int main() { int inputInches{0}, computedInches{0}; int inches{0}, feet{0}, yards{0}; cout <<"Please enter a measurement in inches: "; cin >> inputInches; cout << inputInches << " inches is the same as:" << endl; inches = inputInches % INCHES_PER_FOOT; feet = inputInches / INCHES_PER_FOOT; yards = feet / FEET_PER_YARD; feet = feet % FEET_PER_YARD; cout << "\tYards: " << yards << endl; cout << "\tFeet: " << feet << endl; cout << "\tInches: " << inches << endl; computedInches = inches; computedInches += feet * INCHES_PER_FOOT; computedInches += yards * FEET_PER_YARD * INCHES_PER_FOOT; return 0; }