#include #include using namespace std; int main() { // Declare a variable to store the user's mood string mood; // Ask the user for their mood cout << "How are you feeling today? (happy, sad, excited, tired, etc.): "; cin >> mood; // Convert the mood to lowercase to make it case-insensitive (optional but useful) for (auto &c : mood) { c = tolower(c); } // Respond based on the specific mood entered if (mood == "happy") { cout << "Yayy! I'm glad you are happy :)." << endl; } else if (mood == "sad") { cout << "I'm sorry you feel sad. Sending virtual hugs." << endl; } else if (mood == "excited") { cout << "Oh wow! What a day to be you!" << endl; } else if (mood == "tired") { cout << "You should take a break. Maybe a nap or coffee." << endl; } else if (mood == "angry") { cout << "Take a deep breath! I'll take one with you." << endl; } else { // Default response if the mood doesn't match any of the predefined ones cout << "Hmm, I'm not sure what to say about feeling " << mood << ", but I'm here for you!" << endl; } return EXIT_SUCCESS; }