3 ms·
1. Start with a database of popular names, like might be found in a baby name book. 2. Ask the user to input the name to be guessed. 3. Lookup the name in the
by Scott_MacGregor 17y ago
1. Start with a database of popular names, like might be found in a baby name book.
2. Ask the user to input the name to be guessed.
3. Lookup the name in the database. If the name supplied by the user is not in the database, add the name to the database.
4. After the name lookup or insertion in the database perform a guess as to the sex of the name based on the data from the baby name book and weighted by previous user corrections for that name.
5. Print the guess to the screen (male or female) for the user to verify.
6. Ask the user to input if the guess is correct or incorrect.
7. Store the users input regarding if the guess is correct or not linked to that particular name to improve the future accuracy of the guess on that particular name.
- amarcus 17y agoThat's exactly how i've got it now...it looks like it might be the best solution...Thanks Scott :)