This was one of my first projects.
Choose a fruit, answer some questions and the fruit in your mind is shown before you!
Umm....
Oh yes, this is the explanation.
So, what happens is pretty magical. It's a secret cos it's magic, okay? Don't tell anyone! Soo, the project takes input from the users as answers to the questions asked. So, the first question will be... "Is your fruit here?" "Apple, Pineapple, Mango". If you say yes, it will add a one to the code. Wait, what? I didn't mention that there's a code?? Honestly, I thought I did. So, anyway there's a code of 1's and 0's. If you say no, it will add a zero to the code. Then the code is compared to a list of pre-prepared codes for each of the fruits. Each fruit has its own unique code. The one that the user's code matches to is the correct fruit!