Introduction to C++ Homework Problem Set 5