Finished CppProb1S1.cpp