Ch 4 logical structures in alice

2,012 views
1,790 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,012
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  • The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  • The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  • The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  • Ch 4 logical structures in alice

    1. 1. Logic Structures in Alice
    2. 2. Logic and Control Tiles Logic and control tiles are located at the bottom of the editor area
    3. 3. Logic and control tiles
    4. 4. If/Else Loop While
    5. 5. Logic and Control Tiles
    6. 6. If/Else Tile <ul><li>A blank If/Else tile has a place for a true or false condition, and places for two instructions or sets of instructions. </li></ul>
    7. 7. If/Else: Binary Bypass A binary bypass has no instruction after the word Else.
    8. 8. If/Else: Binary Choice A binary choice has an instruction after the word If and after the word Else.
    9. 9. The Loop Tile The Loop tile is used for simple count controlled loops.
    10. 10. The Loop Tile The complicated view of the Loop tile provides access to the loop control variable, called the index.
    11. 11. The Loop Tile It can then be used inside instruction tiles in the body of the loop. In this example, the height the Cheshire Cat jumps will be equal to the index.
    12. 12. The While Tile A blank While tile has a place for a true or false condition, and a place for an instruction or set of instructions to be repeated.
    13. 13. The While Tile <ul><li>The While tile can be used for sentinel loops that are not count-controlled. </li></ul><ul><li>Here the loop will continue until the skater is within 3 meters of the flagpole. </li></ul>
    14. 14. The While Tile <ul><li>The while tile can also be used to build count-controlled loops. </li></ul>

    ×