Before:

// Compute the tax on a purchase
int main()
{
   // Variable declarations
   double cost, tax;
   char state;

   // Input the cost of purchase
   cout << "Enter the cost of purchase" << endl;
   cin >> cost;

   // Input the state where purchased
   cout << "Enter the state where purchased: 'y' for New York and 'j' for New Jersey" << endl;
   cin >> state;   

   // Compute the tax on the purchase
   if( 'y' == state )
      tax = cost * 0.06875;
   else
      tax = cost * 0.065;

   // Print the tax on the purchase
   cout << "The tax on purchase of $ " << cost 
        << " is " << tax << endl;

   return 0;
}