Sunday, February 21, 2010

notes 3

understandingpcs.blogspot.com


0000 0
0001 1
0010 2
0011 3
0100 4
0101 5
0110 6
0111 7
1000 8
1001 9

bit = binary digit
byte = 8 bits
nibble = 4 bits
word = 16 bits
dword = 32 bits

00
01
10
11 = total of 4 possible values

000
001
010
011
100
101
110
111 = total of 8 possible values

socks: red, green, blue
shoes: white, black

H
T

HHH
HHT
HTH
HTT
THH
THT
TTH
TTT

1 bit: 2^1 = 2
2 bits: 2^2 = 4
3 bits: 2*2*2 = 2^3 = 8
4 bits: 2^4 = 16
5 bits: 32
8 bits: 2^8 = 256
16 bits: 2^16 = 65,536
24 bits: 16.7 million

1024 = 2^10 bytes: kilobyte
1024x1024 bytes; 2^20: megabyte
2^30 = approx 1 billion: gigabyte
2^40: approx a trillion: terabyte

hertz
gigahertz

pixel = picture element
resolution
how many bits per pixel

24 bit color
900,054 bytes
24 bit bitmap
500 across
600 down
500 x 600 x 3 bytes

256 color
301,078 bytes

16 color
151,318 bytes

monochrome
38,462 bytes

HW from last time:
ch 1, practice exercise 1-4

No comments:

Post a Comment