#include #include using namespace std; int main() { int count[11]; // make sure to initialize all entries for (int i=0; i<=10; i++) count[i] = 0; // read the data from the user until invalid entry reached int score; cout << "Please enter a series of scores, each of which should be between 0 and 10." << endl; cout << "Values out of range will be ignored; End of data should be signified with cntr-D" << endl; while (cin >> score) { if (score>=0 && score<=10) count[score]++; else cout << "---- " << score << " ignored ----" << endl; } // generate the histogram for (int i=0; i<11; i++) { cout << setw(2) << i << " : "; // print lefthand label for (int stars=0; stars