Write a method for Turtle to draw a pentagon. Pass in the length of the sides.

What will be an ideal response?


```
public void drawPentagon ( int width )
{
this . turn ( 3 0 ) ;
this . forward ( width ) ;
this . turn ( 7 2 ) ;
this . forward ( width ) ;
this . turn ( 7 2 ) ;
this . forward ( width ) ;
this . turn ( 7 2 ) ;
this . forward ( width ) ;
this . turn ( 7 2 ) ;
this . forward ( width ) ;
this . turn ( 7 2 ) ;
}
```

Computer Science & Information Technology

You might also like to view...

____ is a moral theory that holds that X is good exclusively because God commands it.

A. Grace Theory B. Theory of Evolution C. Almighty Arbiter Theory D. Divine Command Theory

Computer Science & Information Technology

The ________ function returns a value of TRUE only when ALL specified conditions are true

A) OR B) AND C) IF D) VLOOKUP

Computer Science & Information Technology

Which of the following will help Matt, an administrator; mitigate the risk of static electricity?

A. Lightening rods B. EMI shielding C. Humidity controls D. Temperature controls

Computer Science & Information Technology

Conditional statements use ________________, such as = =, which is used to test for equality.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology