1 of 20

�ENCODING AND SENDING FORMATTED TEXT

2 of 20

We Will Chat Syllabus on Wednesday

3 of 20

PROTOCOLS

  • Protocol- Rules and regulations we all agree to use
  • information sent by a computer is encoded in bits, we need protocols to help us interpret these bits as meaningful information
  • Last class we learned how to use the binary number system to allow us to represent numbers in bits
  • How do we send text?
  • We use the ASCII system

4 of 20

ASCII- BORN 1963

  • American Standard Code for Information Interchange (ASCII)
  • number-to-text encoding scheme used in computers and on the Internet
  • numerical representation of a character such as 'a' or '@' or an action of some sort
  • This protocol is 7 bits long and so can encode 128 different symbols, however the byte system is still used to send. 0 at front of 7 bits.
  • Originally the encoding was designed for older printers and so the codes associated with the numbers 0-31 were designated as "control codes" which instruct the printer to perform certain actions. These codes are now largely out of use.

5 of 20

6 of 20

ASCII - VIDEO

7 of 20

ASCII

  • Codes 32-126, however, contain many of the most commonly used symbols you use on the internet, including the lowercase and capital letters, the numbers 0-9, and most commonly-used punctuation marks
  • Also used to represent all of the text formatting we use to add variety and emphasis to "plain-text" documents
  • The ability to represent formatting using only ASCII symbols is the result of cleverly designed protocols

8 of 20

What does this say-

01010101 01010011 01000011

9 of 20

Casey - CONVERSION EXAMPLE

  • My Example
  • Casey
  • 01000011 (67), 0110000 (97) What are next letters?
  • Try Your Name… in Binary

10 of 20

COACH B��T-SHIRT

What does it Say?

11 of 20

12 of 20

Sending text messages is really sending binary numbers. It all comes back to zeroes and ones, always!

Binary is KING!!

13 of 20

There are online converters

(like this one) if you want to wimp out and cheat

14 of 20

ASCII- FUN SIDE

15 of 20

ASCII- ART

  • ASCII art is a graphic design technique that uses the 95 ASCII printable (from a total of 128) characters
  • ASCII art can be created with any text editor
  • One of the main reasons ASCII art was born was because early printers often lacked graphics ability and thus characters were used in place of graphic marks
  • ASCII art was also used in early e-mail when images could not be embedded
  • This form of art dates way back…

16 of 20

17 of 20

ASCII ART

18 of 20

WEBSITES- ASCII ART GENERATORS

  • ASCII Art Word Generator

19 of 20

WEBSITES- ASCII ART GENERATORS

  • Picture to ASCII Art

20 of 20

Finished…

Do Code.org Lessons Please!

Your Class PEriod Code is on my Website.