Listing 3

  void doSomething(){
    int count = 0;
    double sum = 0;

    cout << "Enter a grade or -1 to quit." << endl;
    //Do a priming read
    double temp = 0;
    cin >> temp;

Listing 3