Chapter 3 Programming Exercises