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 dr awEqui l a t e r a lTr i ang l e ( int width )
{
this . turn ( 3 0 ) ;
this . forward ( width ) ;
this . turn ( 1 2 0 ) ;
this . forward ( width ) ;
this . turn ( 1 2 0 ) ;
this . forward ( width ) ;
this . turn ( 9 0 ) ;
}
```

Computer Science & Information Technology

You might also like to view...

Describe multifactor authentication and its benefits.

What will be an ideal response?

Computer Science & Information Technology

Define dispersion.

What will be an ideal response?

Computer Science & Information Technology

Which method of creating a database demands the least amount of expertise in Access?

A) Creating a custom web app B) Creating a blank desktop database C) Importing an Excel spreadsheet D) Using a template

Computer Science & Information Technology

Wireless network speed is measured in _____.

A. Bps (bits per second) B. Kbps (kilobytes per second) C. Gbps(gigabits per second) D. Tbps (terabytes per second)

Computer Science & Information Technology