Exercises from Learn to Program, Chris Pines, Second Edition.