Write a method for Turtle to draw an equilateral triangle. Pass in the length of the sides.

What will be an ideal response?

```
public void drawEquilateralTriangle (int width)
{
this . turn ( 30 ) ;
this . forward ( width ) ;
this . turn ( 120 ) ;
this . forward ( width ) ;
this . turn ( 120 ) ;
this . forward ( width ) ;
this . turn ( 90 ) ;
}
```

Computer Science & Information Technology

You might also like to view...

A form that uses a single form layout displays only one record at a time

Indicate whether the statement is true or false

Computer Science & Information Technology

One of the advantages of off-the-shelf software is that ________________.

A. an organization does not have to pay for features that are not required and never used B. ?the software always matches current work processesand data standards C. the initial cost is lower because the software firm can spread the development costs over many customers D. the software contains important features, thuseliminating the need for future modificationand customization

Computer Science & Information Technology