C++ programming (third edition) problem program problem answer (chap09)