1.
There are errors in the indention in the following code. Fix it to work correctly without errors.
hexagon
that has a turtle’s name as its parameter. Your procedure should draw a hexagon (6 sides) where each side has a length of 50. The turtle should end up in its original position and facing. Remember the turns required (exterior angles) for a regular shape are hexagon
procedure just once. When you are done, uncomment the code at the bottom of the program to draw 5 more hexagons.colorRectangle(turtleName, width, colorValue)
.width
and a height of 100. The turtle should be told to draw with a color
specified by the parameter colorValue
. The turtle should end up in its original position and facing.pendown
and color
at the beginning of the procedure and then do penup
at the end of the procedure.