Download the code scaffold file and save a copy as
unit_conversion.cpp. Only change lines 14 and 15 so that the program compiles and produces the following sample output (when input is as indicated with red text):
Enter the number of inches: 12
That is 1 feet and 0 inches.
Enter the number of inches: 34
That is 2 feet and 10 inches.
Enter the number of inches: 8
That is 0 feet and 8 inches.
If you are annoyed by "1 feet", don't sweat it. I would be too. Soon we will acquire conditional statements, the mechanism by which programs can decide between several alternatives based on input (or other attributes of program state).