I'm a newbie C++ programmer. I've written a basic emotion checker that reacts based on your reply that gets fetched from an array. I'm wondering how to make it so that the replies work in both upper and lower case when typed in? E.g. when the user types in "happy" or "Happy" both would work. I've read about switch statements and toupper/tolower but I'm lost on how to implement these for my code. Here it is:

```
// Array of emotions

string positive[] = {"happy", "pleased", "joyful", "excited", "content", "cheerful", "satisfied", "positive"};
string negative[] = {"unhappy", "sad", "depressed", "gloomy", "down", "glum", "despair", "negative"};

string reply;

cout << "Please state your current emotions." << endl;
cin >> reply;

for (int i = 0; i < 10; i++)

if (reply == positive[i])
{
        cout << "I am glad to hear that!" << endl;
}

else if (reply == negative[i])
{
    cout << "I am sorry to hear that." << endl;
}

```