SlideShare a Scribd company logo
L.O: STUDENTS WILL BE
ABLE TO EXPLAIN HOW
COMPUTERS USE HEX.
30-60 minutes (about 1 class period)
DO NOW: READ
Unit 4 Lab 1: Number
Representation, Page 4
Using
Hex:
THIS SUITCASE
IS BINARY
THIS SUITCASE IS
HEX
We can pack four bits (binary
digits) into one hexadecimal
digit because 16 is a power of
two (16 = 24).
So, a group of four bits
represents a value between 0
and 15, and one hex digit also
represents values from 0-15
(using 0-9 and A-F). This
makes it easier to translate
between binary and hex than
between other bases.
Translating between
Binary and Hex
• To translate a binary numeral (like
11010111012) to hexadecimal,
start by splitting it into groups of
four bits, from right-to-left (like
this: 11 0101 1101)
• Then determine the value of each
group and write the
corresponding hex digit (look it up
on the table at right)
BINARY HEX
00002 016
00012 116
00102 216
00112 316
01002 416
01012 516
01102 616
01112 716
10002 816
10012 916
10102 A16
10112 B16
11002 C16
11012 D16
11102 E16
You can create a table like this
whenever you need one
EX: 112 = 316, 01012 = 516, and 1101 =
D16.
So, 1101011101​2
=35D16
​​ .
FOR YOU TO DO:
Translate these binary numerals to
hexadecimal notation:
1.1110112
2.11011112
3.101100012
BINARY HEX
00002 016
00012 116
00102 216
00112 316
01002 416
01012 516
01102 616
01112 716
10002 816
10012 916
10102 A16
10112 B16
11002 C16
11012 D16
11102 E16
Translating Hex TO
BINARY
• To translate a HEX numeral (like
4E116) to Binary, write each
hex digit as a group of four
bits, ( write that way even
if the binary
representation doesn’t
need all four digits)
• For ex: 416 = 01002, E16 =
11102, and 1 = 00012.
BINARY HEX
00002 016
00012 116
00102 216
00112 316
01002 416
01012 516
01102 616
01112 716
10002 816
10012 916
10102 A16
10112 B16
11002 C16
11012 D16
11102 E16
You can create a table like this
whenever you need one
4E116 =0100111000012 or just 10011100001​2
Translate these
hexadecimal numerals to
binary notation:
a. 1816
b.5D16
c. F816
Remember: practice makes perfect.
On the AP exam, you’ll have to
translate binary to hex and vice
versa!
Hexadecimal Colors
How do you think a computer
knows what color to make an
object?
Computers have several ways of
representing colors: RGB (red, green, blue)
CMYK (cyan, magenta, yellow, black)….
RGB (red, green, blue) is used for screen displays,
They use CMYK (cyan, magenta, yellow, black) is used for
printing…
On a computer screen, each pixel—each dot that
makes up the picture on the screen—is assigned an
RGB color defined by the intensity of red, green, and
blue in that color.
The three color intensities each range from 0
to 255 (one byte is used for each of the three
colors), which is 00 to FF in hex notation.
If (R, G, B) = (128, 0, 255), the color is
purple: some red and a lot of blue, but no
green at all.
If all three colors are as bright as
possible (all are 255), we see white
if they are as dark as possible
(0,0,0), we see black.
Instead of writing (255, 255, 255) for white and (128, 0, 255)
for purple, we often use hex notation: FFFFFF and 8000FF.
And this color is red 255, green 127, and blue 0, which is
FF7F00 in hex.
Represent these colors in hex notation:
a.red 0, green 149, and blue 235
b.red 128, green 90, and blue 0
c. red 163, green 0, and blue 84
a.red 0, green 149, and blue 235 is 0095EB in
hex
b.red 128, green 90, and blue 0 is 805A00 in
hex
c.red 163, green 0, and blue 84 is A30054 in
hex
•Predict what this RGB
color will look like based
on its values: red 145,
green 0, blue 226.
•Predict what this hex RGB
color will look like: 04FF61.
If There Is Time…
• Explore this RGB/HEX color
converter:
http://hex.colorrrs.com/
• Play with this Interactive Color
Wheel
• Read more about RGB colors and
hexadecimal notation.
Take It Further (Extension Activities)
A. Load the Snap! RGB library into one of your
projects to explore RGB color further. In the
File menu, choose "Libraries..." and then
choose "Set RGB or HSV pen color". This will
give you a new "Pen" block:
As in all Snap! blocks, the
numeric input slots take values
in base 10 (not hex). Each color
component has a value between
0 and 255
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.

More Related Content

What's hot

Number System
Number SystemNumber System
Number System
Web Designer
 

What's hot (20)

Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
 
6.number system
6.number system6.number system
6.number system
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Number system
Number systemNumber system
Number system
 
Number system
Number systemNumber system
Number system
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Data Reprersentation
Data Reprersentation  Data Reprersentation
Data Reprersentation
 
