Complete listing of Listing 3

    //Good input, display msg and terminate.
    cout << "Thanks for the " << temp << endl;

  }//end doSomething function
  
Listing 3