Complete solutions for programming exercises.