/* This program allows a user to retrieve information about a
   given rock.

   Receive: The name of a rock.
   Output: The known information about that rock.
------------------------------------------------------------------*/

#include <iostream.h>

#include "Rock.h"   // various Rock-related types and functions

int main(void)
{
   cout << "\nThis program provides information about "
        << "specific rocks.\n";

   RockName
      Rock;         // the rock about which information is needed
   char
      Response;     // loop-control (query) variable

   do
   {
      cout << "\nEnter the name of a rock: ";
      cin >> Rock;

      cout << endl << Rock
           << " is classified as a(n) " << Kind(Rock)
           << " rock, and\n its texture is " << Texture(Rock) << ".\n";

      cout << "\nEnter 'c' to continue, anything else to quit: ";
      cin >> Response;
   }
   while (Response == 'c');

   return 0;
}

