Chapter 10 drills (Programming Principles and Practice Using C++)