You are on page 1of 11

ASCII Part 2

ASCII means American Standard for Information Interchange


Each Character (e.g. M, T, Team) has a ASCII value
Uppercase Character has a different value than a Lowercase
character.

Why do you think when you save password as PAL2013 and you type
pal2013 you get an error?
Each character is represented by 8 bits.

What should you do if you convert a value and it is 4 bit long?


When converting a word to ASCII each letter should be 8 bits long.
8 bits makes a_______________________ (hint: bit, byte, nibble)
If you are finding the ASCII value for the word Team you should:
A) Ask yourself Is the this a uppercase or lowercase character?
B) Depending on your answer find the decimal value for the letter
C) Find the binary value for the Decimal number
D) Add Zero(s) to the left to make the binary value 8 bits.
Today we are going to determine a letter
based on the binary value
For example you were asked to determine the letter for 01000010

Steps

1. Draw the binary placement table.


128 64 32 16 8 4 2 1
27 26 25 24 23 22 21 20
Steps

2. Insert the binary value that you were given in the table (see slide 6)

The value given was: 01000010

128 64 32 16 8 4 2 1
27 26 25 24 23 22 21 20

0 1 0 0 0 0 1 0
Steps

3. Add all the values in the top row that has a one (1) under it

128 64 32 16 8 4 2 1
27 26 25 24 23 22 21 20

0 1 0 0 0 0 1 0

64 + 2 = 66
Steps

4. Check the ASCII table for the letter with the decimal value.

In this case the value was 66

All Caps A B C D E F G H I J K L M
Decimal 65 66 67 68 69 70 71 72 73 74 75 76 77
Rep

Its a B
Please find the letters for the following values:

1) 01101010

2) 01010111
Finding a word when given the ASCII
For example you were given 010101000100100001000101 to
convert.
Steps

1. First separate the binary value into groups of 8 starting from the
right.

010101000100100001000101
Steps

2. Repeat 1 to 4 for each

What is the Word?

Congratulations! Youre one step closer to


becoming the greatest computer scientists ever.

You might also like