Sometimes you might find that Edison isn’t doing what you wanted it to do. A major part of programming is problem solving and finding and fixing errors! Before you blame Edison, check for human error.
Look at the following code which uses three different conditional statements:
Can you help me to understand this code? When I get the program running I think that I should be able to press the round button to get the robot to stop moving and then beep but it’s not working. I also tried pressing the triangle button twice and then the round button to see if that would work but my Edison just keep spinning. Can you help me figure out what I’m doing wrong? (Adapted from [1 p. 130].)