Computer Science in Science PD: The Tutorial #7

Part 7: Draw a Flower

REMIX “Orientation – version 3” and rename it as “Orientation – version 4”. In this part of the tutorial, you will program the turtle agents to draw a flower when the user clicks the “forever” button.

  1. Click on the “Turtle” tab to switch to the “Turtle” page. The Turtle agents will run the programs you create here.

  2. Now it is your task to put the blocks together into a procedure that the turtle agents will each draw a circular flower petal when the forever button is toggled on. (A toggle is like a light switch, it is either on or off.)

  3. Let’s review what the blocks do:
    The “when toggled” block on the Turtle Page tells the turtles what to do when the “forever” button is toggled to the ON position.
    The “pen down” block tells each turtle agent to leave a trail wherever it goes.
    The “forward” block moves the agent forward.
    The “left by __degrees” block tells each turtle to turn left by some number of degrees.

  4. Try combining the blocks so that when the forever button is pushed, each of the five turtles draws a petal of the flower.
    After making changes to you program, always click “Save” to save your changes. Always click “Run Code” before running your project.

  5. Check Your Progress: Scroll back down to Spaceland, and click the “Forever” button. You should see a set of white blocks (the agents you created) drawing a flower.
    Congratulations! Your turtle agents drew a flower!
    Save your “Orientation – version 4” project in your public gallery.

Copy the URL of your “Orientation - version 4” project then paste it in the discussion area below.


This is a companion discussion topic for the original entry at http://studio.code.org/s/sciencePD/stage/11/puzzle/7

http://www.slnova.org/carrie.crawford/projects/61829/

http://www.slnova.org/dmeltsner/projects/62295/

http://www.slnova.org/SBChorba/projects/62512/

http://www.slnova.org/dbloch/projects/62334/

http://www.slnova.org/jojobean100/projects/63212/

http://www.slnova.org/edelpino/projects/64526/

http://www.slnova.org/mszscience/projects/64905/

http://www.slnova.org/casero20/projects/65009/

http://www.slnova.org/sarah.gordy/projects/65067/

http://www.slnova.org/shemerson/projects/65072/

http://www.slnova.org/dejahlm/projects/65081/

http://www.slnova.org/paugh.rebecca/projects/65173/

http://www.slnova.org/wellalan/projects/65188/

http://www.slnova.org/bhollingsworth/projects/65197/

http://www.slnova.org/Turtle$k8/projects/65223/

http://www.slnova.org/mmartz43/projects/65230/

http://www.slnova.org/jstrader11/projects/65237/

http://www.slnova.org/chris_sport/projects/65239/

http://www.slnova.org/jhurd/projects/65257/