You are on page 1of 6

LESSON PLAN

CODING + GENERAL MATH K-2


AGES:
K-2
STUDENT ENGAGEMENT:
15-30 students per facilitator, no prior skill necessary.

Common Core Math Standards applied:


K.CC.B.4

Understand the relationship between numbers and quantities; connect


counting to cardinality.

K.OA.A.1

Represent addition and subtraction with objects, fingers, mental images,


drawings, sounds (e.g., claps), acting out situations, verbal explanations,
expressions, or equations.

1.OA.C.5

Relate counting to addition and subtraction (e.g., by counting on 2 to add 2).

1.NBT.B.2
A,B,C

Understand that the two digits of a two-digit number represent amounts of


tens and ones. Understand the following as special cases:
10 can be thought of as a bundle of ten ones called a "ten."
The numbers from 11 to 19 are composed of a ten and one, two, three,
four, five, six, seven, eight, or nine ones.
The numbers 10, 20, 30, 40, 50, 60, 70, 80, 90 refer to one, two, three,
four, five, six, seven, eight, or nine tens (and 0 ones).

1.NBT.B.3

Compare two two-digit numbers based on meanings of the tens and ones
digits, recording the results of comparisons with the symbols >, =, and <.

2.OA.C.4

Use addition to find the total number of objects arranged in rectangular arrays
with up to 5 rows and up to 5 columns; write an equation to express the total
as a sum of equal addends.

Materials, Resources and Preparation


Review the
Hour of Code Educator Guide
and
Best Practices from Successful Educators
to plan your Hour of Code event.
Register your Hour of Code
event to receive a thank you gift and f
un posters
.
If youre running an online tutorial, be sure to test it first before asking your students to
complete it. Check your technology and decide if you need to troubleshoot anything in
advance.
Print certificates
to hand out at the end.

Getting Started (2-5 mins)


FIRST: Introduce the activity (2-5 minutes)
Kick off your Hour of Code by inspiring students and discussing how computer science
impacts every part of our lives and is revolutionizing the study of biology.
Show

The Hour of Code is Here


.
Its okay if both you and your students are brand new to computer science. Here are some
ideas to introduce your Hour of Code activity to connect with the subject matter:
Explain ways technology plus math impacts our lives, with examples both boys and
girls will care about.
Designing new and more sustainable ways to harvest and store energy
Figuring out how to send people to space, to the moon, and soon, to Mars!
See tips for getting girls interested in computer science
here
.

NEXT: Direct students to the activity (1 minute)


Write the tutorial link on a whiteboard: b
itsbox.com/hoc
Tell students to visit the URL and start the activity by:
Click the Build Apps Now link in the center of the screen. This will launch a short
guided tutorial that will show the students the basics of using Bitsbox.
Once you've completed the tutorial, click the star-shaped New App
button. Enter the first app number from the work sheet and click "Go".
Tip:
For younger students, load the Build Apps Now page ahead of time or save
it as a bookmark.
Pass out Bitsbox app handouts (last page of this guide) and direct students to start with the
first app.

Activity (20-40 mins)


NEXT: Ask students to complete the tutorial, alone or in groups
Direct students to type in exactly what they see on the handouts.
This will create an app they
can then experiment with. Circulate around the room ensuring students are typing into the
Bitsbox code window.

When your students have a working app, Chicken Clicker, encourage them to play around with
the numbers and see how the app changes.

If working with kindergarten and 1st grade students: stop here and encourage kids to count
along with Chicken Clicker, encourage associations between the number after the Eggs laid
message and the pile of eggs at the bottom of the screen.
If working with kids in 2nd and 3rd grade, move on to the activities below:
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".
Have them write the code for the 2nd app, Chicken Counter, have them discuss with a partner
/ neighbor;
What lines are different in this app as compared to Chicken Clicker? How does each
new line change the app?
Text lines adding a message and a count
Stamp lines adding a line of counted eggs at the bottom
What happens when you change the numbers in the new app?
If 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".
Have them write the code for the 3rd app, Chicken Counter Deluxe, have them discuss with a
partner / neighbor;
What happens when you change the numbers in the new app?
What does < mean? How does this help make a new line of eggs?
Greater than, tells the computer to add a new row when the counted number of
eggs gets larger than 10.

Discuss how the rows of eggs help us think about 2-digit numbers as bundles of tens plus
ones
If working with kids above 2nd grade, ask how the eggs at the bottom would look for numbers
between 31 and 50.

When your students come across difficulties


Make sure to check for common errors. Remember, every character matters.
Incorrect capitalization

Missing syntax like { or (


Missing or mismatched quotation marks. (e.g. stamp(cow') or stamp('cow"))
Misspellings
Its okay to respond:
I dont know. Lets figure this out together.
Let's try something and see what happens."
Learning to program is like learning a new language; you wont be fluent right
away.
What to do if a student finishes early?
Have them continue to the 3rd app.
Students can see all tutorials and try another Hour of Code activity at
code.org/learn
Or, ask students who finish early to help classmates who are having trouble with the
activity.

Wrap-Up (5-10 mins)


FOUR: Debrief & Close
Debrief the activity, connect the role of technology and coding in helping mathematicians and
scientists model the way the world works.
Celebrate and
pass out certificates
and stickers.
Let participants know they can continue to learn at
code.org/learn/beyond
.
Share photos and videos of your Hour of Code event on social media. Use #HourOfCode and
@codeorg so we can highlight your success, too!

Beyond one hour


If your kids enjoyed Bitsbox, they can find more materials at b
itsbox.com/hoc.
There are many ways to go Beyond an Hour of Code:
Explore other curricula
from our partners
.
Teach the
Code Studio Computer Science Fundamentals
courses. Code.org offers f
ree
professional development
for these courses, o
nline
or
in-person
.
Invite a computer science expert to your class.
Sign up for a virtual classroom.

Bitsbox App Handout

Chicken Clicker
App Number: 5161
1. stamp('chicken3')
2.
3. function tap() {
4. egg = stamp('egg4',400,750,100)
5. egg.move(RIGHT,600,1000)
6. }

Chicken Counter
App Number: 8874 (slightly modified)
1. stamp('chicken3')
2. message = text('Eggs Laid:', 120, 150, 'maroon')
3. message = text('0',320,150,'maroon')
4. count = 0
5.
6. function tap() {
7. egg = stamp('egg4',400,750,100)
8. egg.move(RIGHT,600,1000)
9. count = count + 1
10. stamp('egg4', 10*7*count, 900, 100)
11. message.change(count)
12.}

Chicken Counter Deluxe


App Number: 8874 (even more modified)
1. stamp('chicken3')
2. message = text('Eggs Laid:', 120, 150, 'maroon')
3. message = text('0',320,150,'maroon')
4. count = 0
5.
6. function tap() {
7. egg = stamp('egg4',400,750,100)
8. egg.move(RIGHT,600,1000)
9. count = count + 1
10. if (count <= 10) {
11.
stamp('egg4', 10*7*count, 850, 100)
12. }

13.
else if (count <= 20) {
14.
stamp('egg4', 10*7*(count-10), 900, 100)
15. }
16. message.change(count)
17.}

You might also like