Entry: Computer Science Notes v.2 Monday, August 24, 2009



2^n  n is number of bits

5bits is 2^5=32

Hexadecimal means base 16

10 - A
11 - B
12 - C
13 - D
14 - E
15 - F

Convert a binary number to hexadecimal
1. Group your bits into groups of four
2. Covert each group to a Hexadecimal  value

             16^1= 16  16^0= 1    16x10 = 160 1x10= 10......160+10=170
10101010 = AA

8421     8421
1010     1010
   A           A


1000 1011 0111
8       11=B     7

Converting hexadecimal to binary

7E9
0111 1110 1001

135 convert to binary   135-128=7

128    64   32 16  8  4  2  1
 1          0    0   0   0  1  1  1

Convert 345 to decimal 345-256=...

256  128  64  32  16  8  4  2  1
1        0     1    0     1   1  0  0  1

convert 101011001

0001 0101 1001
1        5         9 = 159

1+1= 0 carry the 1 so it looks like 10
9+1=10

  111111
  1010111
+1001011
-------------
 10100010


1 1       1
1110011
+  11001
-----------
0101000

10001100 is the flippin answer... >_<

Great subtracting while fighting to stay awake... arghhhh caffeine gave up on me...

  12
0202
1010111
- 111011
------------
 0011100

**teacher and vest kid are discussing calculus....wtc....hahaha I wanna burst out into laughter...oh.how I want to...LOL! sooooo boring here and the a/c broke because of rain over the weekend.

**another discussion with vest kid and teacher...talking about encrypting email because of the Patriot Act. Vest kid says hey get a hotmail...lol

COBOL & BUG =made by this old lady from about 50 years ago

**teacher made a startrek reference...what am I getting into?


   0 comments

Leave a Comment:

Name


Homepage (optional)


Comments