practice programs for the book Programming: Principles and Practice Using C++ (2nd Edition)