+ All Categories
Home > Documents > DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

Date post: 18-Jan-2018
Category:
Upload: philip-knight
View: 213 times
Download: 0 times
Share this document with a friend
Description:
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.
20
DATA REPRESENTATION 4 Y. Colette Lemard February 2009
Transcript
Page 1: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

DATA REPRESENTATION

4

Y. Colette Lemard

February 2009

Page 2: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

2

HOW IS DATA ACTUALLY

REPRESENTED IN THE COMPUTER!?

Page 3: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

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.

Page 4: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

4

However, all computers do not use the same system for determining the representation.

Most microcomputers use the ASCII systemIBM machines, minicomputers and mainframes use EBCDICThere is also UNICODE – an international standard set up by the ISO

Page 5: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

5

ASCIIASCII 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 1968 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.

Page 6: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

6

Page 7: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

7

The ASCII value is then represented as a binary number in the computer.

E.g. capital A is 65 1000001

E.g. capital B is 66 1000010

Page 8: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

8

E.g. common a is 97 1100001

E.g. common b is 98 1100010

E.g. a space is 32 0100000

E.g. the semicolon (;) is 59 0111011

Page 9: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

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

Page 10: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

10

EBCDICEBCDIC 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.

Page 11: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

11

Page 12: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

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

Page 13: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

13

E.g. 1111 1001 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

Page 14: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

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.

Page 15: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

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.

Page 16: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

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.

Page 17: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

17

Page 18: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

18

S U M M A R YWe’ve looked at :

Bits & BytesNumber bases (Base 2, 8, 10, 16)Binary

Fixed representationBCDsigned magnitudeone’s complementtwo’s complement

Floating point numbersNumber and character representation

Page 19: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

19

Q U E S T I O N S?

Page 20: DATA REPRESENTATION 4 Y. Colette Lemard February 2009.

20

~ The E N D ~


Recommended