Introduction to Programming with Python Session 4 Notes

Size: px
Start display at page:

Download "Introduction to Programming with Python Session 4 Notes"

Transcription

1 Introduction to Programming with Python Session 4 Notes Nick Cook, School of Computing Science, Newcastle University Contents 1. Challenge 6 and battleships Recap functions Draw shape function Solutions to Section 3 exercises For loops Resources Challenge 16 and battleships Work through Challenge 16 from Python Programming challenges: Write a program where the computer thinks of a number between 1 and 100 (i.e. picks a number at random). The program then asks the user to guess what number it is thinking of. If the user guesses correctly, the program should say well done and say how many guesses it took the user. If the user guesses incorrectly, it should say whether the number the computer is thinking of is higher or lower than the user's guess, and ask the user to guess again. Then play the first two battleships from the CS- Unplugged searching algorithms activity < algorithms>. 2. Recap functions Reusing code, putting a unit of work into a separate function (or procedure) and using it again wherever necessary. Also like sub- routines, breaking up a program into smaller component parts. Do 3.3a from book (p. 19) with class, save to file firstfunction.py. Function with more than one parameter Do following nsquared_plus_n function with class, save to file nsquaredplusn.py # function definition def nsquared_plus_n(nsquared, n): print(nsquared, '+',n,'=',nsquared + n) counter = 0 while counter < 21: nsquared_plus_n(counter ** 2, counter) counter = counter + 1 Newcastle University,

2 Turtle draw a square function Open myshapes.py from Part 3 and do draw_square function with class: Delete all code but version 3, so left with: Modify as follows: # function definition def draw_square(): draw_square() create a draw_triangle function and draw a red triangle create a draw_hexagon function and draw a blue hexagon 3. Draw shape function The myshapes.py program from Section 2 should be: # function definitions def draw_square(): Newcastle University,

3 def draw_triangle(): sidestodraw = 3 def draw_hexagon(): sidestodraw = 6 draw_square() turtle.color('red') draw_triangle() turtle.color('blue') draw_hexagon() Question: what is the problem with the above code? Answer: code duplication the only difference between draw_square, draw_triangle and draw_hexagon is the value of sidestodraw, which is fixed/hard- coded in each function. Together with class develop a draw_shape function that can draw any equilateral shape. For draw_shape version 1 (parameterised with sidestodraw), take the draw_hexagon function, rename it to draw_shape, parameterise with sidestodraw, and delete the line that gives sidestodraw the value 6. def draw_shape(sidestodraw): Newcastle University,

4 draw_shape is a function that will draw any regular polygon (equilateral and equiangular) with sides of length 100. To draw different shapes just call the function with different values for the sidestodraw, e.g: # green square draw_shape(4) # red triangle turtle.color('red') draw_shape(3) # blue pentagon turtle.color('blue') draw_shape(5) Question: what happens when the number of sides to draw is less than 3? Question: what other fixed values in the function could be passed as parameters? Change the draw_shape function to print a message to say that sidestodraw is too small for a suitable value of sidestodraw and only draw a shape if sidestodraw is greater than the value. Consider which other fixed value in the function could be parameterised to allow us to control the size of the shape. Change the function accordingly. 4. Solutions to Section 3 exercises Work through corrections with class. Demonstrate original draw_shape with values of 2, 1, 0 for sidestodraw Question: how do we correct the function? def draw_shape(sidestodraw): if sidestodraw > 2: Question: which other fixed value in the function can be parameterised? The length of the line: def draw_shape(linelength, sidestodraw): if sidestodraw > 2 and linelength > 0: turtle.forward(linelength) Newcastle University,

5 # blue square draw_shape(100, 4) # red triangle draw_shape(100, 3) # green pentagon draw_shape(100, 5) Demonstrate changing linelength. Question: what are the differences between draw_square and draw_shape functions? Modify myshapes.py to provide functions to draw a square, triangle and a pentagon using the draw_shape function functions. 5. For loops We often know how many times we want to iterate (as in the draw shape example). We can use a for loop for this. Work through Section 3.2b on p.16 of Mark Clarkson's book. On whiteboard: general form of for loop for i in range([start,] stop [,step]): # do something Starting with a value for variable i of start, iterate through the loop (executing any code in the block on each iteration) until ireaches the value stop. At the end of each iteration, increment the value of i by step. The default value for start is 0. The default value for step is In a program file, do 3.2c loop challenges on p.16 of Mark Clarkson's book. o For challenge 3 of 3.2c, write a function to calculate the times table with given input. 2. Do 3.2f loop challenge on p.18 of Mark Clarkson's book, writing a function to calculate the factorial 6. Resources Other material from Newcastle University Introduction to Python CPD: ython Mark Clarkson's Introduction to Python resources including textbook, workbooks, example code and GCSE controlled assessment: resources.zip Other Python resources: Newcastle University,

Introduction to Programming with Python Session 5 Notes

Introduction to Programming with Python Session 5 Notes Introduction to Programming with Python Session 5 Notes Nick Cook, School of Computing Science, Newcastle University Contents 1. Modifications to the draw_shape function... 1 2. Positional and named parameters...

