The purpose of the project is to demonstrate Probability & Logic Tree to school students. The design consists of 3 buttons (START, YES, NO) & LEDs.
When START is pressed LED in front of the 1st question will glow. Answer of the question is YES or NO. So based on the button pressed next LED will glow in front of the next question which is again YES/NO type.
For example (see the attached image)
Let this be a number guessing game. Students are asked to guess a number between 1 & 10. So when START is pressed the LED1 will glow & besides the LED1 question is asked 'Is your number less than 5?' If answer is yes then YES button is pressed & then LED2 will glow (else LED3 will glow). So next question in front of LED2 is 'Is your number less than 3?'. If YES then LED4 will glow, if NO is pressed then LED5 will glow.
This will continue until the final answer is obtained. Note that as we proceed further the previous LEDs which were ON will still remain ON until the final step & will OFF only when START is pressed again (so that the entire branch is lit which reaches the answer).
I am having difficulties developing code(in ADE, using C) for this project. I don't have any clue what should be my approach to this problem. Any help/suggestions/advice will be helpful.