1 of 19

�ENCODING AND SENDING FORMATTED TEXT

2 of 19

We Will Chat Syllabus on Friday

3 of 19

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 19

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 19

ASCII - VIDEO

6 of 19

7 of 19

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 19

What does this say-

01010101 01010011 01000011

9 of 19

Casey - CONVERSION EXAMPLE

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

10 of 19

COACH B��T-SHIRT

What does it Say?

11 of 19

12 of 19

There are online converters

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

13 of 19

ASCII- FUN SIDE

14 of 19

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…

15 of 19

16 of 19

ASCII ART

17 of 19

WEBSITES- ASCII ART GENERATORS

  • ASCII Art Word Generator

18 of 19

WEBSITES- ASCII ART GENERATORS

  • Picture to ASCII Art

19 of 19

Finished…

Do Code.org Lessons Please!