Learn To Program problems.

Code from Chris Pine's Learn To Program book's end-of-chapter problems.