ASCII CODE LAB PRACTICE
- The class will be divided into two teams - 6 students in each team
- Each team will work as one computer with 6 processors. It means that
each team can do 6 tasks at the same time
- Each team will choose the word that consists of 6 letters. We will use
upper case letters only.
- The team will encode the word using ASCII code and binary number
system as follows:
- Each student will be responsible of encoding one letter.
- First, each letter will be encoded using ASCII code that
corresponds to
the letter.
- The ASCII table will be used to find the ASCII code for each letter.
- After that, the ASCII code will be converted to the binary
number.
- After all six letters will be encoded, the team will write the binary
code that corresponds to the original word by replacing each letter with
the binary code that was found.
- Here is the simple example for the word IF
- Letter I has ASCII code 73 and letter F has ASCII code 70
- The binary code (the binary number) that corresponds to 73 is 01001001
(use 8 bits even if the first bit is 0) and the binary code that
corresponds to 70 is 01000110.
- The binary code of word IF is: 01001001 01000110
- After each team encoded the word, the teams will send the encoded word
to the opposite team and the next task will be to decode the binary code
and to find an original word.