1.4 Representation of data in computer systems Character.

Slides:



Advertisements
Similar presentations
Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters.
Advertisements

How Computers Represent Numbers Friday, Week 5. Binary Code A series of 1’s and 0’s Place value is in powers of 2.
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Chapter 8_2 Bits and the "Why" of Bytes: Representing Information Digitally.
Working with the data type: char  2000 Prentice Hall, Inc. All rights reserved. Modified for use with this course. Introduction to Computers and Programming.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Data Storage. SIGN AND MAGNITUDE Storing and representing numbers.
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.
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.
Bits, Bytes, KiloBytes, MegaBytes, GigaBytes & TeraBytes.
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
CSCI 1100/1202 January 16, Why do we need variables? To store intermediate results in a long computation. To store a value that is used more than.
Bits & Bytes: How Computers Represent Data
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Aloha Aloha What you see: What the computer sees: binary number columns binary number columns
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Binary Arithmetic & Data representation
Computer Structure & Architecture 7c - Data Representation.
Data Representation A series of eight bits is called a byte. A byte can be used to represent a number or a character. As you’ll see in the following table,
Binary Code.
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.
CS151 Introduction to Digital Design
HOW COMPUTERS MANIPULATE DATA Chapter 1 Coming up: Analog vs. Digital.
1 3 Computing System Fundamentals 3.5 Data Representation.
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Section 3.1: Number Representation Practice HW (not to hand in) From Barr Text p. 185 # 1-5.
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.
CS 111 – Sept. 1 Intro to data representation Binary numbers –Convert binary  decimal –Convert decimal  binary Text –ASCII and Unicode Commitment: –For.
Representation of Characters
Agenda Character representation Numerical Conversions ASCII EBCDIC
DATA REPRESENTATION 4 Y. Colette Lemard February 2009.
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.
HNC COMPUTING - COMPUTER PLATFORMS 1 Micro Teach Binary.
The ASCII Alphanumeric Code What is it? Why use it? How do we use it?
Introduction to computer science Lec2 cs111. Extended Binary Coded Decimal Interchange Code (EBCDIC) is an 8- bit character encoding used mainly on.
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
Text and Images Key Revision Points.
Binary Representation in Text
Binary Representation in Text
GCSE COMPUTER SCIENCE Data 2.2 Characters and Images.
Unit 2.6 Data Representation Lesson 2 ‒ Characters
Chapter 3 Data Representation Text Characters
Lesson Objectives Aims You should be able to:
CSCI 198: Lecture 4: Data Representation
Data Transfer ASCII FILES.
CSCI 161: Lecture 4: Data Representation
Representing Information as bit patterns
Data Encoding Characters.
TOPICS Information Representation Characters and Images
Data Representation ASCII.
Representing Characters
Data Representation Question: Characters
Diminished Radii Complement and codes
Escape Sequences Some Java escape sequences: See Roses.java (page 68)
Presenting information as bit patterns
COMS 161 Introduction to Computing
Learning Intention I will learn how computers store text.
WJEC GCSE Computer Science
C Programming Language
Chapter 3 - Binary Numbering System
Digital Representation of Data
ASCII and Unicode.
Presentation transcript:

1.4 Representation of data in computer systems Character

How are binary codes used to represent characters? Each character (such as uppercase and lowercase letters, numbers and symbols) must be stored as a binary number if a computer system is to be able to store and process it. Each character is therefore given a unique number code, for example the number code for the character 'a' could be decimal 97. When a character is stored on a computer system it is therefore the number code that is actually stored (as a binary number).

What is a character set? A character set is a complete set of the characters and their number codes that can be recognised by a computer system.

How are the number of bits per character related to the number of different possible characters ? The ASCII Character Set bits per character: The ASCII (American Standard Code for Information Interchange) character set uses 7 bits of memory per character, allowing 128 different characters to be represented, using the binary codes to Extensions to the ASCII character set use 8 bits (1 byte) per character, allowing 256 total characters. This is still limited and means that different ASCII character sets are needed for the different characters and symbols used in different countries such as accented characters.

How are the number of bits per character related to the number of different possible characters ? Example characters, their decimal codes and the binary codes actually stored by the computer. Character Decimal ASCII Code Binary code A B a b SPACE Control characters: ASCII actually reserves the first 32 codes (numbers 0–31 decimal) for non-printable control characters. For example: ASCII code 13 is a carriage return, moving the cursor to a new line when typing; ASCII code 9 inserts a tab into a line of text.

How are the number of bits per character related to the number of different possible characters ? The Unicode Character Set - 16 bits per character: The Unicode character set potentially uses up to 16 bits (2 bytes) of memory per character which would allow 65,536 different characters to be represented. Using 16 bits means that Unicode can represent the characters and symbols from all the alphabets that exist around the globe, rather than having to use different character sets for different countries. The first 128 characters in ASCII have the same numeric codes as those in Unicode, making Unicode backward compatible with ASCII.