Elenco Snap Circuits SnapMicro ® I Standard User Manual

Page 49

Advertising
background image

48

PROJECT 11

– Checking for Errors

In the previous project a number greater than 3
would still play a song.
Add this loop to the previous flowchart;
If a number greater than 3 is entered the
message “Too Big” will be displayed.

Use simulate to check flowchart, then convert to
a basic program. Edit the basic program’s play
command to (play

b2

, 2), and then check for

program size and syntax errors. If syntax check
is successful, download the program.

What happens when a letter is entered?

Since the terminal window will not accept letters,
it is not necessary to send an error message.

Advertising