so I'm learning programming and I understand variables, if else statements, cin and cout. So for a starter project I'm just creating a console application that asks the user questions, such as age, location etc. One of them I would like just a simple yes or no answer. I've managed to do this, but what the user inputs must be the same case as the word in the if statement. i.e. if statement contains "Yes" with a capital 'Y'. If the user inputs "yes" without a capital 'Y' then the program fails.
The if statement sees if it is a "Yes", if it is, provides positive feedback. If "No", then it provides negative feedback.
How can I make it no matter whether the answer is "YES", "yes" or even "YeS"?