S
ShakeN'Bake
Here is some code I found:
import apcslib.*;
public class DrawHouse
{
public static void main(String[] args)
{
DrawingTool pencil;
SketchPad paper;
paper= new SketchPad(500, 500);
pencil= new DrawingTool(paper);
pencil.turnLeft(90);
pencil.forward(50);
pencil.turnLeft(90);
pencil.forward(150);
pencil.turnLeft(90);
pencil.forward(100);
pencil.turnLeft(90);
pencil.forward(150);
pencil.turnLeft(90);
pencil.forward(100);
pencil.turnLeft(90);
pencil.forward(150);
pencil.turnLeft(90);
pencil.forward(250);
pencil.turnLeft(90);
pencil.forward(300);
pencil.turnLeft(90);
pencil.forward(400);
pencil.turnLeft(90);
pencil.forward(300);
pencil.turnLeft(90);
pencil.forward(400);
pencil.turnLeft(90);
pencil.forward(300);
pencil.turnLeft(75.964);
pencil.forward(206.155);
pencil.turnLeft(28.032);
pencil.forward(206.155);
}
}
I don't understand why there are decimal points in the last, third to
last, and fourth to last answers. Can someone please explain them to
me??
import apcslib.*;
public class DrawHouse
{
public static void main(String[] args)
{
DrawingTool pencil;
SketchPad paper;
paper= new SketchPad(500, 500);
pencil= new DrawingTool(paper);
pencil.turnLeft(90);
pencil.forward(50);
pencil.turnLeft(90);
pencil.forward(150);
pencil.turnLeft(90);
pencil.forward(100);
pencil.turnLeft(90);
pencil.forward(150);
pencil.turnLeft(90);
pencil.forward(100);
pencil.turnLeft(90);
pencil.forward(150);
pencil.turnLeft(90);
pencil.forward(250);
pencil.turnLeft(90);
pencil.forward(300);
pencil.turnLeft(90);
pencil.forward(400);
pencil.turnLeft(90);
pencil.forward(300);
pencil.turnLeft(90);
pencil.forward(400);
pencil.turnLeft(90);
pencil.forward(300);
pencil.turnLeft(75.964);
pencil.forward(206.155);
pencil.turnLeft(28.032);
pencil.forward(206.155);
}
}
I don't understand why there are decimal points in the last, third to
last, and fourth to last answers. Can someone please explain them to
me??