|
Objective: Convert Binary to
Decimal
Procedure #1 Plug in the
Binary Numbers and Add "s". Example: 00110110
|
128s |
64s |
32s |
16s |
8s |
4s |
2s |
1s |
|
0 |
0 |
1 |
1 |
0 |
1 |
1 |
0 |
32 + 16 + 4 + 2 =
54
Procedure #2
Shortcut
1. Start > Programs > Accessories >
Calculator 2. View > Scientific 3. Click on the "Bin" radio
Button (this stands for Binary) 4. Type in binary number 5. Click on
the "Dec"radio button (number will be converted from Binary to
decimal)
Objective: Convert Decimal to
Binary
Procedure #1 Plug in 1's and
0's (yes and no respectively) going from left to right until you get the
correct total. Example: 198
|
128s |
64s |
32s |
16s |
8s |
4s |
2s |
1s |
|
1 |
1 |
0 |
0 |
0 |
1 |
1 |
0 |
128 + ? = 198 (yes). Place a 1 under
128s 128 + 64 + ? = 198 (yes). Place a 1 under 64s. 128 + 64 + 32 =
224 (this number is too high. Place a 0 ("no") under 32s) 128 + 64 + 16
= 208 (this number is too high. Place a 0 ("no") under 16s) 128 + 64 +
8 = 200 (this number is too high. Place a 0 ("no") under 8s) 128 + 64 +
4 + ? = 198 (yes) Place a 1 under 4s 128 + 64 + 4 + 2 = 198. You have
your answer here. Place a 1 under 2s. Since 128+64+4+2+1 = 199, go
ahead and place a 0 under 1s.
Procedure #2
Shortcut
1. Start > Programs > Accessories >
Calculator 2. View > Scientific 3. Click on the "Dec"radio
button 4. Type in the number 5. Click on the "Bin" radio Button
(number will be converted from Binary to decimal) Note: The calculator
may yield less than 8 numbers. For example, decimal 8 would yield a binary
number of 1000. You would fill in your boxes going from right to
left.
Objective: Determine if a host is local
or remote
Boolean Math
(ANDing)
|
1 + 1 = 1 |
"Yes, I will
see you," says the computer. |
|
0 + 1 = 0 |
"No, I won't see
you," says the computer. |
|
0 + 0 = 0 |
"No, I won't see
you," says the computer. |
Procedure #1 (given binary
numbers)
Note: you can "AND" on the Scienfic
calculator (add binary numbers) by using the "AND" key
| Computer1 |
Octet / Field 1 |
Octet / Field 2 |
Octet / Field 3 |
Octet / Field 4 |
| IP Address |
10011001 |
10101010 |
00100101 |
10100011 |
| Subnet Mask |
11111111 |
11111111 |
00000000 |
00000000 |
| ANDed |
10011001 |
10101010 |
00000000 |
00000000 |
| Computer2 |
Octet / Field 1 |
Octet / Field 2 |
Octet / Field 3 |
Octet / Field 4 |
| IP Address |
11011001 |
10101010 |
10101100 |
11101001 |
| Subnet Mask |
11111111 |
11111111 |
00000000 |
00000000 |
| ANDed |
11011001 |
|
|
|
Do the ANDed results match? No, you can stop
immediately in ANDed result on Computer 2. Computer 2 is
remote.
Procedure #2 (given decimal
numbers)
How would question be asked if the numbers were
in decimal?
| Computer1 |
Octet 1 |
Octet 2 |
Octet 3 |
Octet 4 |
| IP Address |
153 |
170 |
37 |
163 |
| Subnet Mask |
255 |
255 |
0 |
0 |
| ANDed |
153 |
170 |
0 |
0 |
| Computer2 |
Octet 1 |
Octet 2 |
Octet 3 |
Octet 4 |
| IP Address |
217 |
170 |
172 |
233 |
| Subnet Mask |
255 |
255 |
0 |
0 |
| ANDed |
217 |
|
|
|
Clearly the answer is - no! These two computers
are not on the same network.
 |
Back |
|
|
|