KayS Posted July 17, 2014 Posted July 17, 2014 I have come across this quesition and I am good at binary to hexadecimal for example A7D = 1010 0111 1101. However, this following question has completely lost me?.. those binary representations are they the actuall representations or made up ones by the questions? any idead on what the binary representation of A would be so I could work the rest out? or any clue on how to go on about it. Thank you
EdEarl Posted July 17, 2014 Posted July 17, 2014 ASCII and EBCDIC are 8-bit character encoding systems.
Endy0816 Posted July 17, 2014 Posted July 17, 2014 (edited) The question is really asking you to find the pattern. If I said C = 44, D = 45, E = 46... What is A? It is a similar set up done in binary. You just need to count up to K and count down to A, then convert it into hexadecimal. A converter can be useful here: http://www.mathsisfun.com/binary-decimal-hexadecimal-converter.html Edited July 17, 2014 by Endy0816
Janus Posted July 17, 2014 Posted July 17, 2014 Look at the pattern for the 6 bit character code, it should be a simple matter to extend it to A and K. Then just convert each 6 bit code for each character in the string to its hexadecimal equivalent.
Endy0816 Posted July 17, 2014 Posted July 17, 2014 Minor point but don't feel you have to restrict yourself to named encoding schemes. Sometimes there are good reasons to, but other times you can make up your own to fit the circumstances.
KayS Posted July 17, 2014 Author Posted July 17, 2014 omg i get it now so the answer must be D...because the binary representation for A = 011001 K = 100011 convert htem both = a.19 k.23 which is D =] thanks man you lot are great I like how you test the mind lol...so simple in the end but im improving slowly. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now