C++ programming assignment solutions