CS 1025 01 - Week #10 (Oct 27, 29, 31)



Monday, October 27th


    1. Alfred Hitchcock's 1963 movie: The Birds. Luckily there are hardly any phone booths left these days now that cell phones are everywhere! The Birds was the JAWS of the 60s, perhaps.

    2. NetLOGO Mushrooms model is due on Friday, Oct 31, Halloween.

      Questions on the MUSHROOMS model assignment are due on FRIDAY too.

      I prefer you turn in a hard copy of your answers to the questions about the experiments and the model changes and results.
      Note: - pen or pencil hand-written or word processed printout, either one is okay.)

      You do NOT have to send all the .nlogo models. Just send ONE .nlogo model as an attachment to jacobson@cs.uni.edu.

      Help on the TURNING with the MUSHROOM Hunting NetLOGO model.

      Mushroom season: Turn! Turn! Turn! with the Byrds (Not Hitchcock's The Birds).

    3. Review concepts and skills related to the MUSHROOM hunting assignment. It is due on FRIDAY Oct 31st.

    4. What does the RANDOM expression do in NetLOGO/
      random             <------ From NetLOGO Help menu > Dictionary command
                                 random is in the Math Category.
                                 Categories: Math
      random number
      
      If number is positive, reports a random integer greater than or equal to 0, 
                                                   but strictly less than number.
      
      show random 3
      ;; prints 0, 1,  or 2           0 <= random 3 < 3 means 0, 1 or 2 is result.
      
      show random 6                   0, 1, 2, 3, 4, or 5 is the output or result.
      
      show (random 6) + 1             1, 2, 3, 4, 5, or 6 is the result. 
      
      show random 21                 0,  1,  2, 3, ..., 18, 19, or 20 is the result.
      
      show (random 21) - 10        -10, -9, -8, ..., -1, 0, 1, 2, ..., 9, or 10
                                                                     is the result.
      
    5. What color is a patch that represents a MUSHROOM? When do the mushrooms get created? Which procedure, SETUP or GO?

    6. What color does a patch change to if the mushroom hunter (our NetLOGO turtle) finds it and eats it?
      What is the statement that causes the turtle to detect it has found a mushroom?
        
      What is the statement that resets the time when the turtle has just found a mushroom?
      
    7. What does the n-of do? Note: There are two different "ask n-of" statements in the code.
      n-of       <---------- From the Help menu > Dictionary
                             Easiest to find by searching the letter "N" group of Netlogo commands.
      n-of size agentset
      
      From an agentset, reports an agentset of size size 
                        randomly chosen from the input set, with no repeats.
      
                        Turtles are AGENTS.  cro 16 creates an AGENTSET of
                                                 16 turtles, i.e. a SET of 16 turtle AGENTS.
                         The patches are considered AGENTS here too,
                                     although they do not move.  They can change!
      
      ask n-of 50 patches [ set pcolor green ]
      ;; 50 randomly chosen patches turn green
      
    8. Alfred Hitchcock's 1963 movie: The Birds. Luckily there are hardly any phone booths left these days now that cell phones are everywhere! The Birds was the JAWS of the 60s, perhaps.

    Wednesday, October 29th


      1. Snow Falling and Chimney Smoking - Adobe After Effects.

      2. Smoke effect in Adobe After Effects via a Wiggle() Expression.


      Friday, October 31st


      1. NetLOGO Mushrooms model is due TODAY. Halloween.

        Questions on the MUSHROOMS model assignment are due today.

        Help on the TURNING with the MUSHROOM Hunting NetLOGO model.