Unit 2 - Variables, Repetition and Decision Structures
Textbook Chapter 4 - Variables and Repetition
Lesson on Variables
Conditional Operators
Repetition Structures Lesson
For Loops
While Loops
Pounds to Kilograms Table - pseudocode and program
Here's the pseudocode
Here's the program
Here's the GRAPHICS version of the program using fonts and variables for x and y screen coordinates
Video of the Pounds to Kilograms Table activity - please do this
Repetition Practice Practice Repetition problems 1,2,6-8,10
Pseudocode planning and solution for problem 10
Solutions
Selection / Decision Structures Lesson
Selection / Decision Practice Problems
Please work on problems 2, 3, 5,6 and 11
Practice - Create this table using a loop and graphics commands. 1 inch = 25.4 millimetres
Video - Placing Objects on the screen with Variables - please do this. START AT 0:46
Great tutorials on loops from the MASTER OF PROCESSING! Dan Shiffman!
while loops
https://www.youtube.com/watch?v=RtAPBvz6k0Y
for loops
https://www.google.com/search?q=loop+tutorials+processing&rlz=1C1AWFC_enCA838CA838&oq=loop+tutorials+processing&aqs=chrome..69i57.4069j0j4&sourceid=chrome&ie=UTF-8#kpvalbx=_YOJoYaT-OsWzggf4v7C4Bg41
nested loops
https://www.youtube.com/watch?v=H7frvcAHXps
But wait! Aren't two-counter for() loops more efficient than two single-counter for() loops?
Check this out
Lesson on Variables
Conditional Operators
Repetition Structures Lesson
For Loops
While Loops
Pounds to Kilograms Table - pseudocode and program
Here's the pseudocode
Here's the program
Here's the GRAPHICS version of the program using fonts and variables for x and y screen coordinates
Video of the Pounds to Kilograms Table activity - please do this
Repetition Practice Practice Repetition problems 1,2,6-8,10
Pseudocode planning and solution for problem 10
Solutions
Selection / Decision Structures Lesson
Selection / Decision Practice Problems
Please work on problems 2, 3, 5,6 and 11
Practice - Create this table using a loop and graphics commands. 1 inch = 25.4 millimetres
Video - Placing Objects on the screen with Variables - please do this. START AT 0:46
Great tutorials on loops from the MASTER OF PROCESSING! Dan Shiffman!
while loops
https://www.youtube.com/watch?v=RtAPBvz6k0Y
for loops
https://www.google.com/search?q=loop+tutorials+processing&rlz=1C1AWFC_enCA838CA838&oq=loop+tutorials+processing&aqs=chrome..69i57.4069j0j4&sourceid=chrome&ie=UTF-8#kpvalbx=_YOJoYaT-OsWzggf4v7C4Bg41
nested loops
https://www.youtube.com/watch?v=H7frvcAHXps
But wait! Aren't two-counter for() loops more efficient than two single-counter for() loops?
Check this out