Update programAssign2A.cpp