public static void main(String[] args)
{
World earth = new World();
Turtle t1 = new Turtle(earth);
t1.penUp();
t1.moveTo(50,50);
t1.penDown();
t1.setPenWidth(5);
t1.drawLetterN(5.0);
t1.penUp();
t1.moveTo(500,400);
t1.penDown();
t1.setPenWidth(3);
t1.drawLetterN(2.0);
t1.penUp();
t1.moveTo(330,50);
t1.penDown();
t1.setPenWidth(15);
t1.drawLetterN(15.0);
t1.penUp();
t1.moveTo(250,240);
t1.penDown();
t1.setPenWidth(8);
t1.drawLetterN(7.0);
t1.penUp();
t1.moveTo(10,350);
t1.penDown();
t1.setPenWidth(10);
t1.drawLetterN(10.0);
}
public void drawLetterN (double scale)
{
System.out.println("drawLetterN was called");
this.setColor(new java.awt.Color(255, 0, 0));
this.turn(180);
this.forward( (int) (100 * scale));
this.turn(180);
this.forward( (int) (100 * scale));
this.setColor(new java.awt.Color(255, 200, 0));
this.turn(135);
this.forward( (int) (100 * scale));
this.setColor(new java.awt.Color(255, 255, 0));
this.turn(225);
this.forward( (int) (100 * scale));
}
}
im getting an error java:71: cannot find symbol
symbol : method drawLetterN(double)
location: class Turtle
what do i do?