Complete listing of Listing 2

    while((temp < 'A') || (temp > 'Z')){
      //Outside allowable character range
      cout << "Bad input" << endl;
      cout << "Enter an upper-case letter: ";
      cin >> temp;
    }//end while loop
  
Listing 2