A few days ago, I read an article about love and security market line. It’s about how to see a love life using management method. The writer is a management’s student at UI, that’s why the article using management method. So, as a computer-control’s student at Sepuluh Nopember Institute of Technology I want to share our method about saying love.
In my first year, I’ve learned about binary code, and ascii. Binary code only consist of “0” and “1”. And each decimal number has a different binary code. Those binary code can be converted into decimal (as a 1-100,etc), octal (only using 0-7), and hexadecimal (using 0-9 and A-F) notation. Binary code, decimal notation, and hexadecimal notation also represent ascii code. Ascii code is a numerical representation of some characters, number, and alphabets in Computer Interface. So, it means when we type a letter in our computer, the computer will read it as a binary code or hexadecimal notation, and convert it into character and alphabet using the ascii code.
This is the ascii code table.
from the table, we know the ascii code for characters, symbols, numbers, that we want to use. For example, we use “41” as the hexadecimal notation to represent the ascii code of “A”.
And now, how if we want to write “I Love You” using the hexadecimal notation based on ascii code? well, it’s simple. Check the ascii table, and find out the hexadecimal notation of each character on the sentence.
So, it would be like this :
I=49; space=20; L=4C; o=6f; v=76; e=65; Y=59; u=75;
FYI, capital-alphabet or not-capital-alphabet have a different ascii code. For example, hexadecimal notation to represent “A” is 41, and “a” is 61.
The result of “I Love You” on hexadecimal notation based on ascii code is : 49204C6F766520596F75
And how if we want to convert it into a binary code?
It’s quite simple if the table shows the binary code too. We just need to write the binary code of each characters, like what we’ve done before on hexadecimal notation.
But we can convert the hexadecimal code into the binary code. It’s quite simple too :D
First, we need to convert the hexadecimal notation into the decimal notation. FYI, hexadecimal consist of 16 codes. The codes is 0-9 (the decimal notation same as the hexadecimal) and A-F(the decimal notation is start with “A” as “10”, until “F” as “15”).
Next, we need to know how to convert the decimal notation into the binary code. FYI, the binary code which is converted from the decimal is consist of 4bit (example : 0010, 1011, etc). And how to convert the decimal into the binary code?
You should be remembered if the first digit value is 8, the second digit value is 4, the third digit value is 2, and the last value is 1.
so, if we have binary code 1001, we can add the value of the digit based on which digit is shown as “1” to know the decimal notation.
1001 = 8 + 0 + 0 + 1 = 9
1101 = 8 + 4 + 0 + 1 = 13 , etc
And if we want to create the binary code, we just need to find out what numbers can be added and equal to that numbers.
14 = 8 + 4 + 2 + 0 = 1110
7 = 0 + 4 + 2 + 1 = 0111 , etc
To convert the hexadecimal into the binary code, we just need to know the decimal of it and added the value.
A = 10 = 8 + 0 + 2 + 0 = 1010
D = 13 = 8 + 4 + 0 + 1 = 1101 , etc
After you can understand it, now is the time to convert the hexadecimal of “I Love You” that we’ve made before.
on hexadecimal = 49204C6F766520596F75
we need to convert each digit into the binary code.
4 = 0 + 4 + 0 + 0 = 0100
9 = 8 + 0 + 0 + 1 = 1001
5 = 0 + 4 + 0 + 1 = 0101
and the result of the binary code is : 0100 1001 0010 0000 0100 1100 0110 1111 0111 0110 0110 0101 0010 0000 0101 1001 0110 1111 0111 0101
Is it difficult ?