Binary help :(

A place where you can chat about anything that isn't to do with games!
Post Reply
User avatar
Khan
Posts: 808
Joined: Tue Jan 27, 2009 8:37 pm
Location: UK

Binary help :(

Post by Khan »

Hi I know we got some clever people here im not asking you do my work for me just to help me understand if you want to do a few though its cool lol.....hope im not taking the piss here lads. :mrgreen:

I got some homework that I honestly dont have a clue on how to do can somone help me understand how to do it? i dont mind if you do a couple for me but i want to be able to do the rest!!!



so can anyone help? :(

Khan,

removed* thanks to gameoverdude for coming through! $17 in your paypal coming via gift!!! :D

thanks again man :mrgreen:

I also wont need to do this again because I have the option to study a different course next semester which is what i will be doing :)
Last edited by Khan on Mon Aug 31, 2009 2:07 am, edited 3 times in total.
RegalSin wrote:America also needs less Pale and Char Coal looking people and more Tan skinned people since tthis will eliminate the diffrence between dark and light.

Where could I E-mail or mail to if I want to address my ideas and Opinions?
dcharlie
Posts: 1216
Joined: Tue Jan 23, 2007 1:18 am

Re: Binary maths homework help :(

Post by dcharlie »

http://www.rwc.uc.edu/koehler/comath/11.html#binary

this link will help with some of the basics.

http://www.rwc.uc.edu/koehler/comath/12.html

gives you an idea of how to do hex/bin maths.
"I've asked 2 experts on taking RGB screenshots...."
User avatar
croikle
Posts: 426
Joined: Thu Aug 07, 2008 12:45 am

Re: Binary maths homework help :(

Post by croikle »

Well, how much of this do you understand? Do you know what they mean by location D822? Do you know how to convert hexadecimal to decimal, and vice versa? Have you learned about 2's complement?
Image
User avatar
Khan
Posts: 808
Joined: Tue Jan 27, 2009 8:37 pm
Location: UK

Re: Binary maths homework help :(

Post by Khan »

unfortunatly I have no idea what it means by D822 im guessing would it mean its the 6th one in the first line? sucks i missed binary lectures due to motorcycle crash :( so I gotta make sure i do this homework and understand even some of it.
RegalSin wrote:America also needs less Pale and Char Coal looking people and more Tan skinned people since tthis will eliminate the diffrence between dark and light.

Where could I E-mail or mail to if I want to address my ideas and Opinions?
dcharlie
Posts: 1216
Joined: Tue Jan 23, 2007 1:18 am

Re: Binary maths homework help :(

Post by dcharlie »

you need to trace down the side to find D820 - then reading across gives the location.

so in the case of D822 , it would be the 3rd value (B9)

------ 0 1 2 3 4 5 6 7 8 9 A B C D E F
D82-: 5A 6E B9 F4 EA AE D6 EC 9F 58 62 71 D4 E0 57 38
"I've asked 2 experts on taking RGB screenshots...."
User avatar
gameoverDude
Posts: 2269
Joined: Wed Jan 26, 2005 12:28 am
Contact:

Re: Binary maths homework help :(

Post by gameoverDude »

I'll go ahead and do a couple.

C1) Decimal value of B9
11(16) + 9(1)
176 + 9 = 185

C2) (contents of D82A) = 62h, find octal value
6(16) + 2(1) = 96+2= 98
98/64 = 1 R34
34/8 = 4 R2
98 = 1(64) + 4(8) + 2(1)
142 octal
Kinect? KIN NOT.
User avatar
Khan
Posts: 808
Joined: Tue Jan 27, 2009 8:37 pm
Location: UK

Re: Binary maths homework help :(

Post by Khan »

dcharlie the decimal numbers you have above they only extend from 0-9 and then you have the alphabet letters will those go all the way from A-Z? then what then is it back to 1? this is definantly going to hard....:(

I have no idea how you did that gameoverdude lol

I have tuesday off work so I can do this hopefully........
RegalSin wrote:America also needs less Pale and Char Coal looking people and more Tan skinned people since tthis will eliminate the diffrence between dark and light.

Where could I E-mail or mail to if I want to address my ideas and Opinions?
User avatar
ED-057
Posts: 1560
Joined: Fri Jan 28, 2005 7:21 am
Location: USH

Re: Binary maths homework help :(

Post by ED-057 »

binary = base 2 = digits 0-1
octal = base 8 = digits 0-7
decimal = base 10 = digits 0-9
hexadecimal = base 16 = digits 0-9 and A-F

10 hex = 16 dec = 20 oct = 10000 binary

The number at the left column (eg. $D800) is the address. The numbers on the right are given in hexadecimal, each pair of hex digits is one byte. Each byte has its own address (eg. $D800 = $95, $D801 = $BB). When a byte is treated as a signed integer then values greater than $7F are negative (subtract $100), so $80 would 128 when unsigned or -128 when signed. ASCII relates a set of characters to byte values (eg. $41 = "A" $42 = "B" $43 = "C" etc.)
User avatar
Khan
Posts: 808
Joined: Tue Jan 27, 2009 8:37 pm
Location: UK

Re: Binary maths homework help :(

Post by Khan »

Well I did some reading and I still dont get it :( good thing is that I wont EVER need to do binary again as long as I do this piece correctly so somone wanna do them for me? I got $15 waiting in paypal :D

(yea I know its a cop out but if it means I dont need to do this again then im happy)
RegalSin wrote:America also needs less Pale and Char Coal looking people and more Tan skinned people since tthis will eliminate the diffrence between dark and light.

Where could I E-mail or mail to if I want to address my ideas and Opinions?
User avatar
Ed Oscuro
Posts: 18654
Joined: Thu Dec 08, 2005 4:13 pm
Location: uoıʇɐɹnƃıɟuoɔ ɯǝʇsʎs

Fun & numbers at Uncle Henry's Playhouse

Post by Ed Oscuro »

Man I'd love a free $15...is that in San Seriffe dollars?

...instead here's a hint (not least 'cuz I'd probably gum something up), signed means it's half the value but one of the bits just denotes the polarity (first bit I think?)
Octal = numbers 0 from 7.
Reading the values from that chart is simple, start at 0 and by the sixteenth value you're at F (0-9 and then A-F). Half the work is already done because the first three numbers say which row you're on, just start counting from there (keeping in mind to count from 0 and not 1 though, I believe; i.e. 822 is the third value, 'cuz 820 is like a 10 - you don't call 10 11, it's got the placeholder value in it).
gameoverDude wrote:C2) (contents of D82A) = 62h, find octal value
6(16) + 2(1) = 96+2= 98
98/64 = 1 R34
34/8 = 4 R2
98 = 1(64) + 4(8) + 2(1)
142 octal
Disclaimer: there may be FASTER and SLIGHTLY SHORTER ways to do some of these, that said, I don't have a lot of this stuff memorized so I have to do it the long way, same as they want students to.

6(16) = conversion to decimal, i.e. 62 decimal aka base10 = 6(10) + 2, whereas 62 hex = 6(16 for the place holder) + 2
98/64 = (still using decimal notation) starting with the largest even octal value we can divide into. How to find the largest octal value we can divide into?
Hex = each place is 16 times bigger than the last, i.e. instead of base10 1000, 100, 10, 1 etc. the values are 65536, 4096, 256, 16, 1.
With octal, each place is EIGHT times bigger than the last, so the values are 4096, 512, 64, 8, 1.
98/64 = 1 R34 = R is remainder of course. Next up, the next place value, the 8 place.
34/8 = 4 R2 and the 2 fits in the ones column. Then add it up.

C3 attempt, with no promises (except that I checked it and iz correct):
Value @ 855 = 71; value @ 85E = 23 (very easy to pick up the last few 'cuz E is the second to last, F is the last, etc.)
We work from the opposite side from dividing (in this case little to big) so we can carry upwards (this is arithmetic after all). This next part I was shaky on for some reason: It's in hex, so the result should be 94H. Right? No carry visible...that was too easy. I'm thinking next they'll throw one at you that requires multiple carries, having boosted your confidence in using the numbers...

C4 attempt, I'm feeling FRISKAY
First, convert 124 to hex (BOO HISS): 124/128 nope, 124/64 1 R60, 60/32 1 R28, 28/16 1 R12, 12/8 1 R4, 4/4 1 R 0, twos and ones place empty
this is 1111100 binary
group by four (pad first three with a leading 0) and convert to hex: 0111 1100
7C

Okay, now add 7C to 26.

Image
RUH ROH WE NEED 2 CARREY!!1111

C+6 = 12h, see, that's C+4 = 10h remainder 2h
Now add the sixteens places and the carry: 7 + 2 + 1 = A
Total value is...A2!!!

HOW THE HELL DID I MANAGE THAT?! AMAZING. I did check my work with the amazing Microsofts Calculator in scientific mode though.

Two's complement isn't so bad, if you're shaky just pull out ye olde values chart to see how that works. It's kind of strange and there's no visible pattern in the ones and zeroes (unless you do the simple operation), but it's doable by memorization.

okay bye
User avatar
Magic Knight
Posts: 206
Joined: Thu Jul 14, 2005 10:00 am
Location: Japan

Re: Binary maths homework help :(

Post by Magic Knight »

x
Last edited by Magic Knight on Tue Sep 01, 2009 12:07 pm, edited 1 time in total.
User avatar
landshark
Posts: 2156
Joined: Wed Jan 26, 2005 5:27 am
Location: Chicago 'Burbs

Re: Binary maths homework help :(

Post by landshark »

Magic Knight wrote: What kind of course is it? Seems strange that they would make you do something like this and then you'd never have to use it again. If it's any kind of computer/electronics course then it is extremely important that you learn the different number systems and how to convert between them.
Yes. What Magic Knight said. If you have any intentions of following a computer-based career (even I.T.), you'd best learn this. At least learn and understand how to perform base2, base8, and base16 conversions as IP's and MAC addresses will require this. If you have any programming intentions, you'll want to know it like the back of your hand.

I use these easily 10 to 100+ times a day at work and have been for the last 15 years. Though I've found 1's and 2's complement mathematics is MUCH less important than knowing how to do base conversions.
Image
SiKrAiKeN: While I don't think everyone here -is- a Ninja Turtle, I DO believe everyone here has the potential to be a Ninja Turtle. No doubt.
Post Reply