These are the exercises from Learn to Program by Chris Pine.