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

Slides:



Advertisements
Similar presentations
Computer Systems Nat 4/5 Data Representation Lesson 4: Storing Graphics.
Advertisements

Representing Information as Bit Patterns
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
WEL COME PRAVEEN M JIGAJINNI PGT (Computer Science) MCA, MSc[IT], MTech[IT],MPhil (Comp.Sci), PGDCA, ADCA, Dc. Sc. & Engg.
Data Representation 3 This week – Recap on Floating point number – ASCII – unicode.
Computer Systems Nat 4/5 Computing Science Lesson 1: Binary.
Data Storage. SIGN AND MAGNITUDE Storing and representing numbers.
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.
2.1.4 BINARY ASCII CHARACTER SETS A451: COMPUTER SYSTEMS AND PROGRAMMING.
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Computing Higher - Unit 1… Computer Systems 1 Higher Computing Unit 1 – Topic 1 Data Representation.
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.
Input & Output: Console
Computer Math CPS120: Data Representation. Representing Data The computer knows the type of data stored in a particular location from the context in which.
Data Representation Int 2 Computing Unit 1 – Computer Systems St Kentigern’s Academy.
Shawlands Academy Higher Computing Data Representation.
Binary Arithmetic & Data representation
Computer Structure & Architecture 7c - Data Representation.
Information and Programs. Foundations of Computing Information –Binary numbers –Integers and Floating Point –Booleans (True, False) –Characters –Variables.
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.
COMPSCI 210 Semester Tutorial 1
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 2: Floating Point Representation.
The Teacher CP4 Binary and all that… CP4 Revision.
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
CISC1100: Binary Numbers Fall 2014, Dr. Zhang 1. Numeral System 2  A way for expressing numbers, using symbols in a consistent manner.  " 11 " can be.
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.
Int 2/ Higher - Data Representation - 1 Why use Binary? It is a two state system (on/off) which makes it simple to operate Even if degradation of current.
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
Data Encoding COSC Computers and Data Computers store information as sequences of bits Computers store many types of data: numbers text audio images.
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,
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 =
Computer Science 105 RAM and Binary Numbers What is ? What is 52 in binary? What is a file? Preview Questions:
 Computers are 2-state devices › Pulse – No pulse › On – Off  Represented by › 1 – 0  BINARY.
THE CODING SYSTEM FOR REPRESENTING DATA IN COMPUTER.
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
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
Breaking the Code Can anyone guess the phrase from this “code”?
Data Encoding Characters.
Data Representation ASCII.
Lecture 3 ISE101: Computing Fundamentals
Data Representation Question: Characters
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
Storing Negative Integers
How Computers Store Data
Chapter 3 DataStorage Foundations of Computer Science ã Cengage Learning.
Learning Intention I will learn how computers store text.
Computer Systems Nat 4/5 Data Representation Lesson 4:
WJEC GCSE Computer Science
Computer Systems Nat 4/5 Computing Science Data Representation
Chapter 3 - Binary Numbering System
Lecture 36 – Unit 6 – Under the Hood Binary Encoding – Part 2
ASCII and Unicode.
Presentation transcript:

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

1.What is the system used to store real numbers? 2.Convert into a decimal number 3.Convert 23 into binary. 4.Describe what is mean by a mantissa and exponent

1.Floating Point representation = = In the number 3.0 x10 8 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 by the computer.  Explain and give an example of an ASCII character.  Describe how many bytes are needed to represent a single character of text.  Describe what is meant by the term character set.  Give an example of why we need different character sets.

A question…  Computers can only use and understand binary digits which are 0’s and 1’s.  We have already looked at how binary can be used to store numbers.  How can we store text?  By storing them as binary numbers…. Nat 4/5

ASCII Codes  Each character on a keyboard has its own ASCII code. This is a binary value that represents each character that can be seen on the screen.  American Standard Code for Information Interchange  For example A = (65)  Each ASCII value takes up 1 byte of storage. Nat 4/5

ASCII Table  An extract of the ASCII Table is shown below:  The ASCII table has 128 values  52 just for text. 10 for numbers  Spacebar and tab key have codes too  What about the rest? Nat 4/5CodeSymbolCodeSymbolCodeSymbolCodeSymbol 49179O65A98b 50280P66B99c 51381Q67C100d 52482R68D101e 53583S69E102f

Control Characters  The rest of the ASCII code are reserved for control characters.  These are non-printable characters that have an effect such as  The Enter key  What about the trusted delete/backspace keys?  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  The character set can alter the layout of the keyboard  For example on American layout keyboards sign is above the number 2 not the “ mark. Nat 4/5

 Some languages use the Roman or Latin character set, English, French and German  Many others such as Japanese, use completely different characters Arabic ChineseKorean Nat 4/5

 The Unicode character set is designed to represent the writing schemes of all the world’s major languages  The first 128 characters of Unicode are the same as ASCII  Allowing for compatibility between them Nat 4/5

 Unicode is a 16 bit code and can represent 65,536 different characters  All possible characters can be represented  Unicode is used in all the worlds computers and on mobile phones for text messaging  It can represent many more characters than ASCII Nat 4/5

 Even though it takes up twice the space of ASCII to store (16 bits rather than 8 bits) and messages are twice as long to send this is no longer seen as a disadvantage as storage space became cheaper and bandwidth increased  Unicode allows all the worlds languages to be accessed from the one computer (see Microsoft Word File/Options or Region and Language in Windows) Nat 4/5

Summary  Text is stored in the computer using ASCII values  1 ASCII Value = 1 byte of memory  Control characters are the non-printable characters which have an effect on the screen  Such as the Enter Key  The character set is the name given to the entire set of characters that the keyboard can produce  Unicode is a character set designed to represent all the worlds languages Nat 4/5