CS 1025 01 - Week #2 (September 3rd and 5th)



Wednesday, September 3rd


  1. Monty Hall is due by or on Friday.

  2. Introduce the Monty Hall simulation exercise. MONTY HALL game Playing the Monty Hall game with a model. Your simulation experiement will try to figure out which strategy is best - sticking with your first choice or switching to the other door.

  3. NetLOGO turtle graphics: Polygons, Sliders, Buttons: ca for clear all, repeat 4 for Squares, repeat 8 for Octagons, pd pen down, and pu for pen up, ask turtles, cro 8 versus cro howManyTurtles.
    TO Octagon
        repeat 8
        [
            fd 2
            rt 90
        ]
    END
    
    TO demoOctagons   ;; this is similar to what we did in class
                      ;; we did NOT do the ** pu ** or the ** bk 2 **
        ca            ;; they were done here so each turtle can
        cro 12        ;;      bk 2 - step back 2 steps and not 
                      ;;             not block the view of its octagon...
        ask turtles
        [
            fd 8
            pd
            
            Octagon
    
            pu    ;; we did NOT do this pu pen up and bk 2 BacK 2 steps bk 2
            bk 2  ;;                                  --   -  -     today or
                  ;;                                                  ever in class yet.
        ]
    END
    
    

Friday, September 5th


  1. MONTY HALL assignment is due today (anytime). Be sure to put Monty Hall in the SUBJECT: line of your email message to jacobson@cs.uni.edu.
      Email:  jacobson@cs.uni.edu
    
    SUBJECT: Monty Hall 
    
    Your assignment can be an attachment (PDF or Word or JPG image
               from Photoshop or from scanned in answers), 
                        or it can just be the email note of your typed in 
                                 answers to the 6 questions. 
    
  2. Today's example (and more for Monday) EVEN and ODD turtles, Sliders and Buttons. the ifelse (condition) [EVEN turtles actions] [ODD turtles actions], REMAINDER and WHO numbers.

  3. Shodor Data Flyer tool used to Plot Data. We will plot some Forest Fire simulation output again during the first week of class. This tool is much simpler to use than SPSS and Excel!

  4. Read Decentralization and Agents pages from Turtles, Termites, and Traffic Jams to prepare for week #3 class discussion.