DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

Slides:



Advertisements
Similar presentations
Unicode Mark Davis Unicode Consortium President IBM Chief SW Globalization Architect.
Advertisements

Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters.
Binary Representation Introduction to Computer Science and Programming I Chris Schmidt.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
Processing Data.
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Data Representation in Computers
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Data Representation 3 This week – Recap on Floating point number – ASCII – unicode.
Number Systems & Logic Gates Day 1
Data Storage. SIGN AND MAGNITUDE Storing and representing numbers.
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
COMPUTER FUNDAMENTALS David Samuel Bhatti
CODING SYSTEMS CODING SYSTEMS CODING SYSTEMS. CHARACTERS CHARACTERS digits: 0 – 9 (numeric characters) letters: alphabetic characters punctuation marks:
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Lecture 5.
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
Introduction to Number Representation F451 Year 10 Computing Binary Numbers Binary Numbers Sign/Magnitude Sign/Magnitude 2s Complement 2s Complement Binary.
Bits & Bytes: How Computers Represent Data
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Chapter 4: Representation of data in computer systems: Characters OCR Computing for GCSE © Hodder Education 2011.
1 Digital Technology and Computer Fundamentals Chapter 1 Data Representation and Numbering Systems.
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
Data Representation.
COMPSCI 210 Semester Tutorial 1
Number Systems Spring Semester 2013Programming and Data Structure1.
Cis303a_chapt03-2a.ppt Range Overflow Fixed length of bits to hold numeric data Can hold a maximum positive number (unsigned) X X X X X X X X X X X X X.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
CS151 Introduction to Digital Design
1 3 Computing System Fundamentals 3.5 Data Representation.
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Tasanawan Soonklang Department of Computing, Faculty of Science Data Representation.
Representation of Characters
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
Agenda Character representation Numerical Conversions ASCII EBCDIC
Business Programming I Fall – 2000 By Jim Payne Lecture 05Jim Payne - University of Tulsa2 Alphanumeric Storage Numbers that are not numbers? Alphabetic.
Data Representation.
M204 - Data Representation
ASCII AND EBCDIC CODES By : madam aisha.
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
Nguyen Le CS147.  2.4 Signed Integer Representation  – Signed Magnitude  – Complement Systems  – Unsigned Versus Signed Numbers.
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
THE CODING SYSTEM FOR REPRESENTING DATA IN COMPUTER.
1.4 Representation of data in computer systems Character.
Introduction to computer science Lec2 cs111. Extended Binary Coded Decimal Interchange Code (EBCDIC) is an 8- bit character encoding used mainly on.
There are 10 different types of people in the world. Those who understand binary and those that don’t.
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
Some basic concepts underlying computer archi­tecture
Lesson Objectives Aims You should be able to:
Binary Numbers and ASCII and EDCDIC
CSCI 198: Lecture 4: Data Representation
Data Transfer ASCII FILES.
CSCI 161: Lecture 4: Data Representation
Bits & Bytes How Computers Represent Data
Representing Information as bit patterns
Phnom Penh International University (PPIU)
Data Encoding Characters.
TOPICS Information Representation Characters and Images
Data Representation ASCII.
Lecture 3 ISE101: Computing Fundamentals
Data Representation Question: Characters
Computer Data Types Basics of Computing.
Dr. Clincy Professor of CS
Presenting information as bit patterns
C1 Number systems.
Storing Negative Integers
Learning Intention I will learn how computers store text.
Presentation transcript:

DATA REPRESENTATION 4 Y. Colette Lemard February 2009

2 HOW IS DATA ACTUALLY REPRESENTED IN THE COMPUTER!?

3 Every character, whether it is a letter, a number or a special character, has a binary representation. This is the form in which you will find it stored on a storage medium.

4 However, all computers do not use the same system for determining the representation. Most microcomputers use the ASCII system IBM machines, minicomputers and mainframes use EBCDIC There is also UNICODE – an international standard set up by the ISO

5 ASCII ASCII stands for American Standard Code for Information Interchange. It is a standard seven-bit code that was proposed by ANSI in 1963, and finalized in 1968ANSI The standard ASCII character set consists of 128 decimal numbers ranging from zero through 127 assigned to letters, numbers, punctuation marks, and the most common special characters.

6

7 The ASCII value is then represented as a binary number in the computer. E.g. capital A is 65  E.g. capital B is 66 

8 E.g. common a is 97  E.g. common b is 98  E.g. a space is 32  E.g. the semicolon (;) is 59 

9 The ASCII code takes up 7 bits and one bit is used for parity. That means that one character can be stored in 8 bits  one byte

10 EBCDIC EBCDIC was invented in 1963 by IBM for use in their computer systems in the days when proprietary standards were in vogue. It stands for Extended Binary Coded Decimal Interchange Code and was based on the BCD concept but using 8 bits so allowing for representation of many more characters.

11

12 The 1 byte binary EBCDIC code is split into two nybbles – the first 4 bytes indicates the class of the character while the second is the actual representation of the character

13 E.g stands for 9. the first 4 characters 1111 indicate that it is a number and 1001 is the BCD for 9 E.g. uppercase characters begin with 1100

14 UNICODE Unicode is aimed at providing a unique number for every character, no matter what the platform, no matter what the program, no matter what the language.

15 The Unicode Standard has been adopted by such industry leaders as Apple, HP, Microsoft, Oracle, Sun, Sybase, Unisys and many others. Unicode is required by modern standards such as XML, Java, JavaScript, CORBA 3.0, etc.. It is supported in many operating systems and all modern browsers.

16 The use of the Unicode character set can be seen when one attempts to insert a symbol from inside MS Word. The dialog box allows one to choose a character from the ASCII set or the UNICODE set. The UNICODE set comes up by default however.

17

18 S U M M A R Y We’ve looked at : Bits & Bytes Number bases (Base 2, 8, 10, 16) Binary Fixed representation BCD signed magnitude one’s complement two’s complement Floating point numbers Number and character representation

19 Q U E S T I O N S?

20 ~ The E N D ~