Representing Characters in a Computer System Representation of Data in Computer Systems.

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

Computer Systems Nat 4/5 Data Representation Lesson 4: Storing Graphics.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
1 Lab Session-IV CSIT-120 Spring 2001 Lab 3 Revision and Exercises Rev: Precedence Rules Lab Exercise 4-A Machine Language Programming The “Micro” Machine.
Chapter 8_2 Bits and the "Why" of Bytes: Representing Information Digitally.
1 Lab Session-III CSIT-120 Spring 2001 Revising Previous session Data input and output While loop Exercise Limits and Bounds GOTO SLIDE 13 Lab session.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
1 12/08/03SW Abingdon and Witney College Binary Converting to and from decimal.
CIS 234: Character Codes Dr. Ralph D. Westfall April, 2011.
Chapter 3 Data Representation Text Characters. 2 Representing Text To represent a text document in digital form, we need to be able to represent every.
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text.
ASCII and Unicode. ASCII Inside a computer, EVERYTHING is a number – that includes music, sound, and text. In the early days of computers, every manufacturer.
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:
2.1.4 BINARY ASCII CHARACTER SETS A451: COMPUTER SYSTEMS AND PROGRAMMING.
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text.
Decisions in Python Comparing Strings – ASCII History.
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.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
CSC 101 Introduction to Computing Lecture 9 Dr. Iftikhar Azim Niaz 1.
1 Lab Session-III CSIT-120 Fall 2000 Revising Previous session Data input and output While loop Exercise Limits and Bounds Session III-B (starts on slide.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Computer Structure & Architecture 7c - Data Representation.
Computers and Text Daniel Velasquez Scott Baranick.
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.
Computing Theory – F453 Number Systems. Data in a computer needs to be represented in a format the computer understands. This does not necessarily mean.
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Bits and Bytes IGCSE. A binary number is either a 0 or a 1 and is known as a 'bit' or b inary dig it. However, the CPU cannot deal with just one bit at.
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.
Introduction to Unix (CA263) File Editing By Tariq Ibn Aziz.
Representation of Characters
Agenda Character representation Numerical Conversions ASCII EBCDIC
1 Problem Solving using Computers “Data....Representation, and Storage.
M204 - Data Representation
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,
Millions of electronic pulses move through your computer every second. Computers are capable of processing thousands of functions in the time it takes.
Understanding Computers
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
THE CODING SYSTEM FOR REPRESENTING DATA IN COMPUTER.
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.
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
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
DATA REPRESENTATION - TEXT
Binary Representation in Text
Binary Representation in Text
Understanding binary Understanding Computers.
Unit 2.6 Data Representation Lesson 2 ‒ Characters
3 – Boolean Logic and Logic Gates 4 – Binary Numbers
Binary 1 Basic conversions.
Data Transfer ASCII FILES.
Data Encoding Characters.
Data Representation ASCII.
Representing Characters
Data Representation Question: Characters
COMS 161 Introduction to Computing
Chapter 2 Data Representation.
COMS 161 Introduction to Computing
Learning Intention I will learn how computers store text.
Option: Data Representation
Option: Data Representation
WJEC GCSE Computer Science
ASCII LP1.
Chapter 3 - Binary Numbering System
Lecture 36 – Unit 6 – Under the Hood Binary Encoding – Part 2
ASCII and Unicode.
Presentation transcript:

Representing Characters in a Computer System Representation of Data in Computer Systems

Activity 1 Convert the following binary numbers to hexadecimal min

Representing Characters

Representation of Data in Computer Systems Introduction As we have seen before, computers can only deal with 0s and 1s (binary) All data that it needs to work with (numbers, sound, images etc) must be converted into binary for the computer to be able to process it. It is exactly the same for text, or one piece of text known as a character. Each time you hit a key on a keyboard, the computer generates a code for that letter, which is then processed by the CPU and the result might be the letter appearing on the screen or being printed on paper. Learning Objectives: Characters: (a)Explain the use of binary codes to represent characters (b)Explain the term character set (c)Describe with examples (for example ASCII and Unicode) the relationship between the number of bits per character set and the number of characters that can be represented

Representation of Data in Computer Systems Introduction So that all computer systems behave in a similar way it is important that there is an agreed set of codes for characters. In 1960, the American Standard Association agreed on a set of codes to represent the main characters in the English language. And this is known as ASCII A merican S tandard C ode for I nformation I nterchange Learning Objectives: Characters: (a)Explain the use of binary codes to represent characters (b)Explain the term character set (c)Describe with examples (for example ASCII and Unicode) the relationship between the number of bits per character set and the number of characters that can be represented

Representation of Data in Computer Systems ASCII Character Set The English Language requires the number of codes shown below: Learning Objectives: Characters: (a)Explain the use of binary codes to represent characters (b)Explain the term character set (c)Describe with examples (for example ASCII and Unicode) the relationship between the number of bits per character set and the number of characters that can be represented Letters of the alphabet (lower case)26 Letters of the alphabet (upper case)26 All numeric symbols10 Punctuation, symbols and ‘space’33 32 codes reserved for non-printable control codes (printable) 32 (non printable) 127 in total

Representation of Data in Computer Systems ASCII Character Set As we know, one byte is capable of storing 256 different numbers: Binary: Denary:0 – 255 The ASCII system requires 127 different codes. In binary, 127 is , so the ASCII system uses 7 bits. Learning Objectives: Characters: (a)Explain the use of binary codes to represent characters (b)Explain the term character set (c)Describe with examples (for example ASCII and Unicode) the relationship between the number of bits per character set and the number of characters that can be represented

Representation of Data in Computer Systems ASCII Character Set As 8 bit machines became standard, the ASCII character set made use of the extra bit (providing a further 128 characters). So conveniently a byte is used to represents all characters for the English language. Learning Objectives: Characters: (a)Explain the use of binary codes to represent characters (b)Explain the term character set (c)Describe with examples (for example ASCII and Unicode) the relationship between the number of bits per character set and the number of characters that can be represented

Representation of Data in Computer Systems

Activity 2 5mins Write ASCII in ASCII code (binary)

Activity 2 5mins Write ASCII in ASCII code (binary) A S C I I

Representation of Data in Computer Systems The problem with ASCII So, we have seen how the ASCII character set can hold up to 256 characters. What is the problem with this? The issue is that some languages (such as Chinese and Japanese) use thousands of different characters – which cannot fit into a byte. Learning Objectives: Characters: (a)Explain the use of binary codes to represent characters (b)Explain the term character set (c)Describe with examples (for example ASCII and Unicode) the relationship between the number of bits per character set and the number of characters that can be represented

Representation of Data in Computer Systems UNICODE As computers developed and 16 bit computers were introduced, a new character set was developed to accommodate the various other languages of the world. This new character set is known as UNICODE. Learning Objectives: Characters: (a)Explain the use of binary codes to represent characters (b)Explain the term character set (c)Describe with examples (for example ASCII and Unicode) the relationship between the number of bits per character set and the number of characters that can be represented

Representation of Data in Computer Systems UNICODE UNICODE uses 32 bits (2 sets of 16 bits) to represent every character in various languages around the world. Within the UNICODE system, the original 127 ASCII characters still have the same code values, others have just been added on. Learning Objectives: Characters: (a)Explain the use of binary codes to represent characters (b)Explain the term character set (c)Describe with examples (for example ASCII and Unicode) the relationship between the number of bits per character set and the number of characters that can be represented