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