More information

WORKBOOK 10 ACTION GEOMETRY SQUARE AND PENTAGON

WORKBOOK 10 ACTION GEOMETRY SQUARE AND PENTAGON UCL/CAS Training for Teachers Algorithms and Programming Module 1 WORKBOOK 10 ACTION GEOMETRY SQUARE AND PENTAGON Action Geometry Unplugged: starting with the square, we explore the properties of simple

More information

Problem Solving with Python Challenges 2 Scratch to Python

Problem Solving with Python Challenges 2 Scratch to Python Problem Solving with Python Challenges 2 Scratch to Python Contents 1 Drawing a triangle... 1 2 Generalising our program to draw regular polygons in Scratch and Python... 2 2.1 Drawing a square... 2 2.2

More information

Find Closed Lines. Put an on the lines that are not closed. Circle the closed lines. Who wins:,, or nobody?

Find Closed Lines. Put an on the lines that are not closed. Circle the closed lines. Who wins:,, or nobody? Find Closed Lines Put an on the lines that are not closed. Circle the closed lines. Who wins:,, or nobody? Blackline Master Geometry Teacher s Guide for Workbook 2.1 1 Crossword Polygons Fill in the names

More information

Special Lines and Constructions of Regular Polygons

Special Lines and Constructions of Regular Polygons Special Lines and Constructions of Regular Polygons A regular polygon with a center A is made up of congruent isosceles triangles with a principal angle A. The red line in the regular pentagon below is

More information

Closed shapes with straight sides

Closed shapes with straight sides 41 Unit 6 and 7 Properties of 2D shapes Activity 1 Closed shapes with straight sides (polygons). Let s revise the 2D shapes you learnt about in Grade 5 Closed shapes with straight sides triangle quadrilateral

More information

1/25 Warm Up Find the value of the indicated measure

1/25 Warm Up Find the value of the indicated measure 1/25 Warm Up Find the value of the indicated measure. 1. 2. 3. 4. Lesson 7.1(2 Days) Angles of Polygons Essential Question: What is the sum of the measures of the interior angles of a polygon? What you

More information

The first print the integer literal 12, the second prints the string comprising the character 1 followed by the character 2.

The first print the integer literal 12, the second prints the string comprising the character 1 followed by the character 2. The Fundamentals 2 Self-Review Questions Self-review 2.1 What are the types of the following literals? 1, 1., 1.0, 1, 1., 1.0, 1, 1., 100000000000000000, 100000000000000000., 100000000000000000.0. int,

More information

6.7 Regular Polygons

6.7 Regular Polygons 6.7 Regular Polygons Dec 13 3:08 PM 1 Recall, what is a polygon? A union of segments in the same plane such that each segment intersects two others, one at each of its endpoints Dec 13 3:13 PM 2 Define

More information

Review Interior Angle Sum New: Exterior Angle Sum

Review Interior Angle Sum New: Exterior Angle Sum Review Interior Angle Sum New: Exterior Angle Sum QUIZ: Prove that the diagonal connecting the vertex angles of a kite cut the kite into two congruent triangles. 1 Interior Angle Sum Formula: Some Problems

More information

Grade 6 Math Circles Fall 2010 Tessellations I

Grade 6 Math Circles Fall 2010 Tessellations I 1 University of Waterloo Faculty of Mathematics entre for Education in Mathematics and omputing Grade 6 Math ircles Fall 2010 Tessellations I tessellation is a collection of shapes that fit together with

More information

Control Flow: Loop Statements

Control Flow: Loop Statements Control Flow: Loop Statements A loop repeatedly executes a of sub-statements, called the loop body. Python provides two kinds of loop statements: a for-loop and a while-loop. This exercise gives you practice

More information

Cambridge Essentials Mathematics Core 9 GM1.1 Answers. 1 a

Cambridge Essentials Mathematics Core 9 GM1.1 Answers. 1 a GM1.1 Answers 1 a b 2 Shape Name Regular Irregular Convex Concave A Decagon B Octagon C Pentagon D Quadrilateral E Heptagon F Hexagon G Quadrilateral H Triangle I Triangle J Hexagon Original Material Cambridge

More information

PLC Papers Created For:

PLC Papers Created For: PLC Papers Created For: Year 10 Topic Practice Papers: Polygons Polygons 1 Grade 4 Look at the shapes below A B C Shape A, B and C are polygons Write down the mathematical name for each of the polygons

More information

The Geometry Template

The Geometry Template Math Message The Geometry Template Answer the following questions about your Geometry Template. DO NOT count the protractors, Percent Circle, and little holes next to the rulers. 1. How many shapes are

More information

Computer and Programming: Lab 1

Computer and Programming: Lab 1 01204111 Computer and Programming: Lab 1 Name ID Section Goals To get familiar with Wing IDE and learn common mistakes with programming in Python To practice using Python interactively through Python Shell

More information

Lesson 7.1. Angles of Polygons

Lesson 7.1. Angles of Polygons Lesson 7.1 Angles of Polygons Essential Question: How can I find the sum of the measures of the interior angles of a polygon? Polygon A plane figure made of three or more segments (sides). Each side intersects

More information

Boardworks Ltd KS3 Mathematics. S1 Lines and Angles

Boardworks Ltd KS3 Mathematics. S1 Lines and Angles 1 KS3 Mathematics S1 Lines and Angles 2 Contents S1 Lines and angles S1.1 Labelling lines and angles S1.2 Parallel and perpendicular lines S1.3 Calculating angles S1.4 Angles in polygons 3 Lines In Mathematics,

More information

: Intro Programming for Scientists and Engineers Assignment 1: Turtle Graphics

: Intro Programming for Scientists and Engineers Assignment 1: Turtle Graphics Assignment 1: Turtle Graphics Page 1 600.112: Intro Programming for Scientists and Engineers Assignment 1: Turtle Graphics Peter H. Fröhlich phf@cs.jhu.edu Joanne Selinski joanne@cs.jhu.edu Due Date: Wednesdays

More information

ST. MICHAEL S CE SCHOOL

ST. MICHAEL S CE SCHOOL ST. MICHAEL S CE SCHOOL PARENT WORKSHOP - 20th OCTOBER 2015 EXTENSION IDEAS FOR MATHS EXTENDING YOUR CHILD S MATHS SKILLS This is not about comparing them to other children - it is about thinking where

More information

1. Write three things you already know about angles. Share your work with a classmate. Does your classmate understand what you wrote?

1. Write three things you already know about angles. Share your work with a classmate. Does your classmate understand what you wrote? LESSON : PAPER FOLDING. Write three things you already know about angles. Share your work with a classmate. Does your classmate understand what you wrote? 2. Write your wonderings about angles. Share your

More information

Warm-Up Exercises. 1. Draw an acute angle and shade the interior. ANSWER. 2. Find the measure of the supplement of a 130º angle.

Warm-Up Exercises. 1. Draw an acute angle and shade the interior. ANSWER. 2. Find the measure of the supplement of a 130º angle. Warm-Up Exercises 1. Draw an acute angle and shade the interior. ANSWER 2. Find the measure of the supplement of a 130º angle. ANSWER 50 3. Find the measure of the complement of an 86 angle. ANSWER 4 1.6

More information

Geometry Ch 7 Quadrilaterals January 06, 2016

Geometry Ch 7 Quadrilaterals January 06, 2016 Theorem 17: Equal corresponding angles mean that lines are parallel. Corollary 1: Equal alternate interior angles mean that lines are parallel. Corollary 2: Supplementary interior angles on the same side

More information

Angles in a polygon Lecture 419

Angles in a polygon Lecture 419 Angles in a polygon Lecture 419 Formula For an n-sided polygon, the number of degrees for the sum of the internal angles is 180(n-2)º. For n=3 (triangle), it's 180. For n=4 (quadrilateral), it's 360. And

More information

Functionally Modular. Self-Review Questions

Functionally Modular. Self-Review Questions Functionally Modular 5 Self-Review Questions Self-review 5.1 Which names are local, which are global and which are built-in in the following code fragment? Global names: Built-in names: space_invaders

More information

What is a tessellation???? Give an example... Daily Do from last class Homework Answers 10 7 These are similar: What does y =? x =?

What is a tessellation???? Give an example... Daily Do from last class Homework Answers 10 7 These are similar: What does y =? x =? Daily Do from last class Homework Answers 10 7 These are similar: What does y =? x =? 36 74 0 78 0 154 o 44 48 54 o y x 154 o 78 0 12 74 0 9 1. 8 ft 2. 21m 3. 21 ft 4. 30cm 5. 6mm 6. 16 in 7. yes 9 = 7

More information

INTRODUCTION TO DRAWING WITH LOGO A

INTRODUCTION TO DRAWING WITH LOGO A Chapter 8 INTRODUCTION TO DRAWING WITH LOGO A Laboratory Exercise By Robert Byerly and Gary A. Harris In this chapter we learn to use the graphical program MSWLogo. This is free software we down loaded

More information

Grade 8 Math WORKBOOK UNIT 1 : POLYGONS. Are these polygons? Justify your answer by explaining WHY or WHY NOT???

Grade 8 Math WORKBOOK UNIT 1 : POLYGONS. Are these polygons? Justify your answer by explaining WHY or WHY NOT??? Grade 8 Math WORKBOOK UNIT 1 : POLYGONS Are these polygons? Justify your answer by explaining WHY or WHY NOT??? a) b) c) Yes or No Why/Why not? Yes or No Why/Why not? Yes or No Why/Why not? a) What is

More information

Table of Contents. Introduction to the Math Practice Series...1

Table of Contents. Introduction to the Math Practice Series...1 Table of Contents Table of Contents Introduction to the Math Practice Series...1 Common Mathematics/Geometry Symbols and Terms...2 Chapter 1: Introduction To Geometry...13 Shapes, Congruence, Similarity,

More information

Art, Nature, and Patterns Introduction

Art, Nature, and Patterns Introduction Art, Nature, and Patterns Introduction to LOGO Describing patterns with symbols This tutorial is designed to introduce you to some basic LOGO commands as well as two fundamental and powerful principles

More information

Triangles. You have learned to be careful with. EXAMPLE L E S S O N 1.

Triangles. You have learned to be careful with.  EXAMPLE L E S S O N 1. Page 1 of 5 L E S S O N 1.5 The difference between the right word and the almost right word is the difference between lightning and the lightning bug. MARK TWAIN EXAMPLE Triangles You have learned to be

More information

Self-Teach Exercises: Getting Started Turtle Python

Self-Teach Exercises: Getting Started Turtle Python Self-Teach Exercises: Getting Started Turtle Python 0.1 Select Simple drawing with pauses Click on the Help menu, point to Examples 1 drawing, counting, and procedures, and select the first program on

More information

Section A Solids Grade E

Section A Solids Grade E Name: Teacher Assessment Section A Solids Grade E 1. Write down the name of each of these 3-D shapes, (i) (ii) (iii) Answer (i)... (ii)... (iii)... (Total 3 marks) 2. (a) On the isometric grid complete

More information

Describe Plane Shapes

Describe Plane Shapes Lesson 12.1 Describe Plane Shapes You can use math words to describe plane shapes. point an exact position or location line endpoints line segment ray a straight path that goes in two directions without

More information

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

Unit 4 Reasoning about shape. Year 4. Five daily lessons. Autumn term. Unit Objectives. Link Objectives Unit 4 Reasoning about shape Five daily lessons Year 4 Autumn term (Key objectives in bold) Unit Objectives Year 4 Describe and visualise 3-D and 2-D shapes, Page 102 including the tetrahedron and heptagon.

More information

Angles, Polygons, Circles

Angles, Polygons, Circles Page 1 of 5 Part One Last week we learned about the angle properties of circles and used them to solve a simple puzzle. This week brings a new puzzle that will make us use our algebra a bit more. But first,

More information

Unit Lesson Plan: Measuring Length and Area: Area of shapes

Unit Lesson Plan: Measuring Length and Area: Area of shapes Unit Lesson Plan: Measuring Length and Area: Area of shapes Day 1: Area of Square, Rectangles, and Parallelograms Day 2: Area of Triangles Trapezoids, Rhombuses, and Kites Day 3: Quiz over Area of those

More information

Polygons. L E S S O N 1.4

Polygons.  L E S S O N 1.4 Page 1 of 5 L E S S O N 1.4 Polygons A polygon is a closed figure in a plane, formed by connecting line segments endpoint to endpoint with each segment intersecting exactly two others. Each line segment

More information

A C E. Applications. Applications Connections Extensions

A C E. Applications. Applications Connections Extensions A C E Applications Connections Extensions Applications 1. Suppose that the polygons below were drawn on centimeter grid paper. How many 1-centimeter cubes (some cut in pieces) would it take to cover each

More information

Shapes. Reflection Symmetry. Exercise: Draw the lines of symmetry of the following shapes. Remember! J. Portelli

Shapes. Reflection Symmetry. Exercise: Draw the lines of symmetry of the following shapes. Remember! J. Portelli Reflection Symmetry Shapes Learning Intention: By the end of the lesson you will be able to Identify shapes having reflection and/or rotational symmetry. Exercise: Draw the lines of symmetry of the following

More information

Geometry !!!!! Tri-Folds 3.G.1 - # 1. 4 Mystery Shape 5 Compare & Contrast. 3rd Grade Math. Compare. Name: Date: Contrast

Geometry !!!!! Tri-Folds 3.G.1 - # 1. 4 Mystery Shape 5 Compare & Contrast. 3rd Grade Math. Compare. Name: Date: Contrast 4 Mystery Shape 5 Compare & Contrast 1. Draw and label a shape that has one more side than a triangle. Draw it. 2. Draw and label a shape that has three more sides than a triangle. 3. Draw and label a

More information

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

Lesson 10. Unit 3. Creating Designs. Transformational Designs. Reflection Lesson 10 Transformational Designs Creating Designs M.C. Escher was an artist that made remarkable pieces of art using geometric transformations. He was first inspired by the patterns in mosaic tiles.

More information

Finding Perimeters and Areas of Regular Polygons

Finding Perimeters and Areas of Regular Polygons Finding Perimeters and Areas of Regular Polygons Center of a Regular Polygon - A point within the polygon that is equidistant from all vertices. Central Angle of a Regular Polygon - The angle whose vertex

More information

Helpful Hint When you are given a frieze pattern, you may assume that the pattern continues forever in both directions Notes: Tessellations

Helpful Hint When you are given a frieze pattern, you may assume that the pattern continues forever in both directions Notes: Tessellations A pattern has translation symmetry if it can be translated along a vector so that the image coincides with the preimage. A frieze pattern is a pattern that has translation symmetry along a line. Both of

More information

Lecture 15. For-Loops

Lecture 15. For-Loops Lecture 15 For-Loops Announcements for This Lecture Today s Material Section 2.3.8 (first use of loops in the text) All of Chapter 7 Two topics covered today Elementary graphics For-loops Both used on

More information

Use the space on the page to do your work. Then mark the answer you have chosen. If you change your answer, be sure to erase completely.

Use the space on the page to do your work. Then mark the answer you have chosen. If you change your answer, be sure to erase completely. Form B Use the space on the page to do your work. Then mark the answer you have chosen. f you change your answer, be sure to erase completely. 1 Leo drew the shape below. How many sides does the shape

More information

Objective: Build, identify, and analyze two dimensional shapes with specified attributes.

Objective: Build, identify, and analyze two dimensional shapes with specified attributes. NYS COMMON CORE MATHEMATICS CURRICULUM Lesson 2 2 8 Lesson 2 Objective: Build, identify, and analyze two dimensional shapes with specified Suggested Lesson Structure Fluency Practice Application Problem

More information

THE COMPETITIVE EDGE

THE COMPETITIVE EDGE SAMPLE PAGES FOR THE READY EOG ASSESSMENT THE COMPETITIVE EDGE THIRD GRADE MATHEMATICS with COMMON CORE STATE STANDARDS 2012 EDITION J ANE H EREFORD CPC CONTEMPORARY PUBLISHING COMPANY OF RALEIGH, INC.

More information

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

Unit Using Logo Year Group: 4 Number of Lessons: 4 Unit 4.5 - Using Logo Year Group: 4 Number of Lessons: 4 Introduction The aim of the lessons is for the children to use Logo to follow and create simple algorithms. For the lessons, the children will need

More information

1ACE Exercise 6. Name Date Class. 6. a. Draw ALL the lines of symmetry on Shape 1 and Shape 2 below. HINT Refer back to Problem 1.

1ACE Exercise 6. Name Date Class. 6. a. Draw ALL the lines of symmetry on Shape 1 and Shape 2 below. HINT Refer back to Problem 1. 1ACE Exercise 6 Investigation 1 6. a. Draw ALL the lines of symmetry on Shape 1 and Shape 2 below. HINT Refer to Problem 1.2 for an explanation of lines of symmetry. Shape 1 Shape 2 b. Do these shapes

More information

Skill. 69 Graph Ordered Pairs. (First Quadrant) Using Skill 69 COMMON ERRORS. 285 Holt Mathematics. OBJECTIVE Graph ordered pairs (first quadrant)

Skill. 69 Graph Ordered Pairs. (First Quadrant) Using Skill 69 COMMON ERRORS. 285 Holt Mathematics. OBJECTIVE Graph ordered pairs (first quadrant) Skill Graph Ordered Pairs (First Quadrant) Using Skill OBJECTIVE Graph ordered pairs (first quadrant) Minutes Direct students attention to the definition at the top of the page. Work through the example

More information

MPM1D Page 1 of 6. length, width, thickness, area, volume, flatness, infinite extent, contains infinite number of points. A part of a with endpoints.

MPM1D Page 1 of 6. length, width, thickness, area, volume, flatness, infinite extent, contains infinite number of points. A part of a with endpoints. MPM1D Page 1 of 6 Unit 5 Lesson 1 (Review) Date: Review of Polygons Activity 1: Watch: http://www.mathsisfun.com/geometry/dimensions.html OBJECT Point # of DIMENSIONS CHARACTERISTICS location, length,

More information

Objectives. 6-1 Properties and Attributes of Polygons

Objectives. 6-1 Properties and Attributes of Polygons Objectives Classify polygons based on their sides and angles. Find and use the measures of interior and exterior angles of polygons. side of a polygon vertex of a polygon diagonal regular polygon concave

More information

For loops, nested loops and scopes. Jordi Cortadella Department of Computer Science

For loops, nested loops and scopes. Jordi Cortadella Department of Computer Science For loops, nested loops and scopes Jordi Cortadella Department of Computer Science Outline For loops Scopes Nested loops Introduction to Programming Dept. CS, UPC 2 Calculate x y Algorithm: repeated multiplication

More information

Fair Game Review. Chapter 12. Name Date. Tell whether the angles are adjacent or vertical. Then find the value of x x 3. 4.

Fair Game Review. Chapter 12. Name Date. Tell whether the angles are adjacent or vertical. Then find the value of x x 3. 4. Name Date Chapter 12 Fair Game Review Tell whether the angles are adjacent or vertical. Then find the value of x. 1. 2. 128 35 3. 4. 75 (2x + 1) 4 2 5. The tree is tilted 14. Find the value of x. 14 Copyright

More information

UNIT PLAN. Big Idea/Theme: Polygons can be identified, classified, and described.

UNIT PLAN. Big Idea/Theme: Polygons can be identified, classified, and described. UNIT PLAN Grade Level: 5 Unit #: 11 Unit Name Geometry Polygons Time: 15 lessons, 18 days Big Idea/Theme: Polygons can be identified, classified, and described. Culminating Assessment: (requirements of

More information

Polygons. 5 sides 5 angles. pentagon. Name

Polygons. 5 sides 5 angles. pentagon. Name Lesson 11.1 Reteach Polygons A polygon is a closed plane figure formed by three or more line segments that meet at points called vertices. You can classify a polygon by the number of sides and the number

More information

We will work with Turtles in a World in Java. Seymour Papert at MIT in the 60s. We have to define what we mean by a Turtle to the computer

We will work with Turtles in a World in Java. Seymour Papert at MIT in the 60s. We have to define what we mean by a Turtle to the computer Introduce Eclipse Create objects in Java Introduce variables as object references Aleksandar Stefanovski CSCI 053 Department of Computer Science The George Washington University Spring, 2010 Invoke methods

More information

Extra Practice 1. Name Date. Lesson 1: Exploring Triangles

Extra Practice 1. Name Date. Lesson 1: Exploring Triangles Master 6.36 Extra Practice 1 Lesson 1: Exploring Triangles 1. Draw 3 different triangles. Measure and label the side lengths. Name each triangle as equilateral, isosceles, or scalene. 2. Name each triangle

More information

Shape & Space Part C: Transformations

Shape & Space Part C: Transformations Name: Homeroom: Shape & Space Part C: Transformations Student Learning Expectations Outcomes: I can describe and analyze position and motion of objects and shapes by Checking for Understanding identifying

More information

Textbook. Topic 5: Repetition. Types of Loops. Repetition

Textbook. Topic 5: Repetition. Types of Loops. Repetition Textbook Topic 5: Repetition Are you saying that I am redundant? That I repeat myself? That I say the same thing over and over again? Strongly Recommended Exercises The Python Workbook: 64, 69, 74, and

More information

Computer Science AP/X CSCI-140/242 Polygons Lab 2 8/30/2018

Computer Science AP/X CSCI-140/242 Polygons Lab 2 8/30/2018 Computer Science AP/X CSCI-140/242 Polygons Lab 2 8/30/2018 1 Implementation You will now implement a program that handles the general case of drawing polygons of decreasing sides, recursively. 1.1 Program

More information

Python, Part 2 CS 8: Introduction to Computer Science Lecture #4

Python, Part 2 CS 8: Introduction to Computer Science Lecture #4 Python, Part 2 CS 8: Introduction to Computer Science Lecture #4 Ziad Matni Dept. of Computer Science, UCSB A Word About Registration for CS8 This class is currently FULL The waitlist is CLOSED 4/13/17

More information

Outline. For loops, nested loops and scopes. Calculate x y. For loops. Scopes. Nested loops. Algorithm: repeated multiplication x x x x

Outline. For loops, nested loops and scopes. Calculate x y. For loops. Scopes. Nested loops. Algorithm: repeated multiplication x x x x Outline For loops, nested loops and scopes For loops Scopes Jordi Cortadella Department of Computer Science Nested loops Calculate x y Algorithm: repeated multiplication x x x x y times y x i p=x i 4 3

More information

Polygon Practice. E90 Grade 5. Name

Polygon Practice. E90 Grade 5. Name Lesson 11.1 Polygon Practice Write the number of sides and the number of angles that each polygon has. Then match each description to one of the polygons drawn below. Label the polygon with the exercise

More information

CK-12 Geometry: Similar Polygons

CK-12 Geometry: Similar Polygons CK-12 Geometry: Similar Polygons Learning Objectives Recognize similar polygons. Identify corresponding angles and sides of similar polygons from a similarity statement. Calculate and apply scale factors.

More information

MFM 1P. Foundations of Mathematics Grade 9 Applied Mitchell District High School. Unit 4 Geometry There are 5 formal lessons in this unit.

MFM 1P. Foundations of Mathematics Grade 9 Applied Mitchell District High School. Unit 4 Geometry There are 5 formal lessons in this unit. MFM 1P Foundations of Mathematics Grade 9 Applied Mitchell District High School Unit 4 Geometry There are 5 formal lessons in this unit. Lesson # Lesson Title Practice Questions Date Completed 1 Interior

More information

Lesson Polygons

Lesson Polygons Lesson 4.1 - Polygons Obj.: classify polygons by their sides. classify quadrilaterals by their attributes. find the sum of the angle measures in a polygon. Decagon - A polygon with ten sides. Dodecagon

More information

Procedures: Algorithms and Abstraction

Procedures: Algorithms and Abstraction Procedures: Algorithms and Abstraction 5 5.1 Objectives After completing this module, a student should be able to: Read and understand simple NetLogo models. Make changes to NetLogo procedures and predict

More information

HPISD Curriculum: Grade 4 TAG Math

HPISD Curriculum: Grade 4 TAG Math Unit Overview HPISD Curriculum: Grade 4 TAG Math Title Estimated Duration 9 Weeks Geometry and Measurement 8 weeks 1 2 3 4 Properties/attributes of polygons, triangles, quadrilaterals Area and perimeter

More information

Math-in-CTE Lesson Plan Template

Math-in-CTE Lesson Plan Template Lesson Development Math-in-CTE Lesson Plan Template Lesson Title: Basic Geometric Concepts Lesson # Author(s): Phone Number(s): E-mail Address(es): Juan Carlos Martínez jcmartinez@dadeschoolsnet Bergman

More information

Objective: Build, identify, and analyze two-dimensional shapes with specified attributes. (3 minutes) (9 minutes)

Objective: Build, identify, and analyze two-dimensional shapes with specified attributes. (3 minutes) (9 minutes) Lesson 2 2 8 Lesson 2 Objective: Build, identify, and analyze two-dimensional shapes with specified Suggested Lesson Structure Fluency Practice Application Problem Concept Development Student Debrief Total

More information

Input/Output Machines

Input/Output Machines UNIT 1 1 STUDENT BOOK / Machines LESSON Quick Review t Home c h o o l This is an / machine It can be used to make a growing pattern Each input is multiplied by 9 to get the output If you input 1, the output

More information

Fun with Diagonals. 1. Now draw a diagonal between your chosen vertex and its non-adjacent vertex. So there would be a diagonal between A and C.

Fun with Diagonals. 1. Now draw a diagonal between your chosen vertex and its non-adjacent vertex. So there would be a diagonal between A and C. Name Date Fun with Diagonals In this activity, we will be exploring the different properties of polygons. We will be constructing polygons in Geometer s Sketchpad in order to discover these properties.

More information

Segments and Angles. Name Period. All constructions done today will be with Compass and Straight-Edge ONLY.

Segments and Angles. Name Period. All constructions done today will be with Compass and Straight-Edge ONLY. Segments and ngles Geometry 3.1 ll constructions done today will be with ompass and Straight-Edge ONLY. Duplicating a segment is easy. To duplicate the segment below: Draw a light, straight line. Set your

More information

UNIT 15 Polygons Lesson Plan 1 Angles

UNIT 15 Polygons Lesson Plan 1 Angles Y8 UNIT 15 Polygons Lesson Plan 1 Angles 1A 1B Revising angles T: You must know lots of facts about angles. Let's see how many you can remember. - How many degrees are there around a point? ( 360 ) - How

More information

Polygons and Angles. Polygons and Angles. Solutions. Curriculum Ready.

Polygons and Angles. Polygons and Angles. Solutions. Curriculum Ready. Polygons and Angles Polygons and Angles Curriculum Ready www.mathletics.com Basics Page 3 questions 1. Circle the shapes that are polygons: 2. Name these polygons (based on the number of sides) and state

More information

Stratford School Academy Schemes of Work

Stratford School Academy Schemes of Work Page 1 of 9 Number of weeks (between 6&8) Content of the unit Assumed prior learning (tested at the beginning of the unit) 6 This unit assumes that pupils already have some prior experience in Python or

More information

2.4 Angle Properties in Polygons.notebook. October 27, 2013 ENTRANCE SLIP

2.4 Angle Properties in Polygons.notebook. October 27, 2013 ENTRANCE SLIP ENTRANCE SLIP If you are given one interior angle and one exterior angle of a triangle, can you always determine the other interior angles of the triangle? Explain, using diagrams. 1 2.4 Angle Properties

More information

Grade 6 Math Circles February 19th/20th

Grade 6 Math Circles February 19th/20th Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Grade 6 Math Circles February 19th/20th Tessellations Warm-Up What is the sum of all the angles inside

More information

MATH 113 Section 9.2: Symmetry Transformations

MATH 113 Section 9.2: Symmetry Transformations MATH 113 Section 9.2: Symmetry Transformations Prof. Jonathan Duncan Walla Walla University Winter Quarter, 2008 Outline 1 What is Symmetry 2 Types of Symmetry Reflective Symmetry Rotational Symmetry Translational

More information

Chapter 7 Geometric Relationships. Practice Worksheets MPM1D

Chapter 7 Geometric Relationships. Practice Worksheets MPM1D Chapter 7 Geometric Relationships Practice Worksheets MPM1D Chapter 7 Geometric Relationships Intro Worksheet MPM1D Jensen Part 1: Classify Triangles 1. Classify each triangle according to its side lengths.

More information

Mathematics Shape and Space: Polygon Angles

Mathematics Shape and Space: Polygon Angles a place of mind F A C U L T Y O F E D U C A T I O N Department of Curriculum and Pedagogy Mathematics Shape and Space: Polygon Angles Science and Mathematics Education Research Group Supported by UBC Teaching

More information

LESSON SUMMARY. Properties of Shapes

LESSON SUMMARY. Properties of Shapes LESSON SUMMARY CXC CSEC MATHEMATICS UNIT Seven: Geometry Lesson 13 Properties of Shapes Textbook: Mathematics, A Complete Course by Raymond Toolsie, Volume 1 and 2. (Some helpful exercises and page numbers

More information

Materials Required: (1) Pre-cut polygons in coloured paper (2) Computer for demonstration and the computer files in 2D_Sym

Materials Required: (1) Pre-cut polygons in coloured paper (2) Computer for demonstration and the computer files in 2D_Sym easures, hape & pace Exemplar 9: Reflectional and Rotational Symmetry in a Plane Objective: To explore the relation between reflectional symmetry and rotational symmetry of 2-D figures Key Stage: 3 Learning

More information

Answer Key Lesson 6: Classifying Shapes

Answer Key Lesson 6: Classifying Shapes Student Guide The Flatopia Polygon Zoo Professor Peabody had a dream that he lived in a two-dimensional town called Flatopia. There were two-dimensional creatures in town, all shaped like polygons. Help

More information

UNIT 6 Nets and Surface Area Overhead Slides

UNIT 6 Nets and Surface Area Overhead Slides UNIT 6 Nets and Surface Area Overhead Slides Overhead Slides 6.1 Polygons 6.2 Triangles 6.3 Quadrilaterals 6.4 Name that Shape! 6.5 Drawing Parallelograms 6.6 3-D Shapes 6.7 Cuboid 6.8 Prism 6.9 Plan and

More information

Quantitative Literacy: Thinking Between the Lines

Quantitative Literacy: Thinking Between the Lines Quantitative Literacy: Thinking Between the Lines Crauder, Evans, Johnson, Noell Chapter 9: Geometry 2013 W. H. Freeman & Co. 1 Lesson Plan Perimeter, area, and volume: How do I measure? Proportionality

More information

Student Mathematician: Date: Some, All or None Tell whether each statement below is true or false by circling the correct answer. If the statement is false, give a counterexample using words and/or pictures.

More information

Grade 8 - geometry investigation - Rene Rix *

Grade 8 - geometry investigation - Rene Rix * OpenStax-CNX module: m35699 1 Grade 8 - geometry investigation - Rene Rix * Pinelands High School This work is produced by OpenStax-CNX and licensed under the Creative Commons Attribution License 3.0 An

More information

Fundamentals of Programming. Week 1 - Lecture 3: Loops

Fundamentals of Programming. Week 1 - Lecture 3: Loops 15-112 Fundamentals of Programming Week 1 - Lecture 3: Loops May 18, 2016 Basic Building Blocks Statements Tells the computer to do something. Data Types Data is divided into different types. Variables

More information

Classifying 3D Shapes

Classifying 3D Shapes Classifying 3D Shapes Middle School Texas Essential Knowledge and Skills (TEKS) Math 5.4B Algebraic reasoning The student applies mathematical process standards to develop concepts of expressions and equations.

More information

Practice A Introduction to Three-Dimensional Figures

Practice A Introduction to Three-Dimensional Figures Name Date Class Identify the base of each prism or pyramid. Then choose the name of the prism or pyramid from the box. rectangular prism square pyramid triangular prism pentagonal prism square prism triangular

More information

Day #1 Investigation 1.1

Day #1 Investigation 1.1 1 Day #1 Investigation 1.1 In exercise 1-2, find an equivalent fraction for each fraction. Find one fraction with denominator less than the one given. Find another fraction with a denominator greater the

More information

MATH KINDS OF PLANE FIGURES

MATH KINDS OF PLANE FIGURES 4 Module 72 MATH KINDS OF PLANE FIGURES A DepEd-BEAM Distance Learning Program supported by the Australian Agency for International Development To the Learner Hey! This is your time to learn about figures

More information

February Regional Geometry Team: Question #1

February Regional Geometry Team: Question #1 February Regional Geometry Team: Question #1 A = area of an equilateral triangle with a side length of 4. B = area of a square with a side length of 3. C = area of a regular hexagon with a side length

More information

About Finish Line Mathematics 5

About Finish Line Mathematics 5 Table of COntents About Finish Line Mathematics 5 Unit 1: Big Ideas from Grade 1 7 Lesson 1 1.NBT.2.a c Understanding Tens and Ones [connects to 2.NBT.1.a, b] 8 Lesson 2 1.OA.6 Strategies to Add and Subtract

More information

Name: Class: Date: 2. I have four vertices. I have four right angles and all my sides are the same length.

Name: Class: Date: 2. I have four vertices. I have four right angles and all my sides are the same length. 1. Circle the right triangles. Use the corner of a piece of paper to check. 2. I have four vertices. I have four right angles and all my sides are the same length. What am I? 3. I have four vertices. All

More information

GEOMETER SKETCHPAD INTRODUCTION

GEOMETER SKETCHPAD INTRODUCTION GEOMETER SKETHPD INTRODUTION ctivity 1: onstruct, Don t Draw onstruct a right triangle Use the line segment tool, and draw a right angled triangle. When finished, use the select tool to drag point to the

More information

ame Date Class Practice A 11. What is another name for a regular quadrilateral with four right angles?

ame Date Class Practice A 11. What is another name for a regular quadrilateral with four right angles? ame Date Class Practice A Polygons Name each polygon. 1. 2. 3. 4. 5. 6. Tell whether each polygon appears to be regular or not regular. 7. 8. 9. 10. What is another name for a regular triangle? 11. What

More information