0

Can someone help me understand bytes?

10th Nov 2016, 11:31 PM
umop ap!sdn
umop ap!sdn - avatar
4 Respuestas
+ 3
i don't know if you already know about binary numbers, but I'm going to assume you do. first, bytes store memory. everything on your computer, phone, etc is in bytes. bytes are binary numbers. it is 8 bits, separated into groups of four. each 1 or 0 is a bit. different characters and symbols in languages take up different amount of space in bits or bytes. this is incredibly simplified, and to go into more detail you should visit the sololearn lessons on it, but I hope it helped a little bit!😋
11th Nov 2016, 2:43 AM
Hannah T
Hannah T - avatar
+ 3
this is where it gets kinda tricky to explain... im going to print binary numbers one thru ten to give a visual 0001. 1 0010. 2 0011. 3...and so on 0100 0101 0110 0111 1000 1001 1010 so there are "places" like in base 10(one, end, hundreds, etc). in binary it starts with one and multiplies by two. so 1,2,4,8,16... in the first number, 0001, there is a 1 in the ones place(ignore the zeros) in the second number, 0010 there's a one in the the two's place. number 3, 0011, there's a one in the one and the two's place. and so on. to translate from binary to base 10 you add up the ones. take the number, 13, which is 1101. you add the places with a one. so 8+4+1, which equals 13! there is a video I fund on Alison.com that she'd so much light so I will try to find the link for you. im not exactly an expert on the subject in terms of explanations.
11th Nov 2016, 3:45 AM
Hannah T
Hannah T - avatar
0
+Hannah T Yes that did help a bit and I have been learning Binary the past few weeks. Now my question is how do you use bytes in a java program to, for instance, translate binary to english and vice-versa?
11th Nov 2016, 2:48 AM
umop ap!sdn
umop ap!sdn - avatar
0
Gamerguy! capital "A" has ASCII 65, "B" has 66...upto "Z" has90. small "a" has ASCII 97,"b" has98...upto "z" has 122. . . and every ASCII has its binary value...for example "A" as ASCII 65, and binary of 65 is (01000001) http://sticksandstones.kstrom.com/appen.html
25th Nov 2016, 8:15 PM
Rao Hamza Javaid