I'm not particularly sure of your capabilities; but you can attempt what I recently finished:
Console program:
Things Todo:
- Ask user for Date of Birth (MM / DD / YYYY) and store it into variables
- Ask user for current date (Or, if you know how [I didn't] request the current date from a user's system)
- Calculate the user's age using the Month, Day of the Month, and Year they were born, and comparing it to the current date.
- Output the user's age, and request confirmation via "yes" from the user (Be careful here; I'll explain more in a code snip at the bottom)
- After confirming the age, give a final output statement
When I tried asking a user if the age was correct via "yes" or "no", I wanted to make sure the program wouldn't fail the confirmation if the user typed "Yes" rather than my request: "yes" or "no"
To solve this, I had to give an arm and leg to find out what was required to convert a string to all lowercase letters. It's not particularly easy.
Initially; I had this statement:
if((answer == "yes") || (answer == "Yes") || (answer == "YES"))
{
//insert whatever you wish here// ex: cout << "Whew! What a relief! My program is a success! << endl;
}
Howerver, it was suggested to just convert the string to lowercase and test it once. Not as simple as one would wish.
If you are too inexperienced to complete this, or don't have an idea; feel free to glance at my version for help.
http://codepad.org/pWCQcrX8