Lesson 1-10 AP Computer Science Principles

Slides:



Advertisements
Similar presentations
A-Level Computing#BristolMet Session Objectives#8 express numbers in binary, octal and hexadecimal explain the use of code to represent a character set.
Advertisements

Lesson Objectives Explain the use of binary codes to represent characters Explain the term “Character set” Describe with examples (for examples ASCII and.
CODING SYSTEMS CODING SYSTEMS CODING SYSTEMS. CHARACTERS CHARACTERS digits: 0 – 9 (numeric characters) letters: alphabetic characters punctuation marks:
Decisions in Python Comparing Strings – ASCII History.
UNIT 2 LESSON 3 CS PRINCIPLES. OBJECTIVES Students will be able to: Construct a binary communication protocol for playing Battleship using the Internet.
Agenda Character representation Numerical Conversions ASCII EBCDIC
Representing Characters in a Computer System Representation of Data in Computer Systems.
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
Lesson 6 Binary Understand what Binary Code means and apply this knowledge Understand how data is represented using bit systems and be able to change decimal.
Understanding Computers
Chapter Nine: Data Transmission. Introduction Binary data is transmitted by either by serial or parallel methods Data transmission over long distances.
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
1.4 Representation of data in computer systems Character.
© 2016 AQA. Created by Teachit for AQA Character encoding and Representing images Lesson.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
DATA REPRESENTATION - TEXT
AP CSP: Pixelation – B&W/Color Images
Day 6 - Encoding and Sending Formatted Text
Binary Representation in Text
Binary Representation in Text
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Routers and Redundancy
Understanding binary Understanding Computers.
AP CSP: Encoding and Sending Formatted Text
Sending Binary Messages
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Arithmetic Shifts and Character Representation
Lesson Objectives Aims You should be able to:
AP CSP: Sending Binary Messages with the Internet Simulator
HTTP and Abstraction on the Internet
ENCODING AND SENDING FORMATTED TEXT
Binary 1 Basic conversions.
Lesson 1-15 AP Computer Science Principles
Lesson 1-4 AP Computer Science Principles
UNIT 2 – CHAPTER 1 – LESSON 1 DIGITAL INFORMATION.
AP CSP: Encode an Experience
Day 6 - Encoding and Sending Formatted Text
Lesson 2-2 AP Computer Science Principles
HTTP and Abstraction on the Internet
Routers and Redundancy
UNIT 2 – LESSON 4 Encoding Color Images.
Functions and Top-Down Design
What are Computers? G Use this tutorial alongside the numbers coded in your workbook and answer the related questions in each section.
Packets and Making a Reliable Internet
UNIT 1 – LESSON 6 SENDING NUMBERS.
U2L4 Encoding Color Images
Sending Bits in the Real World
CS Principles U2L3 Encoding B&W Images.
Lesson 1-13 AP Computer Science Principles
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Breaking the Code Can anyone guess the phrase from this “code”?
The Need for Addressing
Representing Information as bit patterns
Phnom Penh International University (PPIU)
Data Encoding Characters.
Sending Bits on the Internet
Representing Characters
Ch2: Data Representation
Binary Data representation
Presenting information as bit patterns
Chapter Nine: Data Transmission
Encoding and Sending Formatted Text
Day 6 - Encoding and Sending Formatted Text
Learning Intention I will learn how computers store text.
WJEC GCSE Computer Science
C Programming Language
Networks & I/O Devices July 10, 2019.
Binary.
Presentation transcript:

Lesson 1-10 AP Computer Science Principles Encoding Text Lesson 1-10 AP Computer Science Principles

Objectives Students will be able to: Create a protocol for sending messages of text and use it to send messages with the Internet Simulator. Explain the need for a ‘unified’ protocol for text- based communication between machines Explore abstractions that allow them to focus on new higher-level problems

Journal One of the most powerful uses of the internet is sending text to people. Since the internet can only send bits around we need a way to encode text with bits… If it were up to you, how would you encode text in binary? Quickly, jot down an idea for encoding text.

ASCII You just invented your own scheme for encoding text with numbers. There is a standard encoding for most of the symbols you can type on an American keyboard. That encoding is called the American Standard Code for Information Interchange or ASCII (“Ask-ee”).

ASCII Facts ASCII codes were originally 7 bits long and so there are 128 possible values 0-31 are “control characters” that largely defunct and go unused, they used to be used to control various aspects of machines and printers. 32-126 are printable characters and include the numbers 0-9, all 26 letters both lowercase and uppercase, and many common punctuation symbols. 127 is the symbol for delete Over time 8-bits became a standard “chunk-size” for encoding information. ASCII made the transition to this 8-bit encoding by just adding an extra 0 to the front of the old 7-bit codes.

Journal In your journals write your full name in ASCII Mr. Schmidt = 1001101 1110010 0101110 0100000 1010011 1100011 1101000 1101101 1101001 1100100 1110100

ASCII Mr. Schmidt = 77 114 46 32 83 99 104 109 105 100 116

What about Formatted Text? Having a standardized protocol like ASCII to encode text enables us to send and receive textual information. This is very useful, but there are still instances when we will want even greater expressive power in our digital communications.

What about Formatted Text? “What if you wanted to send formatted text that included things like the ability to underline, bold, or italicize words....specify a different font size, or color?” Things like:

Sending Formatted Text Download the activity guide for today Develop a protocol for encoding formatting information alongside regular text. Both the text and the formatting instructions must be derived from the printable ASCII character set (i.e. codes 32-126). You protocol must encode at least: bold, italics, and underlining three different font sizes (large, medium, and small) three different font colors (red, black, blue)

Develop Your Protocol Write it down! All members of your team must be able to use the protocol. I will split your group up and give you a message to send. The other person must correctly decode the message.

Stage 7 Complete Stage 7