Computer architecture data representation
Computer architecture  data representationComputer architecture  data representation
Computer architecture data representation
 
Chapter iii: Number System
Chapter iii: Number SystemChapter iii: Number System
Chapter iii: Number System
 
Assignment statements
Assignment statementsAssignment statements
Assignment statements
 
digital logic circuits, digital component floting and fixed point
 digital logic circuits, digital component floting and fixed point digital logic circuits, digital component floting and fixed point
digital logic circuits, digital component floting and fixed point
 
Number system
Number systemNumber system
Number system
 
Assignment statements
Assignment statementsAssignment statements
Assignment statements
 
Number system
Number systemNumber system
Number system
 
Number System
Number SystemNumber System
Number System
 
Number system
Number systemNumber system
Number system
 
Number System
Number SystemNumber System
Number System
 
Number system
Number systemNumber system
Number system
 
Error detection and correction codes r006
Error detection and correction codes   r006Error detection and correction codes   r006
Error detection and correction codes r006
 

Similar to Lesson4.4 u4 l1 using hex

Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
ekul
 

Similar to Lesson4.4 u4 l1 using hex (20)

hexadecimal notes By ZAK
hexadecimal notes By ZAKhexadecimal notes By ZAK
hexadecimal notes By ZAK
 
1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM
 
Numbersystemcont
NumbersystemcontNumbersystemcont
Numbersystemcont
 
Gsp 215 Future Our Mission/newtonhelp.com
Gsp 215 Future Our Mission/newtonhelp.comGsp 215 Future Our Mission/newtonhelp.com
Gsp 215 Future Our Mission/newtonhelp.com
 
GSP 215 Doing by learn/newtonhelp.com
GSP 215 Doing by learn/newtonhelp.comGSP 215 Doing by learn/newtonhelp.com
GSP 215 Doing by learn/newtonhelp.com
 
GSP 215 Become Exceptional/newtonhelp.com
GSP 215 Become Exceptional/newtonhelp.comGSP 215 Become Exceptional/newtonhelp.com
GSP 215 Become Exceptional/newtonhelp.com
 
GSP 215 Perfect Education/newtonhelp.com
GSP 215 Perfect Education/newtonhelp.comGSP 215 Perfect Education/newtonhelp.com
GSP 215 Perfect Education/newtonhelp.com
 
Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes
 
Lesson4.1 u4 l1 binary representation
Lesson4.1 u4 l1 binary representationLesson4.1 u4 l1 binary representation
Lesson4.1 u4 l1 binary representation
 
Binary codes
Binary codesBinary codes
Binary codes
 
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfCDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
 
data representation
 data representation data representation
data representation
 
GSP 215 Entire Course NEW
GSP 215 Entire Course NEWGSP 215 Entire Course NEW
GSP 215 Entire Course NEW
 
Number System[HEXADECIMAL].pptx
Number System[HEXADECIMAL].pptxNumber System[HEXADECIMAL].pptx
Number System[HEXADECIMAL].pptx
 
numbering system binary and decimal hex octal
numbering system binary and decimal hex octalnumbering system binary and decimal hex octal
numbering system binary and decimal hex octal
 
004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf
 
