c++ program for completing quiz2