Homework Help

Write a LOGO program that draws a regular hexagon with 50 units. Can you pls answer...

user profile pic

student11697 | Student, Grade 11 | (Level 1) eNoter

Posted April 26, 2013 at 12:51 PM via web

dislike 4 like

Write a LOGO program that draws a regular hexagon with 50 units.

Can you pls answer this question as well as explain how to do these type of questions if possible . 

Thanks for your help

1 Answer | Add Yours

user profile pic

t-rashmi | College Teacher | (Level 2) Associate Educator

Posted September 6, 2013 at 11:26 AM (Answer #1)

dislike 3 like

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]. 

This image has been Flagged as inappropriate Click to unflag
Image (1 of 1)

Join to answer this question

Join a community of thousands of dedicated teachers and students.

Join eNotes