0% found this document useful (0 votes)
26 views5 pages

Variables 9 Variables 10

This document provides instructions and exercises for learning about variables and repetition in programming. It includes videos and examples of using for loops to create patterns by drawing squares, lines, and a target. One exercise asks students to choose a section of a tapestry artwork and reproduce it using variables and for loops to practice problem-solving, pattern recognition, and programming syntax. The goal is to gain experience breaking down problems and using repetition to achieve a specific outcome.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views5 pages

Variables 9 Variables 10

This document provides instructions and exercises for learning about variables and repetition in programming. It includes videos and examples of using for loops to create patterns by drawing squares, lines, and a target. One exercise asks students to choose a section of a tapestry artwork and reproduce it using variables and for loops to practice problem-solving, pattern recognition, and programming syntax. The goal is to gain experience breaking down problems and using repetition to achieve a specific outcome.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Video 9: Variables 9.

Video 10: Variables 10.


Introduction to variables and data types.
Arithmetic, Order of operations.

Video 11: Repetition 11.


Video 12: Repetition 12.
Introduction to repetition.
Introduction to for() command.
Beginning, Limit and Increment.
Two approaches to creating the same pattern.
Suggested exercise: Draw 8 vertical 10×10 pixel squares separated equally by 20px distance using the
for() command. Then make the distance between squares to be 10 pixels now.
Suggested exercise: Draw a pattern of 8×8 squares separated by 20 pixels both vertically and horizontally.
Suggested exercise: Draw a pattern where all lines part from the upper left corner and arrive to the right
edge of the screen separated by 5 pixels vertically.
Suggested exercise: Draw a pattern where all lines arrive to the centre of the screen.
Suggested exercise: Draw a target pattern using the ellipse() and the for() commands.
Assignment 2
Choose a squared fragment from Gunta Stölzl’s Untitled – Conf 662 tapestry and reproduce it using
variables and the for command.
Why this exercise? Designing something very specific (an expected outcome) versus the happy accident.
There are different processes involved in developing this exercise: Choosing a section: decide which
section to reproduce, determining the complexity, the amount of content, forms, colour and aesthetic
factors. The final solution should be similar to the assigned artwork section, making it easy to assess the
correspondence between the original and the actual representation, this is very important for beginners;
develop strategies to achieve a goal. Understanding a system and repetition: detect patterns in the original
artwork and attempt to solve them using repetition. Devise a strategy to divide and conquer, understand
the importance of dividing the problem into sub-problems. Familiarizing the student with the
programming language syntax by repetition. Familiarize the student with researching the language
reference, learning the programming environment and finding online learning resources.

You might also like