10.6. More Turtle Stamp Practice

This section provides more practice using the stamp procedure.

Mixed up program

The following program uses the stamp method to create an X of turtle shapes as shown below, but the lines are mixed up. The program should do all necessary set-up, create the turtle, set the shape to “turtle”, and pick up the pen. Stamp the blue turtles before you stamp the green ones. Drag the needed blocks of statements from the left column to the right column and put them in the right order with the correct indention. Click on Check Me to see if you are right. You will be told if any of the lines are in the wrong order or are the wrong blocks.

../_images/TurtleStampX.png

The following program uses the stamp method to create two squares of turtle shapes as shown below, but the lines are mixed up. The program should do all necessary set-up, create the turtle, set the shape to “turtle”, and pick up the pen. Draw the blue square before you draw the green one. Drag the needed blocks of statements from the left column to the right column and put them in the right order with the correct indention. Click on Check Me to see if you are right. You will be told if any of the lines are in the wrong order or are the wrong blocks.

../_images/TurtleStampDoubleSquare.png

Use the area below to try to draw a pattern using a for loop and the stamp procedure.

Before you keep reading...

Making great stuff takes time and $$. If you appreciate the book you are reading now and want to keep quality materials free for other students please consider a donation to Runestone Academy. We ask that you consider a $10 donation, but if you can give more thats great, if $10 is too much for your budget we would be happy with whatever you can afford as a show of support.

Note

Discuss topics in this section with classmates.

Show Comments
You have attempted 1 of 4 activities on this page