Sei sulla pagina 1di 2

Unit 1 Lesson 4

Name(s) Zach Apel, Alexander Titcomb Period ______ Date ___________________ 

  Activity Guide - Flippy Do Part 1 


Directions 
Use your Flippy Do to answer the questions.

All 4-Bit Numbers: ​Fill in the binary equivalents for the decimal numbers below. We’ve started the first three for you.

Binary: 4-bit number Decimal Binary: 4-bit number Decimal

0000 0 1000 8
0001 1 1001 9
0010 2 1010 10
0011 3 1011 11
0100 4 1100 12
0101 5 1101 13
0110 6 1110 14
0111 7 1111 15

What do you notice when you compare the odd numbers with the even numbers? What might explain this?

We notice that if the last digit of a number is one then the decimal number is binary, but when it is zero, the number is
even. What might explain this is that the decimal number one ends in one for binary numbers.

Binary Numbers with exactly one 1: ​Complete the chart with all 8-bit binary numbers that have exactly one 1.
We’ve done the first two for you.

Binary: 8-bit number Decimal Binary: 8-bit number Decimal


(with exactly one ​1​) (with exactly one ​1)​

0000 0001 1 0001 0000 16


0000 0010 2 0010 0000 32
0000 0100 4 0100 0000 64
0000 1000 8 1000 0000 128

What do you notice about the decimal equivalents above?


We notice that the decimal numbers double as the 1 in binary moves over to the left.

Computer Science Principles 1


Unit 1 Lesson 4

Conversion Practice: ​Find the equivalent binary or decimal numbers below.

Binary Decimal Binary Decimal

100 4 101 5
101 5 10001 17
1101 13 111111 63
0001 1111 31 100000 64
0010 0000 32 1111111 127
1010 1010 170 1000 0000 256
1111 1111 255 100000001 513
.

When you add a zero to the right of a decimal number, it multiplies its value by 10 (For example, “15” becomes “150”).
What similar result happens to the value of a binary number when you add a zero on the right? (For example, “11”
would become “110”).
When you add a zero on the right, the binary number doubles. For example, 11 is equal to 3, and 110 is equal
to 6.

Do the binary numbers “0011” and “000011” have the same value or different values? Explain.
The same value because zeros in front of the number don’t affect the overall value of the binary value. Zeros
affect the value if they come after the ones.

Would two bits be enough to assign a unique binary number to each vowel in the English language? Explain.
No, it wouldn’t be enough because there are only four possible combinations with two bits, and there are five
vowels, sometimes six vowels in the English language.

How many bits would you need if you wanted to count up to the decimal number 1000?
You would need ten bits if you wanted to count up to the decimal number 1000 because two to the tenth power
is 1024.

Computer Science Principles 2

Potrebbero piacerti anche