I have a do while loop to keep cycling through my int main(). I did this by creating a bool called keepGoing. Now im stuck incorporating a press "q" or type "exit" to end program. 

Ive tried stuff like if (exitCon == 'quit') then exit program. But everything i try keeps displaying error messages. 

```
#include <iostream>
#include <iomanip>
#include <math.h>
#include <stdexcept>
#include <string>
#include <fstream>

using namespace std; 

//function prototypes 
double DoubleInput(string strQuestion); 
double GradePoint(double &p);

int main() 
{
    const string PCENT = "%";
    bool keepGoing = true;

    cout << "===================================================================" << endl;
    cout << "                         GPA CALCULATOOR                           " << endl;
    cout << "===================================================================" << endl;

    do{
        double input = DoubleInput("\nPlease enter your numeric grade percentage: ");

        double g = GradePoint(input);

        cout << "You entered a grade of " << input << PCENT << endl; 
        cout << input << PCENT << " is equal to " << g << " grade points" << endl;

      }while(keepGoing);   
}

```

}

this is my function for getting input by the way 

```
double DoubleInput(string strQuestion)
    {

        double doubleHolder;

        cout << strQuestion;
        cin >> doubleHolder;

        while(cin.fail())
        {

            cin.clear();
            cin.ignore(10000, '\n');
            cout << "No non-numeric inputs. Please try again!" << endl << endl;
            cout << strQuestion;
            cin >> doubleHolder;
        }

        cout << endl;
        return doubleHolder;
    }

```