1.4 + 1.5. Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.

Slides:



Advertisements
Similar presentations
How Computers Represent Numbers Friday, Week 5. Binary Code A series of 1’s and 0’s Place value is in powers of 2.
Advertisements

Digital Fundamentals Floyd Chapter 2 Tenth Edition
CSC /703 CTI/DePaul1 CSC-255 Lecture 3 Text and Numerical Storage (Chapter 1 from Brookshear) Modified by Ufuk Verun from Jim Janossy © 2002, DePaul.
Representing Information as Bit Patterns
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Representation of Data How is data (numbers, characters) represented so that it can be used in a Computer ?
Chapter 1 Data Storage. 2 Chapter 1: Data Storage 1.1 Bits and Their Storage 1.2 Main Memory 1.3 Mass Storage 1.4 Representing Information as Bit Patterns.
Data Representation in Computers
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Binary Numbers.
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:
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Lecture 5.
Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis.
Chapter 1 Data Storage(2) Yonsei University 1 st Semester, 2014 Sanghyun Park.
Binary Arithmetic & Data representation
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
Representing Data. Representing data u The basic unit of memory is the bit  A transistor that can hold either high or low voltage  Conceptually, a tiny.
Chapter 3 Section 1 Number Representation Modern cryptographic methods, unlike the classical methods we just learned, are computer based. Representation.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
Compsci Today’s topics l Binary Numbers  Brookshear l Slides from Prof. Marti Hearst of UC Berkeley SIMS l Upcoming  Networks Interactive.
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
Chapter 1: Data Storage.
Section 3.1: Number Representation Practice HW (not to hand in) From Barr Text p. 185 # 1-5.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
1 Data Representation Characters, Integers and Real Numbers Binary Number System Octal Number System Hexadecimal Number System Powered by DeSiaMore.
Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information Technology Islamic.
SEC (1.4) Representing Information as bit patterns.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
1 Problem Solving using Computers “Data....Representation, and Storage.
ASCII AND EBCDIC CODES By : madam aisha.
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
Understanding Computers
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.
Chapter 1: Data Storage.
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Some basic concepts underlying computer archi­tecture
Binary Representation in Text
Binary Representation in Text
Computer Science: An Overview Eleventh Edition
Understanding binary Understanding Computers.
Unit 2.6 Data Representation Lesson 2 ‒ Characters
Data Transfer ASCII FILES.
Representing Information as bit patterns
Data Encoding Characters.
TOPICS Information Representation Characters and Images
Chapter 1 Data Storage.
Numbering System TODAY AND TOMORROW 11th Edition
Presenting information as bit patterns
COMS 161 Introduction to Computing
COMS 161 Introduction to Computing
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
Digital Encodings.
How Computers Store Data
The Binary System.
Learning Intention I will learn how computers store text.
ASCII LP1.
ASCII and Unicode.
Presentation transcript:

Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as a long string of bits. –ASCII” American standard code for information interchange”: Uses patterns of 7-bits to represent most symbols used in written English text. –Today, it is extended to 8-bits. Islamic University Of Gaza, Nael Aburas2

Figure 1.13 The message “Hello.” in ASCII Islamic University Of Gaza, Nael Aburas3

Representing Text: The American National Standards Institute (ANSI) adapted the American Standard Code for Information Interchange (ASCII) This code uses 7 bits to represent the alphabets (a-z & A-Z) and numbers from 0 to 9 and punctuation symbols.

Unicode: This code uses 16 bits represents each symbols. Unicode consists of different bit patterns enough to allow text written in such languages A file containing a long sequence of symbols encoded using ASCII or Unicode is often called a text file

Representing text Unicode: Uses patterns of 16-bits to represent the major symbols used in languages world side ISO standard: Uses patterns of 32-bits to represent most symbols used in languages world wide Islamic University Of Gaza, Nael Aburas6

The difference between word processors and text file as follows: Word processorsText file Use word applicationUse text editor 1 Contains numbers proprietary codes representing changes in fonts, alignment information, …etc Contains only character-by- character encoding of text 2 Use proprietary code rather than the ASCII or Unicode Use ASCII or Unicode 3

Representing Numeric Values Binary notation is a way of representing numeric values using only digits 0 and 1. Islamic University Of Gaza, Nael Aburas8

Representing Numeric Values A number can be represented differently in different systems. For example, the two numbers (2A) 16 and (52) 8 both refer to the same quantity, (42) 10, but their representations are different. Each number system is associated with a base Islamic University Of Gaza, Nael Aburas9

Representing Numeric Values A number represented as: Each digit carries a certain weight based on its position IntegerFraction Islamic University Of Gaza, Nael Aburas10

Binary system In the binary system, there are only two symbols or possible digit values, 0 and 1. This base-2 system can be used to represent any quantity that can be represented in decimal or other number system Islamic University Of Gaza, Nael Aburas11

Binary system 11001) 2For example, here is ( 11001) 2 in binary (101.11) 2(101.11) 2 Islamic University Of Gaza, Nael Aburas12

Decimal The decimal system is composed of 10 numerals or symbols. These 10 symbols are 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9; using these symbols as digits of a number, we can express any quantity. The decimal system, also called the base-10 system Islamic University Of Gaza, Nael Aburas13

Decimal system (224) 10(224) 10 Note that the digit 2 in position 1 has the value 20, but the same digit in position 2 has the value 200Note that the digit 2 in position 1 has the value 20, but the same digit in position 2 has the value 200 Islamic University Of Gaza, Nael Aburas14

Figure 1.15 The base ten and binary systems Islamic University Of Gaza, Nael Aburas15

Figure 1.16 Decoding the binary representation Islamic University Of Gaza, Nael Aburas16

Exercise Convert each of the following binary representation to its base ten: –0101 –1001 –1011 –0110 –1000 –10010 Islamic University Of Gaza, Nael Aburas17

Figure 1.17 An algorithm for finding the binary representation of a positive integer Islamic University Of Gaza, Nael Aburas18

Figure 1.18 Applying the algorithm in Figure 1.15 to obtain the binary representation of thirteen Islamic University Of Gaza, Nael Aburas19

Binary addition To add two integers represented in binary notation, we follow the same procedure in the traditional base ten except that all sums are computed using the following addition fact. Islamic University Of Gaza, Nael Aburas20

Binary addition Islamic University Of Gaza, Nael Aburas21

Binary addition Islamic University Of Gaza, Nael Aburas22

Binary addition Islamic University Of Gaza, Nael Aburas23

Fraction in binary The digit to the right of radix point represent the fractional part. The positions are assigned fractional quantities The first position is assigned the quantity ½ (which is 2 -1 ), and so on Islamic University Of Gaza, Nael Aburas24

Fraction in binary Islamic University Of Gaza, Nael Aburas25

Decimal fraction to binary Covert to base x 2 = =.1 25 x 2 = = x 2 = =.101 Islamic University Of Gaza, Nael Aburas26