-
Continue to work on Lab 1: Introduction to Processing.
- This lab is due Wed at midnight.
- In class, discuss how to submit assignments on WISE.
Begin Lab 2: Repetition, Looping, and Making Choices .
-
Programming Elements for this Week
- See Readings in Lab 2
- Expressions (value) vs Statements (complete sentences, end with semi-colon)
- Variables
- Variable Declaration
- Variable Assignment
- In Processing reference - look under Data, primitive
- Examples: int, float, double, boolean
- Arithmetic (+, -, *, /, %) and the assignment statement (=)
- Loops:
- In Processing reference - look under Control, for, while
- Loop types: for, while, nested
- Making Choices - Conditional expressions
- "if" statement and the "if-else" statement
- Comparison operators: <, >, <=, >=, !=
- boolean operators: AND (&&), OR (||), NOT (!)
- In Processing reference - look under Control, relational Operators
- Random numbers
- In Processing reference - look under Math, random
- random, randomSeed
- Other: Interaction - setup/draw, map function
Don't forget Design Elements and Design Principles.
-
Relationship between design and programming