Programming Challenge 1 code (pc1.cpp)