AP CSP CodeX - Binary Numbers

Binary Numbers Lesson Plan

Binary Numbers

Students learn binary place values and convert numbers between decimal and binary.

⏰ 45 min 🎯 Grades 9-12 πŸ“„ Unplugged
View Lesson Outline
πŸ“‹

Overview

This is an unplugged lesson. Students learn how a computer can use binary numbers to represent data, using a video, a Secret Coder Form with boxes, and a Flippy Do. Students convert decimal numbers to binary and binary numbers to decimal, decode a word, and finish with a wrap-up matching activity in the Activity Guide. This is the first of two lessons that have students work with binary numbers. The AP CSP exam includes binary number questions, but not hexadecimal.

🎯 Mission Goal: Students will learn and use binary numbers.

🎯

Learning Targets

  • I can name the place values of a binary number.
  • I can convert a decimal number to binary.
  • I can convert a binary number to decimal.
πŸ’‘

Key Concepts

  • Data that a computer uses can be represented using binary numbers.
  • Binary numbers can be converted to decimal, and decimal numbers can be converted to binary.
  • The AP CSP exam will have questions on binary numbers, but not hexadecimal.
  • This is the first of two lessons that have students work with binary numbers.
βœ…

Assessment Opportunities

  • Binary Numbers Activity Guide
  • Two questions in the Activity Guide, answered in writing or shared in a class discussion
  • Wrap-up matching activity in the Activity Guide
  • Exit ticket with a couple of conversion problems (optional)
β˜‘οΈ

Success Criteria

  • Convert decimal numbers to binary
  • Convert binary numbers to decimal
πŸ“

Digital Resources

🧰

Classroom Materials

  • β–ΈPrinted Activity Guide
  • β–ΈPrinted Secret Coders Form
  • β–ΈFlippy Do (printed, or use the digital version)
  • β–ΈScissors, if printing the Flippy Do to cut the flaps
  • β–ΈPennies, small coins, game chips or small pieces of paper
  • β–ΈA way to play the video for the class
  • β–ΈOptional: computers or devices for the binary conversion games
🌍

Real-World Applications

The binary number system powers almost every modern technology we use. Common examples are:

πŸ’ΎDigital data storage
🌐Internet and networking
πŸ”Encryption and cybersecurity
🏠Smart home and electronic devices
πŸš€

Extensions & Cross-Curricular

ExtensionStudents count from 0 to 31 on the Flippy Do and look for patterns in how each column switches on and off.
MathStudents make a table of the binary place values (1, 2, 4, 8, 16 and so on), notice that each one doubles, and compare it to the place values of decimal numbers (1, 10, 100).
Lang ArtsStudents write a short secret message with the Secret Coder letter code, trade with a partner, and decode each other's messages.
ScienceStudents explain why a computer uses only 0 and 1 by connecting it to a switch or a circuit that is either on or off.
πŸ”€

Vocabulary

β–Ύ
Binary - A base-2 number system using only the digits 0 and 1.
Bit - The smallest unit of data in computing, representing a 0 or a 1.
Byte - A unit of data equal to 8 bits.
Data - Values such as numbers, text, clicks or measurements that a computer can store and process.
Decimal - A base-10 number system using digits 0-9.
πŸ“

Standards

β–Ύ

CSTA Standards - Grades 9-10

3A-DA-09

AP CSP Framework

DAT-1.A - Explain how data can be represented using bits.
DAT-1.C - Calculate the binary equivalent of a positive integer and vice versa. Compare and order binary numbers.
πŸ“
Preparing for the Lesson
  • Prepare the video in advance to make sure you can play it in your classroom, or use a different video to introduce binary numbers.
  • Print the Activity Guide and the Secret Coders Form (the PDF for Activity 2 goes with the video).
  • Gather pennies, small coins, game chips or small pieces of paper for the manipulative.
  • Print the Flippy Do and supply scissors for cutting the flaps, or use the digital version.
  • Decide if the warm-up will be digital or printed.

πŸ§‘β€πŸ«
Teacher Notes
  • This lesson works well individually, with partners, or in groups of three.
  • This lesson gives students information about binary numbers and lots of time to practice. There are many ways to teach binary numbers. This lesson gives one way, but you can modify the slides if you have a different way of teaching binary.
  • The lesson uses a video to introduce binary numbers. Prepare the video in advance to ensure you can play it in your classroom. Or use a different video to introduce binary numbers.
  • The PDF for Activity 2 goes with the video. If you use a different method for teaching binary, you do not have to use this manipulative. Students will need small coins or game chips, or even small pieces of paper, to use with the manipulative.
  • I highly recommend using the flippy-do for Activity 3. It is a helpful unplugged device. You can print the Flippy do or use a digital version of the flippy-do. If you print the flippy do, supply scissors for cutting the flaps.
  • The assignment gives the links to three binary conversion games that are fun for extra practice or as a challenge.
πŸ—ΊοΈ

Lesson Outline

This outline gives one way to present the lesson.

πŸ—£οΈWarm-up

Start with the warm-up activity in the Activity Guide (slides 2-3). Decide if you want it to be digital or printed. The warm-up can be a group or whole-class activity where students show 7 in as many ways as they can think of. Students can even use individual white boards and display their answers.

πŸ“–Activity 1 - Video

Slides 4-5: Watch the video.

Teaching tip: The suggested video is from the book series "Secret Coders" and has a good way of introducing binary numbers to students with no experience, using boxes.
✏️Activities 1A, 1B, 1C - Secret Coder Form

πŸ’» Students work in pairs or individually using the manipulatives. Pairs or groups of three work best. Each pair or group needs an activity paper and some pennies or small tokens.

Teaching tip: Part 1: Slides 6-7 give an example. Students use the Secret Coder Form with boxes to convert a number to binary.
Teaching tip: Part 2: Slides 8-9 give an example. Students again use the Secret Coder Form with boxes. This time they convert binary to decimal.
Teaching tip: Part 3: Slide 10 gives instructions. Students use the second side of the Secret Coder Form with boxes to decode a word. Students must change a decimal to binary and then find the letter it represents.
✏️Activity 2 - Flippy Do

πŸ’» The lesson expands the binary code by increasing the number of columns. Go through slides 11-13, which includes watching the remainder of the video. Have a class discussion as needed.

Teaching tip: Instructions: Slides 14-18 show how to set up and use the flippy do. Slide 18 is an example. Do more examples together, if needed.
Teaching tip: Activity: Students use the flippy do to complete the second activity in the Activity Guide.
πŸ§‘β€πŸ€β€πŸ§‘Wrap-Up

πŸ’» Use slides 19-20 to summarize binary numbers. Students review what they learned with the wrap-up matching activity in the Activity Guide.

Teaching tip: Students are given binary numbers and decimal numbers and they match the pairs. They can use their flippy-dos. Or, if you want to prepare them for the AP Exam when they will not have the flippy-do, they can create a simple binary chart like the one on slide 9 and use it for conversion.

πŸ’» After the activities, if students have time, they can practice their conversion skills by playing a binary game. Three links to games, all similar, are provided in the Activity Guide.

βœ… Students turn in the Activity Guide as an assessment. You can also create an exit ticket with a couple of conversion problems to gauge their mastery.

βœ… Formative assessment:

  • Daily reflection journal
  • Activity Guide completion
  • Class discussion on what they learned about binary and decimal numbers
  • Exit ticket