Difference between revisions of "Turtle art lesson 5"

From Karnataka Open Educational Resources
Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 18: Line 18:
 
3.Note that the values are stored in variables “box 1” and is transferred between actions.  The variables can also pass value from main code to the action sequence<br>
 
3.Note that the values are stored in variables “box 1” and is transferred between actions.  The variables can also pass value from main code to the action sequence<br>
 
4.Tracing a circle of a given angle and a given radius <br>
 
4.Tracing a circle of a given angle and a given radius <br>
[[File:1..png|300px]][[File:2..png|500px]]<br>
+
[[File:action as a sequence 1.png|600px]][[File:action as a sequence 2.png|600px]]<br>
 
Note that there are two print commands; only the latest one is captured in this screeshot.<br>
 
Note that there are two print commands; only the latest one is captured in this screeshot.<br>
 
|-
 
|-
Line 29: Line 29:
 
5.What is the relation, if any, between the number of times the instruction is repeated and the shape traced by the turtle<br>
 
5.What is the relation, if any, between the number of times the instruction is repeated and the shape traced by the turtle<br>
 
'''Activity #1''' <br>
 
'''Activity #1''' <br>
[[File:3..jpg|300px]]<br>
+
[[File:action as a sequence 3.jpg|400px]]<br>
 
[[File:4..jpg|300px]]<br>
 
[[File:4..jpg|300px]]<br>
 
'''Activity #2'''<br>
 
'''Activity #2'''<br>
 
See the picture here:<br>
 
See the picture here:<br>
[[File:5..png|200px]]<br>
+
[[File:action as a sequence red.png|300px]]<br>
[[File:6..png|300px]][[File:7..png|300px]]
+
[[File:6..png|350px]][[File:7..png|350px]]
 
|-
 
|-
 
|Portfolio components
 
|Portfolio components
Line 40: Line 40:
 
Two Turtle constructions are given here for the students to decode the instructions <br>
 
Two Turtle constructions are given here for the students to decode the instructions <br>
 
Figure 1 <br>
 
Figure 1 <br>
[[File:8..jpg|300px]][[File:9..jpg|480px]]<br>
+
[[File:8..jpg|260px]][[File:9..jpg|500px]]<br>
 
Figure 2 <br>
 
Figure 2 <br>
 
[[File:10..jpg|275px]][[File:11..jpg|590px]]
 
[[File:10..jpg|275px]][[File:11..jpg|590px]]
 +
 +
[[Category:Turtle Art]]

Latest revision as of 09:13, 6 January 2020

Week 5 Creating action sequences and patterns based on defined actions.
Objectives
  1. Combining input parameters, action sequences and evaluating conditions to make Turtle move
  2. Calling a function (Action)
  3. Passing values (for parameters) to function
  4. Familiarization of ways of defining parameters - movement, co-ordinates and colour
  5. Visualize steps, space, co-ordinates and shapes through movement and vice versa
Steps

1.Define an action as a sequence of commands
2.Addition and division commands defined as actions
3.Note that the values are stored in variables “box 1” and is transferred between actions. The variables can also pass value from main code to the action sequence
4.Tracing a circle of a given angle and a given radius
Action as a sequence 1.pngAction as a sequence 2.png
Note that there are two print commands; only the latest one is captured in this screeshot.

Hands-on activity

1.Ask the turtle to execute a pre-defined procedure
2.See the control flow from main function to additional function
3.Determine/ identify the shape the turtle will trace; pay attention to the orientation of the turtle
4.Count the number of times instructions are repeated
5.What is the relation, if any, between the number of times the instruction is repeated and the shape traced by the turtle
Activity #1
Action as a sequence 3.jpg
4..jpg
Activity #2
See the picture here:
Action as a sequence red.png
6..png7..png

Portfolio components

Two Turtle constructions are given here for the students to decode the instructions
Figure 1
8..jpg9..jpg
Figure 2
10..jpg11..jpg