Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text

Slides:



Advertisements
Similar presentations
Technology ICT Option: Data Representation. Data Representation In our everyday lives, we communicate with each other using analogue data. This data takes.
Advertisements

Representing Information as Bit Patterns
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text.
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:
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text.
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Computer Math CPS120: Data Representation. Representing Data The computer knows the type of data stored in a particular location from the context in which.
Binary Arithmetic & Data representation
Computer Structure & Architecture 7c - Data Representation.
Fill in the blanks: (1) _________ has only two possible values 0 and 1. (2) There are __________bits in a byte. (3) 1 kilobyte of memory space can store.
The Teacher CP4 Binary and all that… CP4 Revision.
1 Lecture 2  Complement  Floating Point Number  Character Encoding.
1 3 Computing System Fundamentals 3.5 Data Representation.
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 2: Floating Point Representation.
The Teacher CP4 Binary and all that… CP4 Revision.
Representing Characters in a computer Pressing a key on the computer a code is generated that the computer can convert into a symbol for displaying or.
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
Representation of Characters
Data Encoding COSC Computers and Data Computers store information as sequences of bits Computers store many types of data: numbers text audio images.
Data Representation. How is data stored on a computer? Registers, main memory, etc. consists of grids of transistors Transistors are in one of two states,
Binary 101 Gads Hill School. Aim To strengthen understanding of how computers use the binary number system to store information.
Representing Characters in a Computer System Representation of Data in Computer Systems.
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
1.4 Representation of data in computer systems Character.
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 Lesson 1: Binary
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
DATA REPRESENTATION - TEXT
Binary Representation in Text
Binary Representation in Text
Storing Graphics Nat 5 Data Representation Lesson 4a: Storing Graphics
Understanding binary Understanding Computers.
Unit 2.6 Data Representation Lesson 2 ‒ Characters
Lesson Objectives Aims You should be able to:
Computer Systems Nat 4/5 Data Representation Lesson 4:
CSCI 198: Lecture 4: Data Representation
Data Transfer ASCII FILES.
CSCI 161: Lecture 4: Data Representation
Why use Binary? There are only four rules for addition in binary compared to 100 in decimal [0+0=0 ; 0+1=1 ; 1+0=1; 1+1=10]
Breaking the Code Can anyone guess the phrase from this “code”?
Data Encoding Characters.
Data Representation ASCII.
Lecture 3 ISE101: Computing Fundamentals
Representing Characters
Data Representation Question: Characters
Computers & Programming Languages
Presenting information as bit patterns
COMS 161 Introduction to Computing
Why use Binary? It is a two state system (on/off) which makes it simple to operate Even if degradation of current occurs (ie a slight drop in voltage)
Storing Negative Integers
How Computers Store Data
Starter Using the fingers on only one hand, what is the highest number you can count to? Rules: You must start at 1 You must count sequentially (i.e.
Learning Intention I will learn how computers store text.
Option: Data Representation
Computer Systems Nat 4/5 Data Representation Lesson 4:
Beyond Base 10: Non-decimal Based Number Systems
Option: Data Representation
WJEC GCSE Computer Science
Computer Systems Nat 4/5 Computing Science Data Representation
ASCII LP1.
Chapter 3 - Binary Numbering System
ASCII and Unicode.
Presentation transcript:

Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text Computer Systems Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text

REVISION What is the system used to store real numbers? Convert 1100 1100 into a decimal number Convert 23 into binary. Using this scientific notation value, 3.8 x 108 , describe what is mean by a mantissa and exponent

ANSWERS Floating Point representation 1100 1100 = 204 23 = 0001 0111 In the number 3.8 x108 the mantissa would be 3.0 with the exponent being 8

Lesson Aims By the end of this lesson you will be able to: Describe how text is stored Explain and give an example of an ASCII character. Describe how many bytes are needed to represent a single character using ASCII. Describe what is meant by the term character set. Give an example of why we need different character sets. Explain what Unicode is Describe how many bytes are needed to store a single character using Unicode.

A question… Computers can only use binary digits i.e. 0’s and 1’s. Nat 4/5 A question… Computers can only use binary digits i.e. 0’s and 1’s. How can we store text? By storing them as binary numbers….

ASCII Codes Each character on a keyboard has its own ASCII code. Nat 4/5 ASCII Codes Each character on a keyboard has its own ASCII code. ASCII code = a binary value that represents a character American Standard Code for Information Interchange All computers can exchange information and understand it

ASCII example For example A = 100 0001 (65) Each ASCII value uses 7 bits but it is assumed that 1character =1 byte

ASCII Table An extract of the ASCII Table is shown below: Nat 4/5 ASCII Table An extract of the ASCII Table is shown below: The ASCII table has 128 values (27=128) so there are codes for 128 different characters can be used Code Symbol 48 78 N 64 @ 97 a 49 1 79 O 65 A 98 b 50 2 80 P 66 B 99 c 51 3 81 Q 67 C 100 d 52 4 82 R 68 D 101 e 53 5 83 S 69 E 102 f

Nat 4/5 ASCII Codes 96 out of 128 ASCII codes are used to store characters. This includes: Upper and lower case letters A-Z, a-z Punctuation and other symbols , : ; £ $ % 10 codes for numbers, 0 to 9 Spacebar has a code too = code 32

Nat 5 Extended ASCII Many computer systems use a form of ASCII called Extended ASCII 8-bit code that allows 256 (28) different characters

Extended ASCII It includes additional characters used in European countries like é á æ ß Also © ≠ ≤ ≥ ™ ÷ Some Extended ASCII characters are shown here 

Nat 4/5 Character Set The character set is the name given to the complete set of characters that the computer can represent. Different character sets are used to represent different languages

UNICODE Unicode is a 16-bit code which allows 65,536 characters Nat 5 UNICODE Unicode is a 16-bit code which allows 65,536 characters Has codes for every language in the world Includes cosed for character-based alphabets e.g Chinese and Japanese

Summary Text is stored in the computer using ASCII values Nat 4/5 Summary Text is stored in the computer using ASCII values 1 ASCII Value = 1 byte of memory ASCII allows 128 characters Extended ASCII allows 256 characters The character set is the name given to the entire set of characters that the computer can use Unicode uses 2 bytes per characters and allows 65,536 characters – for all languages

Pupil Task: Worksheet 3 Complete the answers to this task in your jotter.