CS 1025 01 - Week #11 (Mar 27-31)


Wednesday, March 29th


Assignment: Scratch in-class exercise to be done and emailed to jacobson@cs.uni.edu.

  1. About Scratch overview and video demo. Fun video is 1 minute 37 seconds long. Watch it!
    With Scratch, you can program your own 
     interactive stories, 
     games, and 
     animations 
     and share your creations with others 
     in the online community.
    Scratch helps young people learn to 
     think creatively, 
     reason systematically, 
     and work collaboratively - essential skills 
     for life in the 21st century.
    Scratch is a project of the Lifelong Kindergarten Group 
     at the MIT Media Lab. It is provided free of charge.
    

  2. Scratch and dancing cats - drawing a square with cat instead of turtle. SCRATCH.MIT.EDU

  3. Scratch Resources and links and examples.

  4. New Example created on IEE and IE: Scratchy the Cat Dancing tutorial results.

  5. Tri to use Scratchy the Cat and a Cowbell as the actors to teach triangles RIGHT: Scratch and NetLOGO turtle graphics triangle terminology
    Legs, Hypotenuses, Right Triangles, where is Waldo in Cartesian coordinated 2D space?
    Needs more cowbell, but has some at least!
    Adjacent leg, Opposite leg, and Hypotenuse of one of the acute angles or a right triangle.
    SOH, CAH, TOA acronyms... Coming soon to our NetLogo lessons.

  6. Here is a JOKE or POEM example done with Scratch. Have you heard this joke/poem before. I found it in my STANTZ22 account.

Scratch in-class exercise to be done and emailed to jacobson@cs.uni.edu.


Friday, March 24th


What is the xcor of the following turtle? 
 Use ONLY the TANGENT trig function to get the answer.
 You cannot use the Sine or the Cosine.
;; NetLOGO procedure that placed the turtle and drew the hypotenuse.
TO solveWithTangent
 ca
 cro 1
 ask turtles
 [
 pd
 set color white
 set size 2
 rt 32
 fd 14
 ]
END


;; Friday, March 31st, 2017 exercise
TO SolveWithTangent
 ca
 ask patches [ set pcolor white ]
 drawAxis
 drawLegs
 cro 1
 ask turtles
 [
 pd
 set color black
 set pen-size 3
 rt 32
 fd 14
 
 ]
END
TO drawAxis
 cro 1
 ask turtles
 [
 pd
 set pen-size 1
 fd 33
 rt 90
 fd 33
 die
 ]
END
TO drawLegs
 cro 1
 ask turtles
 [
 pd
 set pen-size 3
 set color blue
 fd cos 32 * 14 ;; COSINE 32
 rt 90
 set color red
 fd sin 32 * 14 ;; SINE 32
 die
 ]
END



AltStyle によって変換されたページ (->オリジナル) /