Better Students Ask More Questions.
Write a LOGO program that draws a regular hexagon with 50 units. Can you pls answer...
1 Answer | add yours
The code would be repeat 6[fd 50 rt 60]. It is important to first analyze how many times do you want to repeat the statement to form your desired figure. Since it is a hexagon, the statements must be repeated 6 times. Now comes the important part. fd 50 is obvious as it is mentioned in the question. The part that is confusing is the value of the angle to be input. Most of them would try to put rt 120 as every interior angle of a hexagon is 120 degrees and end up with a triangle. But we must understand here that the angle is in reference to the pointing of the turtle and not to the line that we have just drawn. We are drawing the figure from outside, not inside. Though these may seem the same, the difference comes when we are stating the angle. Please refer to the image with the answer as I believe that it is the angle values that you are having trouble with.
CODE is repeat 6[fd 10 rt 60].
Posted by t-rashmi on September 6, 2013 at 11:26 AM (Answer #1)
Join to answer this question
Join a community of thousands of dedicated teachers and students.