Create a turtle t1.
newturtle "t1 st pdFrom the origin draw a long red line at 35 degrees, as the problem asks.
rt 35 setcolor 15 fd 250Go back home, and move straight up 140 "yards".
home fd 140Create a new turtle t2, and place it were t1 is now. It will be black.
newturtle "t2 st setpos ask "t1 [pos]Now the current turtle is t2. Orient it at 106 degrees from the vertical line.
rt 180 lt 106The following line of code will start two processes simultaneously. The first one will test continually to see if the turtle has passed over a red area. The second process will move the turtle forward, trying to meet the red line at some point.
when [colorunder = 15] [show distance "t1] glide 200 1
How would you verify the answer?
You can solve other trig problems just using turtles. How about this one: