Distance Challenge By: Chris Brown Under the direction of Prof. Susan Rodger Duke University, January 2013.

Slides:



Advertisements
Similar presentations
Visual Lists By Chris Brown under Prof. Susan Rodger Duke University July 2012.
Advertisements

The Distance Formula Understand horizontal/vertical distance in a coordinate system as absolute value of the difference between coordinates; develop.
Alice Learning to program: Part 1 by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008.
Alice Programming Assessment: Parameters Samantha Huerta Under the direction of Professor Susan Rodger Duke University July 2014.
How Tall Are You? Introducing Functions By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008 Updates made June 2014 by.
SETTING UP CAMERA VIEWS LESSON Setting camera views using objects, based on a lesson by Bella. Adventures in Alice Susan Rodger Duke University July 2013.
Warm UP Solve using the Pythagorean theorem. ESSENTIAL QUESTION: How can you write an equation for a circle in the coordinate plane with known center.
Calvin and Hobbes Teach Properties and Functions Created by Daniel MacDonald under the direction of Professor Susan Rodger Duke University June 2013.
10.7 Write and Graph Equations of Circles Hubarth Geometry.
Shorter of two objects and changing color Functions, events and setting the color Susan Rodger, Duke University June 2008.
Checking for Collisions Ellen Yuan Under the direction of Professor Susan Rodger at Duke University June 2014.
by Chris Brown under Prof. Susan Rodger Duke University June 2012
Calculator Challenge By: Chris Brown Under the direction of Professor Susan Rodger Duke University, January 2013.
1-8 The Coordinate Plane SWBAT: Find the Distance between two points in the Coordinate Plane. Find the Coordinates of a Midpoint of a segment.
Chapter 1, Section 6. Finding the Coordinates of a Midpoint  Midpoint Formula: M( (x1+x2)/2, (y1+y2)/2 )  Endpoints (-3,-2) and (3,4)
THE PYTHAGOREAN THEOREM. What is the Pythagorean Theorem? The theorem that the sum of the squares of the lengths of the sides of a right triangle is equal.
Section 11.6 Pythagorean Theorem. Pythagorean Theorem: In any right triangle, the square of the length of the hypotenuse equals the sum of the squares.
Shorter of two objects and changing color V2 Functions, events and setting the color in sequence and randomly This is a modification of the Changing Color.
Nonvisual Arrays and Recursion by Chris Brown under Prof. Susan Rodger Duke University June 2012.
Welcome Back! April 13 th, Review Pythagorean Theorem.
Teaching a character to walk in more than one world: Parameters and Inheritance. By Lana Dyck under the direction of Professor Susan Rodger Duke University.
Unit 1 – Conic Sections Section 1.2 – The Circle Calculator Required.
Simple Quiz Assessment David Yan Under the direction of Susan Rodger Duke University June 2015.
Students will be able to: calculate the distance between two points on a line.
Nonvisual Arrays by Chris Brown under Prof. Susan Rodger Duke University June 2012.
Boat Racing Game Challenge #2 By Chris Brown Under the direction of Professor Susan Rodger Duke University, January 2013 Based off of the Boat Racing Game.
Tutorial on Kangaroo visiting his animal friends - parameters, events Susan Rodger Duke University June 2009.
The Distance and Midpoint Formulas Unit 8. Warm – Up!! As you walk in, please pick up your calculator and begin working on your warm – up!! 1. Use the.
Finding the distance between two points. (-4,4) (4,-6)
Distance Formula and Midpoint Formula. Distance Formula The distance formula is derived from the Pythagorean theorem c 2 = a 2 + b 2. d Substituting d.
Distance Formula Geometry Regular Program SY Source: Discovering Geometry (2008) by Michael Serra.
1. Factor 2. Factor 3.What would the value of c that makes a perfect square. Then write as a perfect square. M3U8D3 Warm Up (x+4) 2 (x-7) 2 c = 36 (x+6)
Geometry Midpoints and Distance. Algebra Equation Review 5x + 3 = 21 8x – 2 = 6x + 22 Eliminate Parentheses Collect variables on one side of the equation.
We will only look at Circles and Parabolas this year.
An Introduction to Alice By Chris Brown under the direction of Professor Susan Rodger Duke University, March 2013.
Boat Racing Game Challenge #3 By Chris Brown Under the direction of Professor Susan Rodger Duke University, January 2013 Based off of the Boat Racing Game.
 Then: You graphed points on the coordinate plane.  Now: 1. Find the distance between points. 2. Find the midpoint of a segment.
