Practice problems from Chris Pine's book, Learn to Program, 2e.