My first day of computer science club.

Random irrelevance that just didn't fit into other forums. Talk about anything.

Moderator: Talkative People

Post Reply
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

My first day of computer science club.

Post by Falco Girgis »

Wow, I showed up half expecting some sort of semi hillbilly HTML leveled conversation. The minute I sat down, I had all sorts of math crammed up my ass.

I had to learn how to convert octal, hex, base 10, and binary numbers on just the first day. Wow, this is some pretty hardcore stuff.

We go to competition later on. There is a C programming portion and a logic exam on paper. Last year, the school won last place in nationals.

The teacher said that we're up against all of the private school preps who have thousands of dollars and carry laptops with them wherever they go... :?

This club will undoubtedly prove interesting. I'm definately going to have to be committed here....
User avatar
Wutai
Chaos Rift God
Chaos Rift God
Posts: 1510
Joined: Sat May 29, 2004 2:30 am
Location: Currently incarcerated.

Post by Wutai »

One more thing that slaughters all of your free time.
This is a joke about unfunny jokes. And bad use of irony.
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

My first day of computer science club.

Post by MarauderIIC »

I know decimal -> binary -> hex -> binary -> decimal! :)
Note the lack of decimal <-> hex. Heh.

Something like this -
F = 1111, break your decimal->binary into words (4 bytes, iirc)...
Hex -> binary, just the reverse, F = 1111.
binary->decimal, powers of two. Like this

Code: Select all

CONVERT 10011001 TO DECIMAL OR YOU DIE!!
128 64 32 16 8 4 2 1
 1   0  0  1 1 0 0 1

Add
1+8+16+128 = ...
1 + 8 = 9
+ 16 = 25,
+ 128,
= (28 + 25 = 27 + 26 = 26x2+1
= 52 + 1
= 53 + 100)
= 153.
*checks* Yay, I'm right. 

Hex for bonus points
1001, 1001 hey neato, silly me, same number twice.
1001 = 9 (1 + 8), 
0x99
If you want, here's more thought process clarification
1+8+16=128 =...

1 + 8 = 9
that's an easy one. didn't come out to 10, but 9 is always easy as well

+ 16 = 25
again with the easiness. 25 is a nice number.

+ 128
here comes the toughie
break it into 100 + 28

= 28 + 25
28 from 128, 25 from the 9+16 step (color coded)

= 27 + 26
get 28 + 25 closer together, maybe i can get a nice x2

= 26x2+1
nope. but if i can't, i can just double and add one.

= 52 + 1
multiply...

= 53 + 100
add...

= 153.
done!

Edits - to hex, thought clarification, colors
Last edited by MarauderIIC on Tue Sep 07, 2004 8:53 pm, edited 4 times in total.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Guest

Post by Guest »

WHAT in teh HECK is THAT? ().0
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

Post by JS Lemming »

I think knowing number conversions is a useless skill. That's what the computer is for. Boring Repetative Tasks.
Last edited by JS Lemming on Sun Sep 12, 2004 4:58 pm, edited 1 time in total.
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
Post Reply