#include #include using namespace std; const int INCHES_PER_FOOT {12}; const int FEET_PER_YARD{3}; int main() { int yards{0}, feet{0}, inches{0}; int inputInches{0}; int totalInches{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 << " Yards:" << setw(6) << yards << endl; cout << " Feet:" << setw(7) << feet << endl; cout << " Inches:" << setw(5) << inches << endl; return 0; }