Coding + Geometry: Lesson Plan
Coding + Geometry: Lesson Plan
Coding + Geometry: Lesson Plan
CODING + GEOMETRY
AGES:
K-5
STUDENT ENGAGEMENT:
15-30 students per facilitator, no prior skill necessary.
Describe objects in the environment using names of shapes, and describe the
relative positions of these objects using terms such as above, below, beside, in
front of, behind, and next to.
1
.G.A.1
2.G.A.1
Recognize and draw shapes having specified attributes, such as a given number of
angles or a given number of equal faces. Identify triangles, quadrilaterals,
pentagons, hexagons, and cubes.
4.G.A.1
Draw points, lines, line segments, rays, angles (right, acute, obtuse), and
perpendicular and parallel lines. Identify these in two-dimensional figures.
5.G.A.1
When your students have a working Hover House app ask questions or have them discuss with
a partner / neighbor:
Where in the code do you see the numbers 200, 300?
What happens when you change the first number, like to 300, 300?
What happens when you change the second number, to 200, 400?
Can you park the hoverhouse on any of the other red spots?
Can you park the hoverhouse in the upper right corner?
Can you park the hoverhouse in the lower left corner?
HINT: If your students have trouble with these questions, direct their attention to the yellow x
and y numbers that appear when they mouse over the screen of the iPad shown on
bitsbox.com.
When/If your students are ready for a new challenge:
Show them how to start a new app by:
1. Pressing the Home Icon at the bottom of the virtual tablet
2. (optional) Have them set up an account if they want to save their progress and show
their parents their work later! An email address is required to do this.
3. Press the star-shaped New App button, enter the app number (XXXX) and click "Go".
If your students like this app and want to try something similar, direct them to type in exactly
what they see in the 2nd app's (Animal Abitats) code,
circulate around the room ensuring
students are typing into the correct window
When your students have a working app, have them look at the code they wrote and discuss
with a partner / neighbor:
Can you put the animals in different places?
Answer: Yes, have them change the first two numbers in each line
Can you make the animals different sizes?
Answer: yes, have them change the last number in each line
What happens when you put two animals in the same place?
Answer: they will be stacked on top of the other
Can you control which animals is on top?
Answer: the animal in the later line will be on top, switch the order of the lines
and the animal on top will also switch
[OPTIONAL DISCUSSION OF COORDINATE SYSTEMS TO USE NUMBERS TO SPECIFY LOCATION
IN A GRID]
If your students want to see a more complex app in action, move on to the 3rd app
When your students have a working app, have them look at the code they wrote and discuss
with a partner / neighbor:
What kinds of shapes can you draw?
Animal Abitats
App Number:
5575
1. fill('africa')
2. stamp('zebra',550,450,200)
3. stamp('camel2',250,200,200)
4. stamp('lion2',400,300,200)
5. stamp('gorilla',400,550,200)
Constellation Artist
App Number: 8705
1. fill('black')
2.
3. function draw() {
4. line(x,y,5)
5. line('white')
6. }
7.
8. function create() {
9. size = random(5,50)
10. star = stamp('star2',size).move()
11. star.tap = draw
12.}
13.
14.repeat(create,40)