lec07-ReturningValuesFromFunctions-after.pdf

Using loops in a method write a method that draws a

Info icon This preview shows pages 9–16. Sign up to view the full content.

View Full Document Right Arrow Icon
Using loops in a method Write a method that draws a given number of "steps" of a particular size. World w = new World(400, 400); Turtle t = new Turtle(10, 400, w); t.drawSteps(10, 15); step size number of steps
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Using loops in a method Write a method that draws a given number of "steps" of a particular size. World w = new World(400, 400); Turtle t = new Turtle(10, 400, w); t.drawSteps(10, 15); step size number of steps
Image of page 10