SlideShare ist ein Scribd-Unternehmen logo
1 von 26
L.O: STUDENTS WILL
UNDERSTAND AND USE
BINARY REPRESENTATION.
30-60 minutes (1-2 class periods)
DO NOW: what is the value of the
following numbers?
0000, 0001, 0010, 0011, 1111, 10000?
•0000
•0001
•0010
•0011
•1111
•10000
This is 0
This is 1
This is 2
This is 3
This is
15
This is
16
What is the
value of each of
these numbers?
Today, you
will learn
WHY and
HOW!
Have you ever seen this movie?What were the directors trying to
show by filming scenes like this?
This is BINARY;
the REAL “language” of computers!
Binary number is a representation of
numbers using only two digits (0 and 1)
People typically work with
DECIMAL numbers using the base
10 (decimal) numeral system…
other systems
are relevant in
computer
science,
including
binary (base 2)
and
hexadecimal
(base 16).
Computers manage data packed as
sequences of bits (binary digits),
which are all zeros or ones.
People are most familiar with base 10, so
we write software that allows people to
use base 10 to communicate with the
computer.
In base 10, there are ten digits (0-9),
and each place is worth ten times the
place to its right.
In binary, base 2, there are only two digits
(0 and 1), and each place is worth two
times the place to its right.
The subscript 2 on
11012 means the 1101 is
in base 2. Numbers are
normally written in base
10, so a subscript 10 is
only used when needed
for clarity.
For You To Do: Watch this Binary Timer Snap!
program run. Write a description of the binary
counter's behavior. Explain what you see going on.
base 10
• In base 10 notation, each place value
represents a power of ten: the units
place (100 = 1), the tens place (101 = 10),
the hundreds place (102 = 100), the
thousands place (103 = 1000), etc. So, for
example:
9827 = 9 × 103 + 8 × 102 + 2 × 101 + 7 × 100
Reading Binary
• Base 2 uses the same idea but with powers of two
instead of powers of ten. Binary place values
represent the units place (20 = 1), the twos place
(21 = 2), the fours place (22 = 4), the eights place (23
= 8), the sixteens place (24 = 16), etc. So, for
example:
100102 = 1 × 24 + 0 × 23 + 0 × 22 + 1 × 21 + 0 ×
20 = 16 + 2 = 1810
We will now watch a video
on abstraction: numbers
https://youtu.be/SqhbDWVOLvk
Binary numbers are a form of abstraction
because the 1’s and 0’s is the “language”
the computer understands.
Binary numbers are abstraction because when
we use a computer, everything we do is
turned into the 1’s and 0’s of binary behind
the “scenes”
How to turn binary (base 2) to decimals
(base 10)
To translate from binary (like 1011012​​ ) to base 10,
1. first, write the number out on paper.
2. Then write out the binary place values by doubling
left from the units place:
1 0 1 1 0 1
32 16 8 4 2 1
This means this number is 32 + 8 + 4 + 1.
So, 101101 2 = 4510
2. Translate these binary numerals into
base 10 notation:
a.1012
b.1112
c.10100112
5
7
83
510
710
8310
Turning decimal into Binary
To translate from base 10 (like 8910 to base 2,
1. first write out the binary place values by doubling
left from the units place until you get to a value
larger than your number. (256 for this example)
2. Then think, "My number is smaller than 128, so I can
leave that place blank
3. But I can take out a 64, so I write a 1 there, and
there's 25 left (89 – 64)
4. I have 0 thirty-twos, because I only have 25. But I can
take out 16,
5. and there's 9 left. So, 8 and 1 are the last nonzero
bits.
89
25
9
1
0
128 64 32 16 8 4 2 1
1 0 1 1 0 0 1
Now, read the number off: 10110012 = 8910
In mathematics and computer science,
an algorithm is a sequence of actions
to be performed.
a. First, find the largest power of two that
fits inside the number.
b. Then, subtract that power of 2 from the
number, keep the new number, and
record a 1 in the place for that power of
2.
Algorithms perform
calculations, data processing
and/or automated tasks.
Here's an algorithm you can follow to find the
base 2 representation of any base 10 integer:
c. Then, determine if the next largest
power of 2 fits inside the new number,
and:
• If it does, subtract that power of 2
from the number, keep the new
number, and record a 1 in the place
for that power of 2.
• If it doesn't, keep the same number,
and record a 0 for that power of 2
d. Repeat this whole step with the
next largest power of 2 until you
have a bit (1 or 0) for all the
remaining places down to and
including the ones place (by which
point you should have nothing left
of the original number).
The string of ones and
zeros you have recorded
is the binary
representation of your
original number.
Note:
wikiHow shows another way to
change binary to decimals, with an
explanation.
Next week, I’m going to have you make a
BINARY TIMER using SNAP!
Independent assessment:
Represent these base 10 numerals in binary (base 2):
a.63
b.64
c. 65
d.129
e.128
f. 127
111111
1000000
1000001
10000001
10000000
1111111
a.6310 = 1111112
b.6410 = 10000002
c.6510 = 10000012
d.12910 = 100000012
e.12810 = 100000002
f.12710 = 11111112
Homework:
complete the binary to
decimal/ decimal to binary
work sheet
Learning Objectives:
• LO 2.1.1 Describe the variety of
abstractions used to represent
data. [P3]
• LO 2.1.2 Explain how binary
sequences are used to represent
digital data. [P5]
Enduring Understandings:
•EU 2.1 A variety of
abstractions built upon
binary sequences can be
used to represent all
digital data.
Essential Knowledge:
1. EK 2.1.1A Digital data is represented by
abstractions at different levels.
2. EK 2.1.1B At the lowest level, all digital data are
represented by bits.
3. EK 2.1.1C At a higher level, bits are grouped to
represent abstractions, including but not limited
to numbers, characters, and color.
4. EK 2.1.1D Number bases, including binary,
decimal, and hexadecimal, are used to represent
and investigate digital data
Essential Knowledge:
• 5. EK 2.1.1E At one of the lowest levels of
abstraction, digital data is represented in binary
(base 2) using only combinations of the digits zero
and one.
• 6. EK 2.1.1F Hexadecimal (base 16) is used to
represent digital data because hexadecimal
representation uses fewer digits than binary.
• 7. EK 2.1.1G Numbers can be converted from any
base to any other base.
• 8. EK 2.1.2A A finite representation is used to
model the infinite mathematical concept of a
number.
Essential Knowledge:
• 9. EK 2.1.2B In many programming languages, the
fixed number of bits used to represent characters
or integers limits the range of integer values and
mathematical operations; this limitation can result
in overflow or other errors.
• 10.EK 2.1.2C In many programming languages, the
fixed number of bits used to represent real
numbers (as floating point numbers) limits the
range of floating point values and mathematical
operations; this limitation can result in round off
and other errors.
Essential Knowledge:
• 11. EK 2.1.2D The interpretation of a binary sequence
depends on how it is used.
• 12. EK 2.1.2E A sequence of bits may represent
instructions or data.
• 13. EK 2.1.2F A sequence of bits may represent
different types of data in different contexts.
• 14. EK 6.2.2J The bandwidth of a system is a measure
of bit rate—the amount of data (measured in bits)
that can be sent in a fixed amount of time.
• 15. EK 6.2.2K The latency of a system is the time
elapsed between the transmission and the receipt of a
request.

Weitere ähnliche Inhalte

Was ist angesagt?

Computer number systems
Computer number systemsComputer number systems
Computer number systems
Revi Shahini
 
Number system....
Number system....Number system....
Number system....
mshoaib15
 
Number system
Number systemNumber system
Number system
kashee99
 
2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpu
Wan Afirah
 

Was ist angesagt? (20)

Computer number systems
Computer number systemsComputer number systems
Computer number systems
 
Number system
Number systemNumber system
Number system
 
Number systems
Number systemsNumber systems
Number systems
 
ALL ABOUT NUMBER SYSTEMS
ALL ABOUT NUMBER SYSTEMSALL ABOUT NUMBER SYSTEMS
ALL ABOUT NUMBER SYSTEMS
 
Basic of number system
Basic of number systemBasic of number system
Basic of number system
 
Number System Conversion | BCA
Number System Conversion | BCANumber System Conversion | BCA
Number System Conversion | BCA
 
Number system....
Number system....Number system....
Number system....
 
Number system computer fundamental
 Number  system computer fundamental  Number  system computer fundamental
Number system computer fundamental
 
Number system
Number systemNumber system
Number system
 
Octal and Hexadecimal Numbering Systems
Octal and Hexadecimal Numbering SystemsOctal and Hexadecimal Numbering Systems
Octal and Hexadecimal Numbering Systems
 
01.Number Systems
01.Number Systems01.Number Systems
01.Number Systems
 
Number system
Number systemNumber system
Number system
 
Number System
Number SystemNumber System
Number System
 
Number system
Number systemNumber system
Number system
 
1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM
 
Number system
Number systemNumber system
Number system
 
Number system
Number system Number system
Number system
 
2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpu
 
data representation
 data representation data representation
data representation
 
Number+system (1)
Number+system (1)Number+system (1)
Number+system (1)
 

Andere mochten auch

Certificate Ian Dimalibot.PDF
Certificate Ian Dimalibot.PDFCertificate Ian Dimalibot.PDF
Certificate Ian Dimalibot.PDF
Ian Dimalibot
 
30การปรับเปลี่ยนพฤติกรรมความรับผิดชอบของนักเรียนปวช.(นางสาววัชรีย์ อินถาวร)
30การปรับเปลี่ยนพฤติกรรมความรับผิดชอบของนักเรียนปวช.(นางสาววัชรีย์ อินถาวร)30การปรับเปลี่ยนพฤติกรรมความรับผิดชอบของนักเรียนปวช.(นางสาววัชรีย์ อินถาวร)
30การปรับเปลี่ยนพฤติกรรมความรับผิดชอบของนักเรียนปวช.(นางสาววัชรีย์ อินถาวร)
Yeah Pitloke
 
Sophie Krotoff portfolio Yves Rocher
Sophie Krotoff portfolio Yves RocherSophie Krotoff portfolio Yves Rocher
Sophie Krotoff portfolio Yves Rocher
Sophie Krotoff
 

Andere mochten auch (20)

Lesson4.9 a u4l2 html
Lesson4.9 a u4l2 htmlLesson4.9 a u4l2 html
Lesson4.9 a u4l2 html
 
Lesson4.4 u4 l1 using hex
Lesson4.4 u4 l1 using hexLesson4.4 u4 l1 using hex
Lesson4.4 u4 l1 using hex
 
Lesson4.3 u4 l1 hexadecimal representation
Lesson4.3 u4 l1 hexadecimal representationLesson4.3 u4 l1 hexadecimal representation
Lesson4.3 u4 l1 hexadecimal representation
 
Lesson4.6 u4 l2 what is the internet?
Lesson4.6 u4 l2 what is the internet?Lesson4.6 u4 l2 what is the internet?
Lesson4.6 u4 l2 what is the internet?
 
Lesson4.7 u4 l2 network redundancy
Lesson4.7 u4 l2 network redundancyLesson4.7 u4 l2 network redundancy
Lesson4.7 u4 l2 network redundancy
 
Lesson4.9 b u4l3 ip addresses
Lesson4.9 b u4l3 ip addressesLesson4.9 b u4l3 ip addresses
Lesson4.9 b u4l3 ip addresses
 
Lesson4.9 d u4l3 hierarchy of open protocols
Lesson4.9 d u4l3 hierarchy of open protocolsLesson4.9 d u4l3 hierarchy of open protocols
Lesson4.9 d u4l3 hierarchy of open protocols
 
Lesson4.8 u4 l2 address hierarchy
Lesson4.8 u4 l2 address hierarchyLesson4.8 u4 l2 address hierarchy
Lesson4.8 u4 l2 address hierarchy
 
Lesson4.0 unit 4 the internet and global impact
Lesson4.0 unit 4  the internet and global impactLesson4.0 unit 4  the internet and global impact
Lesson4.0 unit 4 the internet and global impact
 
Lesson4.9 c u4l3 tcp (transmission control protocol)
Lesson4.9 c u4l3 tcp (transmission control protocol)Lesson4.9 c u4l3 tcp (transmission control protocol)
Lesson4.9 c u4l3 tcp (transmission control protocol)
 
Lesson4.2 u4 l1 binary squences
Lesson4.2 u4 l1 binary squencesLesson4.2 u4 l1 binary squences
Lesson4.2 u4 l1 binary squences
 
За успехи в учебе!
За успехи в учебе!За успехи в учебе!
За успехи в учебе!
 
Tha price of a g.pt.5.jpeg.doc's
Tha price of a g.pt.5.jpeg.doc'sTha price of a g.pt.5.jpeg.doc's
Tha price of a g.pt.5.jpeg.doc's
 
Certificate Ian Dimalibot.PDF
Certificate Ian Dimalibot.PDFCertificate Ian Dimalibot.PDF
Certificate Ian Dimalibot.PDF
 
The Digital Garage Certification
The Digital Garage CertificationThe Digital Garage Certification
The Digital Garage Certification
 
Tha price of knowledge.pt.5.jpeg.doc's
Tha price of knowledge.pt.5.jpeg.doc'sTha price of knowledge.pt.5.jpeg.doc's
Tha price of knowledge.pt.5.jpeg.doc's
 
CATÁLOGO PROFISSÕES ALM. QUAD.
CATÁLOGO PROFISSÕES ALM. QUAD.CATÁLOGO PROFISSÕES ALM. QUAD.
CATÁLOGO PROFISSÕES ALM. QUAD.
 
Imprimir para la sala
Imprimir para la salaImprimir para la sala
Imprimir para la sala
 
30การปรับเปลี่ยนพฤติกรรมความรับผิดชอบของนักเรียนปวช.(นางสาววัชรีย์ อินถาวร)
30การปรับเปลี่ยนพฤติกรรมความรับผิดชอบของนักเรียนปวช.(นางสาววัชรีย์ อินถาวร)30การปรับเปลี่ยนพฤติกรรมความรับผิดชอบของนักเรียนปวช.(นางสาววัชรีย์ อินถาวร)
30การปรับเปลี่ยนพฤติกรรมความรับผิดชอบของนักเรียนปวช.(นางสาววัชรีย์ อินถาวร)
 
Sophie Krotoff portfolio Yves Rocher
Sophie Krotoff portfolio Yves RocherSophie Krotoff portfolio Yves Rocher
Sophie Krotoff portfolio Yves Rocher
 

Ähnlich wie Lesson4.1 u4 l1 binary representation

Binary reference guide csit vn1202
Binary reference guide csit vn1202Binary reference guide csit vn1202
Binary reference guide csit vn1202
jrwalker2012
 

Ähnlich wie Lesson4.1 u4 l1 binary representation (20)

As Level Computer Science Book -1
As Level Computer Science  Book -1As Level Computer Science  Book -1
As Level Computer Science Book -1
 
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
 
digitalelectronics.ppt
digitalelectronics.pptdigitalelectronics.ppt
digitalelectronics.ppt
 
fundamentals.ppt
fundamentals.pptfundamentals.ppt
fundamentals.ppt
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1
 
fundamentals.ppt
fundamentals.pptfundamentals.ppt
fundamentals.ppt
 
Chapter 3-Data Representation in Computers.ppt
Chapter 3-Data Representation in Computers.pptChapter 3-Data Representation in Computers.ppt
Chapter 3-Data Representation in Computers.ppt
 
Data representation
Data representationData representation
Data representation
 
Binary reference guide csit vn1202
Binary reference guide csit vn1202Binary reference guide csit vn1202
Binary reference guide csit vn1202
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
uyuyuy.pdf
uyuyuy.pdfuyuyuy.pdf
uyuyuy.pdf
 
Number Systems
Number SystemsNumber Systems
Number Systems
 
Number system
Number system  Number system
Number system
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
 
Number system
Number systemNumber system
Number system
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
 
Okkkkk
OkkkkkOkkkkk
Okkkkk
 
Number_Systems (2).ppt
Number_Systems (2).pptNumber_Systems (2).ppt
Number_Systems (2).ppt
 

Mehr von Lexume1

117 ways regents_review_1of_2_sc
117 ways regents_review_1of_2_sc117 ways regents_review_1of_2_sc
117 ways regents_review_1of_2_sc
Lexume1
 
Earthsciregentsreview(with explainations & examples)
Earthsciregentsreview(with explainations & examples)Earthsciregentsreview(with explainations & examples)
Earthsciregentsreview(with explainations & examples)
Lexume1
 
Review 10 meteorology_sc
Review 10 meteorology_scReview 10 meteorology_sc
Review 10 meteorology_sc
Lexume1
 

Mehr von Lexume1 (19)

Lesson flow charts 2
Lesson flow charts 2Lesson flow charts 2
Lesson flow charts 2
 
Lesson flow charts 1
Lesson flow charts 1Lesson flow charts 1
Lesson flow charts 1
 
Ap exam big idea 7 global impact
Ap exam big idea 7 global impactAp exam big idea 7 global impact
Ap exam big idea 7 global impact
 
Lesson pseudocode
Lesson  pseudocodeLesson  pseudocode
Lesson pseudocode
 
Ap exam big idea 6 the internet
Ap exam big idea 6 the internetAp exam big idea 6 the internet
Ap exam big idea 6 the internet
 
Ap exam big idea 5 programming
Ap exam big idea 5 programmingAp exam big idea 5 programming
Ap exam big idea 5 programming
 
Ap exam big idea 4 algorithms
Ap exam big idea 4 algorithmsAp exam big idea 4 algorithms
Ap exam big idea 4 algorithms
 
Ap exam big idea 3 data and information
Ap exam big idea 3 data and informationAp exam big idea 3 data and information
Ap exam big idea 3 data and information
 
Ap exam big idea 2 abstraction
Ap exam big idea 2 abstractionAp exam big idea 2 abstraction
Ap exam big idea 2 abstraction
 
Lesson2.9 o u2l6 who cares about encryption
Lesson2.9 o u2l6 who cares about encryptionLesson2.9 o u2l6 who cares about encryption
Lesson2.9 o u2l6 who cares about encryption
 
Lesson2.9 p u2l6 cryptography and innovations
Lesson2.9 p u2l6 cryptography and innovationsLesson2.9 p u2l6 cryptography and innovations
Lesson2.9 p u2l6 cryptography and innovations
 
Lesson2.9 o u2l6 who cares about encryption
Lesson2.9 o u2l6 who cares about encryptionLesson2.9 o u2l6 who cares about encryption
Lesson2.9 o u2l6 who cares about encryption
 
Lesson2.9 p u2l6 cryptography and innovations
Lesson2.9 p u2l6 cryptography and innovationsLesson2.9 p u2l6 cryptography and innovations
Lesson2.9 p u2l6 cryptography and innovations
 
Lesson2.9 n u2l6 public keys
Lesson2.9 n u2l6 public keysLesson2.9 n u2l6 public keys
Lesson2.9 n u2l6 public keys
 
Lesson2.9 m u2l6 secret keys
Lesson2.9 m u2l6 secret keysLesson2.9 m u2l6 secret keys
Lesson2.9 m u2l6 secret keys
 
Lesson2.9 l u2l6 secrets encoding and decoding
Lesson2.9 l u2l6 secrets encoding and decodingLesson2.9 l u2l6 secrets encoding and decoding
Lesson2.9 l u2l6 secrets encoding and decoding
 
117 ways regents_review_1of_2_sc
117 ways regents_review_1of_2_sc117 ways regents_review_1of_2_sc
117 ways regents_review_1of_2_sc
 
Earthsciregentsreview(with explainations & examples)
Earthsciregentsreview(with explainations & examples)Earthsciregentsreview(with explainations & examples)
Earthsciregentsreview(with explainations & examples)
 
Review 10 meteorology_sc
Review 10 meteorology_scReview 10 meteorology_sc
Review 10 meteorology_sc
 

Kürzlich hochgeladen

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Kürzlich hochgeladen (20)

Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 

Lesson4.1 u4 l1 binary representation

  • 1. L.O: STUDENTS WILL UNDERSTAND AND USE BINARY REPRESENTATION. 30-60 minutes (1-2 class periods) DO NOW: what is the value of the following numbers? 0000, 0001, 0010, 0011, 1111, 10000?
  • 2. •0000 •0001 •0010 •0011 •1111 •10000 This is 0 This is 1 This is 2 This is 3 This is 15 This is 16 What is the value of each of these numbers? Today, you will learn WHY and HOW!
  • 3. Have you ever seen this movie?What were the directors trying to show by filming scenes like this? This is BINARY; the REAL “language” of computers! Binary number is a representation of numbers using only two digits (0 and 1)
  • 4. People typically work with DECIMAL numbers using the base 10 (decimal) numeral system… other systems are relevant in computer science, including binary (base 2) and hexadecimal (base 16). Computers manage data packed as sequences of bits (binary digits), which are all zeros or ones. People are most familiar with base 10, so we write software that allows people to use base 10 to communicate with the computer.
  • 5. In base 10, there are ten digits (0-9), and each place is worth ten times the place to its right.
  • 6. In binary, base 2, there are only two digits (0 and 1), and each place is worth two times the place to its right. The subscript 2 on 11012 means the 1101 is in base 2. Numbers are normally written in base 10, so a subscript 10 is only used when needed for clarity.
  • 7. For You To Do: Watch this Binary Timer Snap! program run. Write a description of the binary counter's behavior. Explain what you see going on.
  • 8. base 10 • In base 10 notation, each place value represents a power of ten: the units place (100 = 1), the tens place (101 = 10), the hundreds place (102 = 100), the thousands place (103 = 1000), etc. So, for example: 9827 = 9 × 103 + 8 × 102 + 2 × 101 + 7 × 100
  • 9. Reading Binary • Base 2 uses the same idea but with powers of two instead of powers of ten. Binary place values represent the units place (20 = 1), the twos place (21 = 2), the fours place (22 = 4), the eights place (23 = 8), the sixteens place (24 = 16), etc. So, for example: 100102 = 1 × 24 + 0 × 23 + 0 × 22 + 1 × 21 + 0 × 20 = 16 + 2 = 1810
  • 10. We will now watch a video on abstraction: numbers https://youtu.be/SqhbDWVOLvk
  • 11. Binary numbers are a form of abstraction because the 1’s and 0’s is the “language” the computer understands. Binary numbers are abstraction because when we use a computer, everything we do is turned into the 1’s and 0’s of binary behind the “scenes”
  • 12. How to turn binary (base 2) to decimals (base 10) To translate from binary (like 1011012​​ ) to base 10, 1. first, write the number out on paper. 2. Then write out the binary place values by doubling left from the units place: 1 0 1 1 0 1 32 16 8 4 2 1 This means this number is 32 + 8 + 4 + 1. So, 101101 2 = 4510
  • 13. 2. Translate these binary numerals into base 10 notation: a.1012 b.1112 c.10100112 5 7 83 510 710 8310
  • 14. Turning decimal into Binary To translate from base 10 (like 8910 to base 2, 1. first write out the binary place values by doubling left from the units place until you get to a value larger than your number. (256 for this example) 2. Then think, "My number is smaller than 128, so I can leave that place blank 3. But I can take out a 64, so I write a 1 there, and there's 25 left (89 – 64) 4. I have 0 thirty-twos, because I only have 25. But I can take out 16, 5. and there's 9 left. So, 8 and 1 are the last nonzero bits.
  • 15. 89 25 9 1 0 128 64 32 16 8 4 2 1 1 0 1 1 0 0 1 Now, read the number off: 10110012 = 8910
  • 16. In mathematics and computer science, an algorithm is a sequence of actions to be performed. a. First, find the largest power of two that fits inside the number. b. Then, subtract that power of 2 from the number, keep the new number, and record a 1 in the place for that power of 2. Algorithms perform calculations, data processing and/or automated tasks. Here's an algorithm you can follow to find the base 2 representation of any base 10 integer: c. Then, determine if the next largest power of 2 fits inside the new number, and: • If it does, subtract that power of 2 from the number, keep the new number, and record a 1 in the place for that power of 2. • If it doesn't, keep the same number, and record a 0 for that power of 2 d. Repeat this whole step with the next largest power of 2 until you have a bit (1 or 0) for all the remaining places down to and including the ones place (by which point you should have nothing left of the original number). The string of ones and zeros you have recorded is the binary representation of your original number.
  • 17. Note: wikiHow shows another way to change binary to decimals, with an explanation.
  • 18. Next week, I’m going to have you make a BINARY TIMER using SNAP!
  • 19. Independent assessment: Represent these base 10 numerals in binary (base 2): a.63 b.64 c. 65 d.129 e.128 f. 127 111111 1000000 1000001 10000001 10000000 1111111 a.6310 = 1111112 b.6410 = 10000002 c.6510 = 10000012 d.12910 = 100000012 e.12810 = 100000002 f.12710 = 11111112
  • 20. Homework: complete the binary to decimal/ decimal to binary work sheet
  • 21. Learning Objectives: • LO 2.1.1 Describe the variety of abstractions used to represent data. [P3] • LO 2.1.2 Explain how binary sequences are used to represent digital data. [P5]
  • 22. Enduring Understandings: •EU 2.1 A variety of abstractions built upon binary sequences can be used to represent all digital data.
  • 23. Essential Knowledge: 1. EK 2.1.1A Digital data is represented by abstractions at different levels. 2. EK 2.1.1B At the lowest level, all digital data are represented by bits. 3. EK 2.1.1C At a higher level, bits are grouped to represent abstractions, including but not limited to numbers, characters, and color. 4. EK 2.1.1D Number bases, including binary, decimal, and hexadecimal, are used to represent and investigate digital data
  • 24. Essential Knowledge: • 5. EK 2.1.1E At one of the lowest levels of abstraction, digital data is represented in binary (base 2) using only combinations of the digits zero and one. • 6. EK 2.1.1F Hexadecimal (base 16) is used to represent digital data because hexadecimal representation uses fewer digits than binary. • 7. EK 2.1.1G Numbers can be converted from any base to any other base. • 8. EK 2.1.2A A finite representation is used to model the infinite mathematical concept of a number.
  • 25. Essential Knowledge: • 9. EK 2.1.2B In many programming languages, the fixed number of bits used to represent characters or integers limits the range of integer values and mathematical operations; this limitation can result in overflow or other errors. • 10.EK 2.1.2C In many programming languages, the fixed number of bits used to represent real numbers (as floating point numbers) limits the range of floating point values and mathematical operations; this limitation can result in round off and other errors.
  • 26. Essential Knowledge: • 11. EK 2.1.2D The interpretation of a binary sequence depends on how it is used. • 12. EK 2.1.2E A sequence of bits may represent instructions or data. • 13. EK 2.1.2F A sequence of bits may represent different types of data in different contexts. • 14. EK 6.2.2J The bandwidth of a system is a measure of bit rate—the amount of data (measured in bits) that can be sent in a fixed amount of time. • 15. EK 6.2.2K The latency of a system is the time elapsed between the transmission and the receipt of a request.

Hinweis der Redaktion

  1. Lab 1: Number Representation: This lab addreses the requirements of AP CSP Enduring Understanding 2.1.2, "Explain how binary sequences are used to represent digital data." (It does not cover hardware abstraction levels.) The first page introduces binary representation as a place value system just like decimal representation, but with only two digits (0 and 1) instead of ten (0 through 9). The second page explains how a sequence of bits can represent information other than integers, and in particular explains floating point as an approximation for real numbers. The third page introduces hexadecimal representation, which uses sixteen digits (0-9 and A-F), building on students' understanding of binary. On the fourth page, students learn to translate between hex and binary and about the use of hex in RGB colors. The last page is an optional project in which students build a decimal-to-binary conversion procedure based on and reviewing their work with base 2 representation
  2. Goals for the Lab: Page 1: Binary Representation. Understand how numbers are stored in binary notation. Understand how to translate numbers between binary and decimal notations.
  3. Goals for the Lab: Page 1: Binary Representation. Understand how numbers are stored in binary notation. Understand how to translate numbers between binary and decimal notations.
  4. Goals for the Lab: Page 1: Binary Representation. Understand how numbers are stored in binary notation. Understand how to translate numbers between binary and decimal notations.
  5. Page 1: Binary Representation. Don't try to teach students to do binary arithmetic. The goal is for students to learn to translate between representations.
  6. Abstraction is one of the BIG IDEAS on the AP exam. BINARY IS ABSTRACTION because the pictures, words, program languages that you see are actually “1’s and 0’s in binary code.
  7. Page 1: Binary Representation. Don't try to teach students to do binary arithmetic. The goal is for students to learn to translate between representations.
  8. Page 1: Binary Representation. Don't try to teach students to do binary arithmetic. The goal is for students to learn to translate between representations.
  9. Page 1: Binary Representation. Don't try to teach students to do binary arithmetic. The goal is for students to learn to translate between representations.
  10. Page 1: Binary Representation. Don't try to teach students to do binary arithmetic. The goal is for students to learn to translate between representations.
  11. Page 1: Binary Representation. Don't try to teach students to do binary arithmetic. The goal is for students to learn to translate between representations.