code-it.co.uk Exploring Regular 2D Shapes & Patterns using sequence, repetition, nested loops, Program Aim: Program regular 2D shapes

Similar documents
WORKBOOK 10 ACTION GEOMETRY SQUARE AND PENTAGON

AN INTRODUCTION TO SCRATCH (2) PROGRAMMING

Objective: Combine shapes to create a composite shape; create a new shape from composite shapes.

TTS Scratch Controller. Teacher Guide. 1 TTS Scratch Controller - Teacher Guide. Product Code: EL00530

Unit Using Logo Year Group: 4 Number of Lessons: 4

Making a maze with Scratch

On the Web sun.com/aboutsun/comm_invest STAROFFICE 8 DRAW

Name: Tutor s

MODULE 5: Exploring Mathematical Relationships

ILLUSTRATOR. Introduction to Adobe Illustrator. You will;

Objective: Analyze and classify triangles based on side length, angle measure or both.

TTS Rainbow Matrix TEACHER GUIDE

Unit 1, Lesson 1: Tiling the Plane

Decimals should be spoken digit by digit eg 0.34 is Zero (or nought) point three four (NOT thirty four).

Lines of Symmetry. Grade 3. Amy Hahn. Education 334: MW 8 9:20 a.m.

HEARTLANDS ACADEMY LESSON STUDY SERIES RESEARCH LESSON 2 GEOMETRICAL REASONING

Lesson 4. Objective: Compare and classify quadrilaterals. Lesson Suggested Lesson Structure. Multiply by 4 (8 minutes)

BEETLE GEOMETRY MODULE 2: INVESTIGATION 1. Exploring Pen

TEACHERS NOTES AND SOLUTIONS

Introduction To Inkscape Creating Custom Graphics For Websites, Displays & Lessons

Ce qui est important dans l'enseignement des mathématiques. Marian Small novembre 2017

3-3. When Kenji spun the flag shown at right very quickly about its pole, he noticed that a threedimensional

Koch Snowflake Go Figure The Koch Snowflake is a fractal based on a very simple rule.

Order from Chaos. Nebraska Wesleyan University Mathematics Circle

Guidance note Geometry geometrical reasoning

UNIT 15 Polygons Lesson Plan 1 Angles

SCRATCH MODULE 3: NUMBER CONVERSIONS

Printing Envelopes in Microsoft Word

YEAR 9 SPRING TERM PROJECT POLYGONS and SYMMETRY

TESSELLATIONS #1. All the shapes are regular (equal length sides). The side length of each shape is the same as any other shape.

Measuring in Pixels with Scratch

LAB 1: INTRODUCTION TO DATA STUDIO AND ONE-DIMENSIONAL MOTION

Transformation, tessellation and symmetry line symmetry

Reason with shapes and their attributes.

Mathematics. Unit 5: Transformations in the Coordinate Plane

Problem Solving with Python Challenges 2 Scratch to Python

Introduction to MS Office Somy Kuriakose Principal Scientist, FRAD, CMFRI

HTML/CSS Lesson Plans

GEOMETRY REVIEW PACKET

Lesson 3 Creating and Using Graphics

Student Instruction Sheet: Unit 4, Lesson 1. Similar Triangles

G2-1 Lines Pages 70 71

Georgia Department of Education Common Core Georgia Performance Standards Framework Fourth Grade Mathematics Unit 6

Final Revision. 1)Put ( ) or ( ):

SOLIDWORKS: Lesson III Patterns & Mirrors. UCF Engineering

Meet the Cast. The Cosmic Defenders: Gobo, Fabu, and Pele The Cosmic Defenders are transdimensional

Unit 1, Lesson 1: Moving in the Plane

Name: Date: Per: WARM UP

Welcome Back! Without further delay, let s get started! First Things First. If you haven t done it already, download Turbo Lister from ebay.

Using Flash Animation Basics

Topics. Introduction to Repetition Structures Often have to write code that performs the same task multiple times. Controlled Loop

Grade 6 Math Circles. Spatial and Visual Thinking

Pupil Name. Year. Teacher. Target Level. Key Stage 3 Self-Assessment Year 9 Python. Spelling Test No 3. Spelling Test No 2. Spelling Test No 1

Lesson 10. Unit 3. Creating Designs. Transformational Designs. Reflection

Loops and Switches Pre-Quiz

Mathematics with ICT in Key Stage 3. Geometry lessons

Step 4 Part B - How to Edit Video on YouTube with Enhancements. You click on Enhancements at the top to add other features and next is what happens.

Faculty Development Seminar Series Constructing Posters in PowerPoint 2003 Using a Template

