Binary Number System
Summary
Materials
Instructional Activities and Classroom Assessments
- Introduction to the Binary Number System (5 minutes)
- Convert Decimal Numbers to Binary Numbers (15 minutes)
- Patterns in the Binary Number System (5 minutes)
- Practice Binary/Decimal Conversions (10 minutes)
- Bytes in the Real World (5 minutes)
- Homework
Learning Objectives
Essential Knowledge
- DAT-1.A.1 Data values can be stored in variables, lists of items, or standalone constants and can be passed as input to (or output from) procedures.
- DAT-1.A.2 Computing devices represent data digitally, meaning that they lowest-level components of any value are bits.
- DAT-1.A.3 Bit is shorthand for binary digit and is either 0 or 1.
- DAT-1.A.4 A byte is 8 bits.
- DAT-1.A.5 Abstraction is the process of reducing complexity by focusing on the main idea. By hiding details irrelevant to the question at hand and bringing together related and useful details, abstraction reduces complexity and allows one to focus on the idea.
- DAT-1.A.6 Bits are grouped to represent abstractions. These abstractions include, but are not limited to, numbers, characters, and color.
- DAT-1.C.1 Number bases, including binary and decimal, are used to represent data.
- DAT-1.C.2 Binary (base 2) uses only combinations of the digits zero and one.
- DAT-1.C.3 Decimal (base 10) uses only combinations of the digits 0-9.
- [DAT-1.C.4]90 As with decimal, a digit's position in the library sequence determines its numeric value. The numeric value is equal to the bit's value (0 or 1) multiplied by the place value of its position.
- DAT-1.C.5 The place value of each position is determined by the base raised to the power of the position. Positions are numbered starting at the rightmost position with 0 and increasing by 1 for each subsequent position to the left.
Details
1. Introduction to the Binary Number System (5 minutes)
- Explain bits and bytes
- How Exactly Does Binary Code Work? video (4:39)
- Explain how to convert bits to bytes & bytes to bits
2. Convert Decimal Numbers to Binary Numbers (15 minutes)
- Remind students of decimal number system.
- Explain binary number system.
- Show process for converting decimal numbers to binary numbers.
- Practice conversions using numbers generated from random.org.
- Have students list their steps as they convert their numbers.
3. Patterns in the Binary Number System (5 minutes)
- Explain the pattern for odd numbers.
- Explain the pattern for binary numbers that are all ones.
4. Practice Binary/Decimal Conversions (10 minutes)
- Go to Penjee.com binary numbers game.
- Practice making binary/decimal conversions.
5. Bytes in the real world (5 minutes)
- Share file types and sizes
- Review kilo, mega, giga, tera
6. Homework
- Complete the Binary Homework page.
7. Challenge
- Using your decimal to binary conversion steps as your pseudocode, create a decimal to binary calculator in MakeCode.