Listing 5

    if(count != 0){
      cout << "Average = " << sum/count << endl;
    }//end if

  }//end doSomething function

Listing 5