GRADE 5 SUPPLEMENT. Set C1 Geometry: Triangles & Quadrilaterals. Includes. Skills & Concepts

Northside High School Geometry Curriculum

Function General description Online version

Basic Triangle Congruence Lesson Plan

Loops and Switches Pre-Quiz

Getting Ready to Teach Unit 6

ST. MICHAEL S CE SCHOOL

To create a notebook on desktop version 1. Open One Note 2. File > New. o FILE. Options

WIREFRAMING 101. Essential Question: Can We Possibly Build an App? Learning Targets: Lesson Overview

Graph Matching. LabQuest App OBJECTIVES MATERIALS

STAROFFICE 8 SUMMARY PROJECT

Smoother Graphics Taking Control of Painting the Screen

b 1. If he flips the b over to the left, what new letter is formed? Draw a picture to the right.

Lecture 5 2D Transformation

Pong in Unity a basic Intro

Chapter 1. Getting to Know Illustrator

IGCSE ICT Section 16 Presentation Authoring

How do the shapes grow or shrink? What parts can we compare? How can we write the comparison? CPM Materials modified by Mr. Deyo

Grade 6 Math Circles October 16 & Non-Euclidean Geometry and the Globe

COMP : Practical 6 Buttons and First Script Instructions

SketchUp Quick Start For Surveyors

