Feb 17::
Before Class:
Read:
- more about loops
Do:
- look at modulo calculator and try a bunch of numbers to understand how modulo works
- mess around with these code examples
- make a sandbox of at least three experiments using nested for loops and if statements to create interesting patterns with shapes and color
- zip up your Processing folder or folders, label it Hw4_lastname_firstname.zip, and email to mhaughwout at cca.
- come to class with at least 2 significant problems described in your debug log.
In class:
Discuss:
- for loops, arrays
Studio time:
- repetition and conditionals combined
- array monster
- functions, object oriented programming
- work out how the computer runs this code::
-- For each new variable, add a new entry to the Computer Memory table.
-- For every change in a variable's value, update the entry in the table, legibly crossing out the old value like so: 3 4
-- For every drawing command, draw the result on the canvas. (This exercise is all monochrome.)
-- Tally (or draw a line or dot) to the left of each line as you evaluate it. (Some lines will be evaluated many times!)
-- Bring in the printed exercise sheet with you to class.
- Week 5 examples