Project brief · after lesson 8: Bits all the way down
Write a short message to a partner, but send it only as bytes: eight 0s and 1s for every character.
Choose a message of four to eight characters that has a capital letter, a lower case letter and a space. Turn it into character codes with a code table, then into bytes. Your partner decodes it using the same table. Then explain why your message took the space it did.
Steps along the way
Tick each one when it is done.
- Each character has a code, looked up in the table.
- Each code is written as a byte, and you checked one by adding up its place values.
- Your partner decoded the message and you compared it with the original.
- You can say how many bits the message takes in all.
Hand in
- Your message in plain text, kept secret from your partner until they have decoded theirs.
- A table with one row per character: the character, its code, and its byte.
- Your partner's decoded message, and whether it matches.
- A paragraph that follows one character from the letter, to its code, to its byte, and says what the bytes would mean to a program that treats them as something else.
Show that you can
Your work and your explanation should show each of these.
The principle: all data as integers
- States that all data types are represented as integers in digital systems
- Gives at least one example of how a number represents non-numeric information
Text as Unicode integers
- Correctly looks up Unicode values for given characters
- Explains that each character has a unique integer in the Unicode set
- Encodes at least a short word as a sequence of integers
Binary place value and counting
- Correctly converts at least three decimal numbers to binary
- Correctly converts at least three binary numbers to decimal
- Explains that each position in a binary number represents a power of 2
Binary connects to data encoding
- Traces a character from text to Unicode value to binary representation
- Explains that all data types ultimately become sequences of binary digits
- Connects the encoding chain from K03 (data as integers) to K04 (integers as binary)
Make it yours
- Add a digit and explain why its code is not the number it shows.
- Show that the lower case version of a letter has a code 32 more than the capital.
- Find the longest message that fits in 64 bits.