Relate volume to the operations of multiplication and addition and solve real world and mathematical problems involving volume. (5.MD.

CPS111 Victory Thru Scratch Lab

Objective: Use attributes to draw different polygons including triangles,

M O T I O N A N D D R A W I N G

Order from Chaos. University of Nebraska-Lincoln Discrete Mathematics Seminar

In this lesson you are going to create a drawing program similar to Windows Paint. 1. Start with a new project and remove the default cat sprite.

NCTM Strands. NCTM Strands. NCTM Strands. Geometry. Number and Operations Algebra Geometry Measurement Data Analysis & Probability

Lesson 2 page 1. ipad # 17 Font Size for Notepad (and other apps) Task: Program your default text to be smaller or larger for Notepad

Jerry Cain Handout #5 CS 106AJ September 30, Using JSKarel

Prezi: Moving beyond Slides

Self-Teach Exercises: Getting Started Turtle Python

Unit 4 Reasoning about shape. Year 4. Five daily lessons. Autumn term. Unit Objectives. Link Objectives

Student Work for Triangle congruence ARC

Similarity - Using Mirrors to Find Heights

REMEMBER TO BRING YOUR MEMORY STICK TO EVERY LAB!

SPIRE MATHS. Tangrams

Note: Photoshop tutorial is spread over two pages. Click on 2 (top or bottom) to go to the second page.

Basic Classroom Tools Promethean Module 1 (ActivInspire)

In this lesson, students build fractals and track the growth of fractal measurements using tables and equations. Enduring Understanding

Pro-Bot

Transcription:

code-it.co.uk Exploring Regular 2D Shapes & Patterns Program Aim: Program regular 2D shapes using sequence, repetition, nested loops, simple and complex procedure. Programming Concepts -Sequence -Repetition -Nested Loop -Procedure Resources Masking tape Whiteboards and pens National Curriculum Programs of Study Pupils should be taught to: -design, write and debug programs that accomplish specific goals, including controlling or simulating physical systems; solve problems by decomposing them into smaller parts -use sequence, selection, and repetition in programs; work with variables and various forms of input and output -use logical reasoning to explain how some simple algorithms work and to detect and correct errors in algorithms and programs Space to draw shapes Creating Regular More efficient Shape patterns Simple Procedures using 2D shapes using shapes using using nested procedures an input sequence loops loops Learning Path 4th Draft Expanded Planning Terminology Sequence Instructions that follow after each other. Scratch works from top to bottom. Sometimes the order of the sequence is important sometimes it is not. Repetition Code that repeats. This might be a set number of times or forever while the program is running. Nested Loop A loop that is inside another loop. Procedure A section of code that can be run lots of times but which can have number or text inputted which changes the properties of how it runs. So if we had a procedure called Equilateral Triangle which had an input which determined how long each side was. Equilateral Triangle 30 would be smaller than Equilateral Triangle 60. Experience Needed No previous experience is necessary. However, I would recommend for upper KS2, Year 5+, 9 Years of age+ You can follow me on Twitter @baggiepr You can find lots of free resources at code-it.co.uk I enjoy sharing my journey with fellow educators around the world

Shapes & Patterns P2 1, Preparation before the Lesson Print the sheet Pupil shapes sequence sheet pdf found with this planning. Download Shapes Programming PDF slides and Loops and nested loops (movement) slides. You will also want to print the assessment booklet which goes with this planning. You could administer this as one summative assessment at the end of the unit or after each section. 2, Sharing the Aims of the Module Looking for the best way to program Scratch to draw regular 2D shapes. 2a, Optional Tinkering/Exploring You could give pupils time to explore how to do this themselves in Scratch first. Stress that this must be their own work as you are going to assess what they know and use this to determine their next steps. 3, Creating Shape Algorithms Explain that an algorithm is the precise set of instructions needed to solve a problem. Our problem is how to draw a regular shape using a computer program. Use slide 2-5 of the Shapes programming PDF to illustrate how to do this. Now give pupils a few minutes to create a square and triangle algorithm on the Pupils shapes sequence sheet PDF. If pupils are really struggling with these ideas you can draw out shapes on the floor and walk over them. Exploring right angles planning may be more appropriate for your pupils at this time. http://code-it.co.uk/rightangles 4, Turning Algorithms into Code Shrink the sprite down to very small or draw a new sprite and centre it. Create the code shown on the right so that pupils have an emergency button to bring the sprite back. You may want to give them time to make and test this before moving on. Show pupils where some of the code blocks they need are. Drag them out and leave them as shown. Indicate that each starting block should start with a different letter. Ask them to include a wait block after ever move and turn block. Give them time to create the code themselves. If pupils are struggling you could demonstrate how you would turn one of their algorithms into code. Add wait 1 second blocks between every move or turn to slow the program down so pupils can see where the bugs (errors are). Then give them time to turn their triangle and square algorithms into code. Emergency Button Blocks Needed

Shapes & Patterns P3 If the code doesn't work they can; Walk over the algorithm again to see if their sequence was correct. Check to see they have recorded the correct angles. Drag out the code and run it one block at a time. Does it follow the whiteboard algorithm exactly? 5, More Efficient Code with Loops Ask pupils if they can spot the pattern in their sequence. Some of them may have already started to use a loop to make the code more efficient. Show them the repeat so many times loop. Can they draw the shape with the least possible code and the least possible sprite moves. Remind pupils that they must still include some wait blocks to slow the code down. Give them plenty of time to convert some of their sequence code into repeat loop shapes. Midway through this exercise stress the need for pupils to use the least blocks possible and the least sprite moves. Formative Assessment Formative Assessment Pupils have one move and one turn inside a repeat loop with a pen down to start and a pen up to finish. Each shape should have its own separate keyboard input (letter or number) to trigger the program. See example above. Corrective If they have too many code blocks but it still draws the shape. Praise what they have done so far but don t accept the partial solution. If there are too many repeats get them to count the number of times the sprite moves or turns. Is it the least possible? If the pen down is inside the loop ask if the program needs to put the pen down every time it repeats. Can it do this just once? Enhanced Square within a repeat loop Can they create other 2D regular shapes? Point out that they are using part of the outer angle and that they can calculate the angle by dividing 360 degrees by the number of equal sides. Equilateral Triangle Angle 360 divided by 3 =120 degrees. Extra repeats A code block running more times than it needs to Extra code examples 5a, Loop Algorithm Show pupil the simple loop algorithm on slides 6 9 of the Shapes programming PDF. This is to expose them to different algorithm design.

Shapes & Patterns P4 6, How many regular shapes can they code? Show pupils how they can calculate the angles of the shape needed by dividing 360 degrees by the number of sides. So an equilateral triangle angle would be 360 divided by 3 =120 degrees. Pupils can use calculators built into most computer operating systems to do this. NOTE that shapes with a high number of Revise slide 2 which highlights that they are dealing with a part of sides might distort as the sprite bounces the outer angle not the inner angle. off the edge. Give pupils time to duplicate and adapt their code to make lots of regular shapes. Section 6 assessment sheet goes with this activity. 7, Drawing patterns using nested loops Programmers can use loops within other loops. We call these nested loops. Pupils may want to reduce the wait blocks to a tenth of a second or remove them altogether for this section. Ask pupils to stand up and move away from their computers. Open the PDF Loops & Nested Loops (Movement). Lead pupils through the physical activities. After a few simple loop activities they are introduced to a couple of nested loops. After they have completed this activity adapt their loop shape code to look like the code on the left. How can they use the turn right 15 degrees to create a repeated pattern? How could they adapt the repeats, degrees or both to ensure a completely circular pattern, where the shape is repeated for 360 degrees? Give pupils plenty of time to experiment with nested loops and multiple shapes. Example Nested Loop (Movement) Activity 7a Nested Loop Algorithm Show pupils the nested loop algorithms slides 11 and 12. Good questions are crucial at this point How can you make your pattern repeat for 360 degrees? (make sure the outer loop repeat multiplied by the outer loop turn equals 360) What could you change to leave a space in the middle of the pattern? (Add a move block into the outer loop) Once pupils have puzzled this out can they think of a rule for why it works? A repeated square pattern Section 7 assessment sheet goes with this activity.

Shapes & Patterns P5 8, Creating simple shape procedures Explain that procedures are sections of code that can be written and then used lots of times. They help programmers concentrate on the bigger picture because they don t have to re-write the same code lots and lots of times. After you have shown pupils how to create a simple shape procedure attach the code underneath as shown. Encourage pupils to create procedures for each shape. These can be used to create complex geometric patterns. To create a procedure Click on make a block. Give the block (procedure) a name. This one has been called triangle. You can add more advanced options here. We will use this in the next section. The procedure will look like this. It can be used/run/activated by using the triangle block that goes with it. Currently it has no code so will do nothing. This code starts a procedure called square which is similar to the triangle procedure above so it draws a square. It then turns right 30 degrees. It then uses the triangle procedure (above) to draw a triangle twelve times interspaced with 30 degree turns. It then uses the square procedure again to draw a square. It then turns right 30 degrees. And so on. The pattern looks like this. Give pupils lots of time to experiment with this. After general experimentation insist that patterns stop after 360 degree rotations to encourage them to think through the geometric rules. Section 8 assessment sheet goes with this activity. 8a Share the simple procedure algorithm slide 13 Messy Code 1 Leaving code that is unfinished or only partially working inside a project. Allowing solutions that only partly meet the original goals/algorithm. Occasionally pupils can have an earlier code attempt hinder current code. Remove starting blocks and label parts that are unfinished but pupils want to come back to.

Shapes & Patterns P6 9, Creating procedures that have inputs When you create a procedure there are options to add inputs. These allow you to make one procedure but vary its properties by inputting different data. We are going to stick to number inputs. Ask pupils if they would like to create one procedure that will draw any regular 2D shape? Ask pupils what properties every regular 2D shape has. Length of side Number of sides Angle of Turn Create a new procedure called shape. Add three number inputs from the options as shown on the right. Name them after the properties of a regular 2D shape. Ask pupils which number in the basic loop program corresponds to which property? Length of side Number of sides Angle of Turn Move x steps Repeat x Turn right or left x degrees Drag the correct block into each number. This code would draw a triangle whose sides are 100 pixels long. This code draws a square whose sides are 50 pixels long. There is an info and prediction sheet that has the diagram on the right to help pupils understand how this works. Give this to pupils now but ask them to not answer the questions until they have made and used this procedure. Give pupils time to create lots of geometric patterns using this shape procedure. Section 9 assessment sheet goes with this activity. 9a, Procedure with input algorithm Show the pupils slide 14 & 15

Shapes & Patterns P7 10, Optional Extension (Other properties as inputs) Ask pupils if there are other properties of a shape that haven't been included? Thickness of the line Colour of the line Can pupils write a new procedure that includes these as well? Let them puzzle this out but here is one working method 11, Optional Extensions (More efficient procedure) Can pupils use the information that each shapes outer angle is number of sides divided by 360 degrees to automate the shape procedure so that the user only has to type in the number of sides and the length of the sides to draw the shape.

Shapes & Patterns P7 It can help to point out that They won t need an angle input. They might need a divide block. Thickness Length of Side This can be a real wow moment for some pupils. 12, Optional extension (Using variables with procedure blocks) What happens when you change a variable inside a loop and use it with a procedure? Show pupils the thickness example. Can they trace what is happening in every repeat? Draw triangle thickness 1 Turn 36 degrees Draw triangle thickness 2 Turn 36 degrees Etc Can they create more variable to investigate how this might affect other number inputs? What might happen if you combine a variable with extension 11? 13, Assess Computational Attitudes Use the chart on the next page to draw out key computational attitudes in this module. Pupils can also look for these attitudes in their own work and that of their fellow classmates. There are some stickers to go with these on code-it. http://code-it.co.uk/attitudes/ If you don t wish to print the stickers there is a non sticker recording sheet that can be

Shapes & Patterns P8 Computational Attitudes Repeated patterns all sections from paragraph 5 onwards This planning is all about multiple methods to achieve the same thing What fantastic patterns can they make If you are paired programming or working with a response partner Bugs in computing are normal See the assessment activities Have a debugging wall of fame for all those who fix a bug themselves. The whole project is about building on prior knowledge to adapt an idea