Create a World object and a Turtle object and use the Turtle object to draw a pyramid.

What will be an ideal response?


```
public void drawPyramid ( )
{
this . drawRectangle ( 1 0 0 , 5 0 ) ;
this . penUp ( ) ;
this . turnRight ( ) ;
this . forward ( 1 0 0 ) ;
this . penDown ( ) ;
this . turnLe f t ( ) ;
this . drawRectangle ( 1 0 0 , 5 0 ) ;
this . penUp ( ) ;
this . forward ( 5 0 ) ;
this . penDown ( ) ;
this . drawRectangle ( 1 0 0 , 5 0 ) ;
this . penUp ( ) ;
this . turnRight ( ) ;
this . forward ( 1 0 0 ) ;
this . turnRight ( ) ;
this . forward ( 5 0 ) ;
this . turn ( 1 8 0 ) ;
this . penDown ( ) ;
this . drawRectangle ( 1 0 0 , 5 0 ) ;
}
```

Computer Science & Information Technology

You might also like to view...

After declaring a StreamReader variable, you can use the ____ method to open a sequential access file for input, which automatically creates a StreamReader object.

A. ReadText B. InputText C. GetText D. OpenText

Computer Science & Information Technology

This can be used to display the IP ports currently open on the Windows operating system.

What will be an ideal response?

Computer Science & Information Technology

If you create a jump line and it just isn’t working, what might be the problem?

What will be an ideal response?

Computer Science & Information Technology

Slide ________ are motion effects that occur in Slide Show view when you move from one slide to the next during a presentation

A) styles B) animations C) effects D) transitions

Computer Science & Information Technology