Sarah 3: As you know, each letter in the English alphabet has an allocated spot. For example, A is the first (1) letter in the alphabet, H is the eighth (8) letter. In Binary, a letter is represented by showing the place it is allocated in yhe English alphabet. For example, 00001 = 1 = A010000 = 8 = H
Aaron 2: You said that the last 5 numbers in binary code represent the actual letter. Well, how does the numbers change to a letter?
The letter: e.g. c, d, f01000010Capital or lowercase010 = Capital 011 = Lowercase
Sarah
Sarah: There are 8 numbers in a binary number. The first three represent whether the letter is a capital or lowercase. If it starts like 010, then it's a capital but it it starts like 011, then it is a lowercase. The next five represent the actual letter.
Sarah 3: The number that is allocated to the binary code is only counted when it is ON. To turn the binary ON, you change the 0 to 1. When the binary is 0, it is OFF and the allocated number isn't counted. 1 = ON0 = 0FFSo 8 would equal 01000 as 8 is the allocated number for that position. 00100 would equal 4 as 4 is the allocated number for that position.
Sarah 2: Well, each place in the binary code has an allocated number as well. Going from right to left, you multiply the previoous number by 2. So, 00000001 = 100000010 = 200000100 = 4
Aaron: I understand! But Sarah, how does 01000 = 8? Doesn't it just equal 1?
12 8 64 32 16 8 4 2 1 0 1 0 0 0 0 1 0
OFF ON OFF 0FF 0FF 0FF 0N OFF
Aaron 1: Thanks Sarah! I think I understand. But can you please summarise it?
Aaron 3: Wow that's coo- Wait! I need to head to my work meeting. I'm nearly late. Thanks for all your help Sarah! I really learnt a lot.
Sarah 2: Sure thing! Every letter has an allocated decimal value (ASCII value). For example, B = 66. This value is then translated into an 8 numbered binary code (01100011). Computers can only read binary code, so when they see these numbers, they know what letter to present on the screen. 1 = ON and 0 = OFF. You should also keep in mind that every place in a decimal number has a value. 00000010 = 2 as the second last place has 2 as it's allocated number. 00010000 = 16 as the fourth place has 16 as it's allocated number.