Unit 1 - Lesson 4 part 2
Hexadecimal Numbers and
More Binary Practice
Warm-up 8/31
1. Convert the following decimal numbers to their binary equivalent:�(a) 12 (b) 55
2. Convert the following binary numbers to decimal numbers:�(a) 1001 0011 (b) 0011 0011
Decimal number: a base 10 number with ten possible different digits
0 1 2 3 4 5 6 7 8 9
101 | 100 |
10 | 1 |
2 | 3 |
24 | 23 | 22 | 21 | 20 |
16 | 8 | 4 | 2 | 1 |
1 | 0 | 1 | 1 | 1 |
Binary number: a base 2 number with two possible different digits
0 1
Same number represented two different ways.
⬅ Decimal Binary ➡
Bit: A contraction of "Binary Digit"; the single unit of information in a computer, typically represented as a 0 or 1
Byte: 8 bits
10010101
Go over Homework:
Code.org Unit 1 Lesson 5 bubble 1
Bubble 2: Binary Odometer
3. What is the greatest possible decimal number that can be represented by a binary number with 6 bits? Explain.
4. How many times more numbers can be represented with 7 bits compared to 5 bits?
5. What’s the minimum number of bits you need to encode the number of days in a month?
Hexadecimal Numbers
Why Hexadecimal Numbers
There are about 1101 1010 1100 students at Bellaire High School. About 1010 1011 of them are taking computer science this year.
Binary | 1101 1010 1100 | 1010 1011 |
Decimal | ? | ? |
Hexadecimal | ? | ? |
Why Hexadecimal Numbers
There are about 1101 1010 1100 students at Bellaire High School. About 1010 1011 of them are taking computer S]science this year.
Binary | 1100 1110 0100 | 0001 0111 0010 |
Decimal | 3300 | 370 |
Hexadecimal | ? | ? |
Why Hexadecimal Numbers
There are about 1101 1010 1100 students at Bellaire High School. About 1010 1011 of them are taking computer S]science this year.
Binary | 1100 1110 0100 | 0001 0111 0010 |
Decimal | 3300 | 370 |
Hexadecimal | CE4 | 172 |
Why Hexadecimal Numbers?
Hexadecimal is used to represent digital data because hexadecimal representation uses only one hexadecimal digit for every 4 binary digits!
| |
| |
Number System Conversion
Hexadecimal Number
Decimal Number
Binary Number
Hexadecimals Packet
Homework
Complete Hexadecimals packet page 1 - submit image/pdf of 1 page on Hub