►Describe how the turtle will travel in a square.►Describe how the turtle will travel in a square.
►Program Code:►Program Code:
//draw side one//draw side one
ourTurtle.forward(100);ourTurtle.forward(100);
// turn 90 deg counterclockwise// turn 90 deg counterclockwise
ourTurtle.turnLeft();ourTurtle.turnLeft();
// draw side two// draw side two
ourTurtle.forward(100);ourTurtle.forward(100);
// turn 90 deg counterclockwise// turn 90 deg counterclockwise
ourTurtle.turnLeft();ourTurtle.turnLeft();
// draw side three// draw side three
ourTurtle.forward(100);ourTurtle.forward(100);
//turn 90 degrees counterclockwise//turn 90 degrees counterclockwise
ourTurtle.turnLeft();ourTurtle.turnLeft();
// draw side four// draw side four
ourTurtle.forward(100);ourTurtle.forward(100);