Homework is due at the beginning of class one week after it is assigned. Working on homework during class time will reduce your class participation grade. These assignments are being written as the course progresses and are subject to change up until the end of the class period for which they are assigned. The assignments should be posted here in their final form by the Friday preceeding the due date; in case of "emergency", changes to the homework will be sent to the mailing list burgiel-mtht420@math.uic.edu.
REPEAT :N [FD 60 RT :ANGLE](Hint: Your answer should be a function of the variable :ANGLE. You may assume that :ANGLE is an integer.) Is this the smallest value of :N which has this property for all values of :ANGLE?
"LOGO, as an interpretive language, can execute single commends directly. Thus,
PRINT SUM OF 2 AND 2[outputs]
4But, the most important feature of LOGO is that such commands can be incorporated in user-written procedures. The definition of any procedure results in an object which is treated just like any primitive. Thus, in a very real sense, as the user writes his own procedures, he is gradually extending the basic language to more exactly fill his needs."
Explain in your own words why it is desirable for a programmer to "extend the basic language" in which she or he is programming. Feel free to discuss the quotation above with your classmates!
; Contributed by William Stenzel, 1/28/99
if I take something out of the freezer in the morning
eat that for dinner
else
if Julie has class
if I go running after work
eat pasta
else
eat leftovers
else
if we go to the health club
eat pasta
else
order pizza
A typical lecture plan might look like:
This project uses LOGO to enforce students' ability to measure angles
and distances.
Materials needed: pencil, graph paper, protractors, computer, LOGO
This problem is not stated precisely; you will have to interpret the question and make some decisions before you can answer it completely. What decisions did you make about how the turtle would wrap around? What decisions did you make about the circle? What decisions did you make about initial turtle positions outside of the circle?