Grade 2: "Exploring Coding"
(From: Mathology)
On a computer? Click "file" then "make a copy" to save and make changes.
On an iPad? Select the 3 dots in the top right hand corner. "Share and Export" then "Make a Copy".
This Mathology lesson plan can be accessed in both English and French by logging into your Mathology.ca/Mathologie.ca account and searching for "Geometry Activity 22: Coding: Exploring Coding"
Making paths and writing codes to describe them
C3. Coding: solve problems and create computational representations of mathematical situations using coding concepts and skills
• Coding Skills: C3.1 solve problems and create computational representations of mathematical situations by writing and executing code, including code that involves sequential and concurrent events
Objects can be located in space and viewed from multiple perspectives.
Numbers tell us how many and how much
Write a code to describe movement form one point to another
Demonstrate my understanding that there are many possible paths to move from one point to another
Linking cubes
Line Master 58: Find a Path
Line Master 59: My Cube Path
Line Master 60: Assessment
(All Line Masters can be accessed by logging into your Mathology / Mathologie account)
Code
Alike
Different
Path
Side-to-side
Count
Students may benefit from prior experience with:
giving directions
using positional language (right, left, up, down)
measuring length with cubes
Key concepts
In coding, a sequential set of instructions is executed based on the order of instructions given (e.g., a pixelated image stops its motion and then changes colours).
Concurrent events are when multiple things are occurring at the same time (e.g., a pixelated image is changing its colours while moving).
Sometimes concurrent programs need to use time delays or wait blocks. For example, to ensure that two pixelated images do not collide on the screen, or, similarly that robots do not collide in real life, one may need to pause while the other passes.
Some sequential events can be executed concurrently if they are independent of each other (e.g., two pixelated images are moving across the screen at the same time).
Note
Coding can support the development of a deeper understanding of mathematical concepts.
Coding can provide an opportunity for students to communicate their understanding of mathematical concepts.
Coding can include a combination of pseudocode, block-based coding programs, and text-based coding programs.
Students can program for various agents, such as a pixelated image on a screen, a classmate acting out the code when appropriate, or a physical device (e.g., robot, microcontroller).
Project Line Master 58. Have volunteers show and describe as many different paths as they can to get from A to B.
Have a volunteer trace each path with a finger or place linking cubes on the path. Each time, ask, “How can we describe the path using words?” (e.g., follow the red path from A to B)
Have students describe some of the paths using directions (e.g., 4 squares right and 7 squares up).
Tell students that we call this a code. Make a list of words students used to describe direction (e.g., up, down).
Give each pair linking cubes and a copy of Master 59a.
Use trains of linking cubes to make a path from A to B. Trains must be placed up and down, and side-to-side.
Write a code to describe your path.
Now write a code to describe the path from B back to A. How are the codes alike? How are they different?
Repeat the activity. Make as many different paths from A to B as you can.
Teacher Moves
Probing Questions:
How did you use cubes to make a path?
How did you write a code to describe that path?
How are the codes from A to B to A alike? How are they different?
How did you make a different path from A to B?
How are students making the paths (e.g., placing trains horizontally and vertically, or placing some trains diagonally)?
Are students able to write the linking cube paths as codes?
Do students use positional language (left, right, up, down) correctly in their codes?
Can students describe how the codes from A to B and B to A are alike and how they are different?
Go on a gallery walk to see the different paths students made and the corresponding codes. Have students check the codes and explain how they know whether they are correct. Help students see that many paths are possible. Have students share the strategies they used to write the code for the path from B to A (e.g., starting from scratch, or reading the code from A to B backward and changing the positional words to their opposites). Discuss how students found different paths (e.g., removing all trains of cubes and starting over, or moving cubes from one train to another).
Highlight for Students
We can write a code to describe movement from one point to another.
There are many possible paths to move from one point to another.
Accommodations: Use Master 59b, where A and B are closer together.
Extension: Use Master 59c and have students write codes to describe the paths from C to A and from C to B.
Combined Grades Extension: Students place a ruler along the cubes, measure the paths, and then write codes involving centimetres (e.g., 10 cm right, then 12 cm up).
All assessments, in the moment feedback/prompts, and independent tasks can be accessed by logging into your Mathology/Mathologie account.
SEL Self-Assessments (English) and Teacher Rubric
Log in to your Mathology.ca / Mathologie.ca account to access Intervention and Extension activities, Professional Learning Videos and Assessment tools.
If you require support logging into your Mathology/Mathologie account, please contact Kerry Stack or Erica Doucet.
Use the Colour Tiles Tool in front of the class to model making paths and writing codes to describe them. Select Square Grid. Select Textbox, enter A, drag the textbox using the blue bar until A is in the centre of a grid square, then click on the grid. Repeat to label another square B. Have a student place tiles up and down or side-to-side to make a path from A to B. Together, write codes to describe the path from A to B and from B to A. Talk about how the codes are alike and how they are different. Repeat, having students make as many different paths from A to B as they can.
Pearson Interactive Tools (log into your account) / Mathies app / Math Learning Centre)