Final exam review Fall2007:Turtle Initial
Help your fellow students here!
Back to Final Review-Fall 2007
so when you create a turtle, what direction does it face?
if your letter is S:
for (int i=0;i5;i++){
if (i3)
jenny.turn(-90);
else
jenny.turn(90);
jenny.forward(40);}
it did not copy the (less than) above....
If an A:
jenny.turn(45);
jenny.forward(100);
jenny.turn(90);
jenny.forward(100);
jenny.penUp();
jenny.backward(50);
jenny.penDown();
jenny.turn(135);
jenny.forward(70);
If a M:
jenny.forward(100);
jenny.turn(135);
jenny.forward(100);
jenny.turn(-90);
jenny.forward(100);
jenny.turn(135);
jenny.forward(100);
the turtle face the top of the page initially. and if you do jenny.turn(90); it will turn right.
can anyone explain why the problem uses 'if (i 20) jenny.turn(20)' 20 here?
Link to this Page