C++ programs required for CMPE 126