Data representation (ASCII, ISO etc.), direction of data flow (simplex, half ...
Data representation (ASCII, ISO etc.), direction of data flow (simplex, half ...Data representation (ASCII, ISO etc.), direction of data flow (simplex, half ...
Data representation (ASCII, ISO etc.), direction of data flow (simplex, half ...
 
1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx
 
Cit 1101 lec 02
Cit 1101 lec 02Cit 1101 lec 02
Cit 1101 lec 02
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 

More from Lexume1

More from Lexume1 (20)

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
 
Lesson4.2 u4 l1 binary squences
Lesson4.2 u4 l1 binary squencesLesson4.2 u4 l1 binary squences
Lesson4.2 u4 l1 binary squences
 
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 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.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.9 b u4l3 ip addresses
Lesson4.9 b u4l3 ip addressesLesson4.9 b u4l3 ip addresses
Lesson4.9 b u4l3 ip addresses
 
Lesson4.9 a u4l2 html
Lesson4.9 a u4l2 htmlLesson4.9 a u4l2 html
Lesson4.9 a u4l2 html
 
Lesson4.8 u4 l2 address hierarchy
Lesson4.8 u4 l2 address hierarchyLesson4.8 u4 l2 address hierarchy
Lesson4.8 u4 l2 address hierarchy
 
Lesson4.7 u4 l2 network redundancy
Lesson4.7 u4 l2 network redundancyLesson4.7 u4 l2 network redundancy
Lesson4.7 u4 l2 network redundancy
 
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?
 
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
 

Recently uploaded

The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 

Recently uploaded (20)

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 

Lesson4.4 u4 l1 using hex

  • 1. L.O: STUDENTS WILL BE ABLE TO EXPLAIN HOW COMPUTERS USE HEX. 30-60 minutes (about 1 class period) DO NOW: READ Unit 4 Lab 1: Number Representation, Page 4
  • 2. Using Hex: THIS SUITCASE IS BINARY THIS SUITCASE IS HEX We can pack four bits (binary digits) into one hexadecimal digit because 16 is a power of two (16 = 24). So, a group of four bits represents a value between 0 and 15, and one hex digit also represents values from 0-15 (using 0-9 and A-F). This makes it easier to translate between binary and hex than between other bases.
  • 3. Translating between Binary and Hex • To translate a binary numeral (like 11010111012) to hexadecimal, start by splitting it into groups of four bits, from right-to-left (like this: 11 0101 1101) • Then determine the value of each group and write the corresponding hex digit (look it up on the table at right) BINARY HEX 00002 016 00012 116 00102 216 00112 316 01002 416 01012 516 01102 616 01112 716 10002 816 10012 916 10102 A16 10112 B16 11002 C16 11012 D16 11102 E16 You can create a table like this whenever you need one EX: 112 = 316, 01012 = 516, and 1101 = D16. So, 1101011101​2 =35D16 ​​ . FOR YOU TO DO: Translate these binary numerals to hexadecimal notation: 1.1110112 2.11011112 3.101100012
  • 4. BINARY HEX 00002 016 00012 116 00102 216 00112 316 01002 416 01012 516 01102 616 01112 716 10002 816 10012 916 10102 A16 10112 B16 11002 C16 11012 D16 11102 E16
  • 5. Translating Hex TO BINARY • To translate a HEX numeral (like 4E116) to Binary, write each hex digit as a group of four bits, ( write that way even if the binary representation doesn’t need all four digits) • For ex: 416 = 01002, E16 = 11102, and 1 = 00012. BINARY HEX 00002 016 00012 116 00102 216 00112 316 01002 416 01012 516 01102 616 01112 716 10002 816 10012 916 10102 A16 10112 B16 11002 C16 11012 D16 11102 E16 You can create a table like this whenever you need one 4E116 =0100111000012 or just 10011100001​2 Translate these hexadecimal numerals to binary notation: a. 1816 b.5D16 c. F816 Remember: practice makes perfect. On the AP exam, you’ll have to translate binary to hex and vice versa!
  • 6. Hexadecimal Colors How do you think a computer knows what color to make an object?
  • 7. Computers have several ways of representing colors: RGB (red, green, blue) CMYK (cyan, magenta, yellow, black)…. RGB (red, green, blue) is used for screen displays, They use CMYK (cyan, magenta, yellow, black) is used for printing… On a computer screen, each pixel—each dot that makes up the picture on the screen—is assigned an RGB color defined by the intensity of red, green, and blue in that color. The three color intensities each range from 0 to 255 (one byte is used for each of the three colors), which is 00 to FF in hex notation.
  • 8. If (R, G, B) = (128, 0, 255), the color is purple: some red and a lot of blue, but no green at all. If all three colors are as bright as possible (all are 255), we see white if they are as dark as possible (0,0,0), we see black. Instead of writing (255, 255, 255) for white and (128, 0, 255) for purple, we often use hex notation: FFFFFF and 8000FF. And this color is red 255, green 127, and blue 0, which is FF7F00 in hex.
  • 9. Represent these colors in hex notation: a.red 0, green 149, and blue 235 b.red 128, green 90, and blue 0 c. red 163, green 0, and blue 84 a.red 0, green 149, and blue 235 is 0095EB in hex b.red 128, green 90, and blue 0 is 805A00 in hex c.red 163, green 0, and blue 84 is A30054 in hex
  • 10. •Predict what this RGB color will look like based on its values: red 145, green 0, blue 226. •Predict what this hex RGB color will look like: 04FF61.
  • 11. If There Is Time… • Explore this RGB/HEX color converter: http://hex.colorrrs.com/ • Play with this Interactive Color Wheel • Read more about RGB colors and hexadecimal notation.
  • 12. Take It Further (Extension Activities) A. Load the Snap! RGB library into one of your projects to explore RGB color further. In the File menu, choose "Libraries..." and then choose "Set RGB or HSV pen color". This will give you a new "Pen" block: As in all Snap! blocks, the numeric input slots take values in base 10 (not hex). Each color component has a value between 0 and 255
  • 13. 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]
  • 14. Enduring Understandings: •EU 2.1 A variety of abstractions built upon binary sequences can be used to represent all digital data.
  • 15. 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
  • 16. 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.
  • 17. 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.
  • 18. 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.

Editor's Notes

  1. 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. Page 4: Using Hex. Understand how to translate numerals between hexadecimal and binary notations. Understand that colors can be represented using hexadecimal notation and that this is done in HTML.
  2. Page 4: Using Hex. Understand how to translate numerals between hexadecimal and binary notations. Understand that colors can be represented using hexadecimal notation and that this is done in HTML. Page 4: Using Hex. Remind students that the purpose of computer science is to abstract away the details; that's why, for example, "orange" (which browsers also understand) is a much better representation for that color than "FF7F00."