- Labs
-
Programming Elements for this Week
- See Readings in Lab 2
- Terminology
- function and parameter
- Variable
- Variable Type
- Examples: int, float, double, boolean
- In Processing reference - look under Data, primitive
- Variable Declaration
- Variable Assignment
- Assignment Statement
- Expressions (value) vs Statements (complete sentences, end with semi-colon)
- Arithmetic (+, -, *, /, %) and the assignment statement (=)
- Loops:
- Looping through time using setup() and draw()
- 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
General References on Design:
-
Relationship between design and programming