Creating a Fancier Chicken to use in several worlds - Inheritance Susan Rodger Duke University June 2009.
Boat Racing Game Challenge #4 By Chris Brown Under the direction of Professor Susan Rodger Duke University, January 2013 Based off of the Boat Racing Game.
Circles Formula. x 2 + y 2 = r 2 Formula for Circle centered at the origin Center point (0,0) Radius = r.
Transformations Challenge By Yossra Hamid Under the supervision of Professor Susan Rodger Duke University June 2014.
Distance on a Coordinate Grid How far?  Jenn’s house is 4 miles west and 4 miles north of the center point of the city. Viet’s house is 1 mile.
The Distance and Midpoint Formulas Goal 1 Find the Midpoint of a Segment Goal 2 Find the distance between two points on a coordinate plane Goal 3 Find.
Tutorial on Bunny visiting his animal friends - parameters, events for Alice 3 Susan Rodger Duke University June 2009 Updated by Yossra Hamid on October.
Looping Assessment Erin Taylor Under the direction of Susan Rodger Duke University June 2015.
W. A. M: How can we find the distance between the given points
Unit 4.4 Deriving the Equation of a Circle and Proving that all Circles are Similar Instructional Days: 9.
Changing Camera Views! Part 1: Set Point of View to By Bella Onwumbiko
Midpoint And Distance in the Coordinate Plane
How to Find a Midpoint of two points on a Number Line - take the average of the coordinates , where M is the coordinate of the midpoint, and x1 and.
Tutorial on Kangaroo visiting his animal friends - parameters, events
Lesson: 10 – 8 Equations of Circles
Algebra 1 – The Distance Formula
Boat Racing Game Challenge #1
Find the missing side…Hint: use Pythagorean theorem
Alice 3 Programming Assessment: Parameters
Checking for Collisions: Using Functions in Alice
1.7 Midpoint and Distance in the Coordinate Plane
The Distance Formula     Understand horizontal/vertical distance in a coordinate system as absolute value of the difference between coordinates;
Unit 3: Coordinate Geometry
Chapter 9 Section 8: Equations of Circles.
January 2013 Living Environment Regents
28. Writing Equations of Circles
Circles in the Coordinate Plane
Geometry Review PPT Finnegan 2013
Pythagorean Theorem.
Writing Equations of Circles
Complete the family of four
The Distance Formula     Understand horizontal/vertical distance in a coordinate system as absolute value of the difference between coordinates;
Presentation transcript:

Distance Challenge By: Chris Brown Under the direction of Prof. Susan Rodger Duke University, January 2013

Problem It’s Jimmy’s first time in a new city, and we need to help him find his way around! He knows where he is located in the center at (0, 0) to start, and he also knows the coordinates of each place he wants to visit. Your job will be to fill in the distance function, to calculate the distance from Jimmy to his destination. You can move around the city by clicking on the different places of interest that you want to visit. 1 unit = 1 meter

Problem We want to calculate this distance! (9, -4) (0, 0)

Problem Now, Jimmy wants to go from the theme park to the museum… (9, -4) (-6, -6)

world.distance Each time the distance function is called, four parameters are passed in with information you will need. It provides you with Jimmy’s x value, Jimmy’s y value, the destination’s x value, and the destination’s y value. It is your job to correctly return the distance from Jimmy to his destination in this function. Hint: What is the distance formula? It can be derived from Pythagorean’s Theorem.

world.distance

Bonus Challenge! Go into the Alice Object Gallery to add new places, with an original animation every time Jimmy visits that place. Make sure to create variables for your location’s x and y position to be passed into your distance function later on.