Kata: Communicating in binary

Kata: Communicating in binary

Binary is the language computers speak: everything is broken down to 1’s and 0’s (bits). Computer memory is made up of a ‘honeycomb’ of units called ‘bytes’. There are 8 bits in one byte. One character, this letter A for example, is one byte of data that is stored in memory using the following bits: 0100001.

Review section 1.3 (How computers store data) of chapter 1 in Programming Logic and Design on binary data.

Noob-level: Refer to the ASCII chart in Appendix A (or Google ASCII chart). Write your name out in binary characters.

XP: 10

Code monkey-level: Write, pseudocode, an algorithm that inputs a string of text, converts the characters to binary, and outputs the binary version of the string input.

XP: 25

King Code-level: Write a JavaScript program that collects text input from a user, converts the text to binary, and outputs what the user input and the converted binary.

XP: 50

Unicorn-level: Complete the King Code level with at least three of these additions:

XP: 100

  • Receives binary as input and outputs the corresponding characters.
  • Write a function that tests your program with different data values to see where your program breaks. Fix the breaks.
  • Use Unicode instead of ASCII. Allow conversion to and from binary of emojis, non-english alphabet characters, and numbers.
  • Utilize the browser DOM to create element and text nodes to display converted output.
  • Create a game for the user to guess or match binary values to character and/or number values.
  • Design a means to display the binary output using something other than 1’s and 0’s. (e.g. make it art).

Due Date

Leave a Reply

Your email address will not be published. Required fields are marked *