#include #include using namespace std; int main () { int points {0}; int games {0}; cout << "How many points socred in total?\n"; cin >> points; if (!cin){ cerr << "Sorry, that is not a whole number.\n"; return EXIT_FAILURE; } cout << "How many games were played in?\n"; cin >> games; if (!cin){ cerr << "Sorry, that is not a whole number.\n"; return EXIT_FAILURE; } const int average {points / games}; cout << "You are averaging " << average << " points per game\n"; return EXIT_SUCCESS; }