JAOIT 8
Binary Programming As someone just starting their adventures in the networking world binary can be both scary and confusing. I am going to attempt to make learning binary as pain free as possible and break it down to its simplest form.
Binary Programming Let’s start off with some basics. First off binary is a string of 0's and 1's. The 1's being the on switch, and the 0's being the off switch. When a computer sees the 0's and 1's it only counts the 1's. Take for example what we've grown up learning with numbers. In our base 10 system we have the 1's place, the 10's place, the 100's place, etc. So basically our base 10 is just anything to the 10th power.
Binary Programming 0^10 = 1's place; 1^10 = 10's place; 2^10 = 100's place; etc. So Binary is just everything to the 2nd power. It makes it a bit more confusing at first, but once you get the hang of it, it makes total sense.
Binary Programming 0^2 = 1; 1^2 = 2; 2^2 = 4; 3^2 = 8; etc.
Binary Programming Basically binary just doubles as you go, and is split into 8 bits (each zero and each one is a bit). So typically you'd see something like this Every 8 bits if turned on equals 256. Counting in multiples of 2's we'd look at it like this equaling 8 separate bits. This is important to remember later on in networking for sub- netting and how IP addresses work.
Binary Programming So let’s count to 9 in binary. Remember the computer only counts the 1's. So 1001 would equal 9. We know this because 0^2 = 1; and 3^2 = 8 and we just add those together. Whenever I have to use binary I always start out writing all 8 bits out to make things easier to add up later on. Especially when the number gets rather large.
Binary Programming Counting to 64 in Binary language = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 16
Binary Programming Do you notice any patterns? Numbers are created in 6 bit binary bytes up to the number 64.
Binary Programming The Alphabet in Binary Code – Small Letters a n b o c p d q e r f s g t h u i v j w k x l y m z
Binary Programming The Alphabet in Binary Code – Large Letters A N B O C P D Q E R F S G T H U I V J W K X L Y M Z
Binary Programming Let’s write your name in Binary code.