Finished pc7.cpp. I also uploaded the accompanying text file.