Chapter 8 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.

Slides:



Advertisements
Similar presentations
Review of HTML Ch. 1.
Advertisements

Review Ch.1,Ch.4,Ch.7. Review of tags covered various header tags Img tag Style, attributes and values alt.
Bits and the "Why" of Bytes: Representing Information Digitally
Chapter 7 Representing Information Digitally. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Explain.
1. Discrete / Continuous Representations Of numbers – binary & decimal Bits Hexadecimal - 'Hex' Representing text Bits and Bytes.
Chapter 8_2 Bits and the "Why" of Bytes: Representing Information Digitally.
1 The Information School of the University of Washington Nov 6fit more-digital © 2006 University of Washington Digital Information INFO/CSE 100,
28-Jun-15 Number Systems. 2 Bits and bytes A bit is a single two-valued quantity: yes or no, true or false, on or off, high or low, good or bad One bit.
Data Representation in Computers
Chapter 8 Bits and the "Why" of Bytes: Representing Information Digitally.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Binary and Decimal Numbers
SIMS-201 Representing Information in Binary. 2  Overview Chapter 3: The search for an appropriate code Bits as building blocks of information Binary.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Computer Fluency Binary Systems. Humans Decimal Numbers (base 10) Decimal Numbers (base 10) Sign-Magnitude (-324) Sign-Magnitude (-324) Decimal Fractions.
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
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Dale & Lewis Chapter 3 Data Representation
(2.1) Fundamentals  Terms for magnitudes – logarithms and logarithmic graphs  Digital representations – Binary numbers – Text – Analog information 
Lecture 5.
Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis.
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
Bits & Bytes: How Computers Represent Data
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Chapter 2 Computer Hardware
Data Representation CS280 – 09/13/05. Binary (from a Hacker’s dictionary) A base-2 numbering system with only two digits, 0 and 1, which is perfectly.
Digital Information  digits are symbols chapter 8 BITS & THE “WHY” OF BYTES.
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.
Positional Notation 642 in base 10 positional notation is:
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
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.
1 Data Representation Characters, Integers and Real Numbers Binary Number System Octal Number System Hexadecimal Number System Powered by DeSiaMore.
Data Representation, Number Systems and Base Conversions
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
The Information School of the University of Washington Oct 13fit digital1 Digital Representation INFO/CSE 100, Fall 2006 Fluency in Information Technology.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Number Systems Denary Base 10 Binary Base 2 Hexadecimal Base 16
Agenda Character representation Numerical Conversions ASCII EBCDIC
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
The Information School of the University of Washington 15-Oct-2004cse digital1 Digital Representation INFO/CSE 100, Spring 2005 Fluency in Information.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
1 Problem Solving using Computers “Data....Representation, and Storage.
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.
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
3 – Boolean Logic and Logic Gates 4 – Binary Numbers
Chapter 8 & 11: Representing Information Digitally
Binary Numbers and ASCII and EDCDIC
Number Representation
3.1 Denary, Binary and Hexadecimal Number Systems
Introduction to Computers
Information Support and Services
Bits and the "Why" of Bytes: Representing Information Digitally
Representing Nonnumeric Data
How does a computer represent everything using just zeros and ones?
Ch2: Data Representation
Digital Representation
COMS 161 Introduction to Computing
COMS 161 Introduction to Computing
How Computers Store Data
Lecture 36 – Unit 6 – Under the Hood Binary Encoding – Part 2
Digital Representation of Data
Presentation transcript:

Chapter 8 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1

Computer Circuits Computer circuits can be in one of two states low or high Also known as: 0 and 1 off and on false and true no and yes absence and presence 2

Discrete Values These two states of a circuit are said to be discrete or distinct 3

Two States Low voltage in RAM, VRAM, or the CPU corresponds to – Demagnetized spot – Hard drive – Bump – CD or DVD High voltage in RAM, VRAM, or the CPU corresponds to – Magnetized spot – Hard drive – Land – CD or DVD Everything must be encoded into a representation using these two states (written as 0's and 1's). 4

Bits Each circuit is more commonly called a bit where bit is short for binary digit Why? The only digits in the binary number system are 0 and 1 which fit in perfectly with the two state nature of a computer. 5

Number Systems Decimal number system – We know this! – base 10 – 10 symbols – e.g. 1375, also written (1 * 10 3 ) + (3 * 10 2 ) + (7 * 10 1 ) + (5 * 10 0 ) Binary number system – What is this? – base 2 – 2 symbols 0 – 1 – e.g. 1001, also written (1 * 2 3 ) + ( 0 * 2 2 ) + (0 * 2 1 ) + ( 1 * 2 0 ) 6

Number Systems Decimal number system – We know this! – base 10 – 10 symbols – e.g. 1375, also written (1 * 10 3 ) + (3 * 10 2 ) + (7 * 10 1 ) + (5 * 10 0 ) Binary number system – What is this? – base 2 – 2 symbols 0 – 1 – e.g. 1001, also written (1 * 2 3 ) + ( 0 * 2 2 ) + (0 * 2 1 ) + ( 1 * 2 0 ) 7

Encoding Text How many bits, minimum, would it take to encode…? 26 lowercase letters and 10 digits 36 total characters 8

Powers of 2 This many bitsWill encode this many items 12 1 = = = = = = = = 256 n2n2n 9

Encoding Text How many bits would it take to encode…? 26 lower case letters 26 upper case letters 10 digits 10 arithmetic characters 20 punctuation characters 3 non-printable characters 95 characters 10

How Many Bits to Encode 95 Characters? 11 This many bitsWill encode this many items 12 1 = = = = = = = = 256 n2n2n

Encoding Text The original ASCII code was a 7-bit code. A widely used encoding scheme today is the Extended ASCII code or ISO The Extended ASCII code is an 8-bit code. So, the code for one character will fit exactly into one byte. 12

ASCII code p. 235 What is the ASCII code for each character? H & 3 What ASCII character is represented by each code?

ASCII Code The ASCII code is for encoding text only. ASCII 62 is The number 62 is The computer cannot do arithmetic with ASCII digits. 14

Encoding Text Becoming more wide spread is a new multibyte (one to four bytes) code called the Unicode It can handle all symbols in all languages To see other languages go to 15 कम्प्यूटर, मूल रूप से, नंबरों से सम्बंध रखते हैं। ये प्रत्येक अक्षर और वर्ण के लिए एक नंबर निर्धारित करके अक्षर और वर्ण संग्रहित करते हैं। यूनिकोड का आविष्कार होने से पहले, ऐसे नंबर देने के लिए सैंकडों विभिन्न संकेत लिपि प्रणालियां थीं। किसी एक संकेत लिपि में पर्याप्त अक्षर नहीं हो सकते हैं : उदाहरण के लिए, यूरोपिय संघ को अकेले ही, अपनी सभी भाषाऒं को कवर करने के लिए अनेक विभिन्न संकेत लिपियों की आवश्यकता होती है। अंग्रेजी जैसी भाषा के लिए भी, सभी अक्षरों, विरामचिन्हों और सामान्य प्रयोग के तकनीकी प्रतीकों हेतु एक ही संकेत लिपि पर्याप्त नहीं थी।

Encoding Other Things In chapter 11 we will look at encoding numbers, images and video. 16

Do you remember color codes? Would you rather type this color code? 3 E C 5 A 7 Or this?

Hexadecimal Since the earliest days of computing, two hexadecimal digits have been used as a shorthand notation for 8 bits (one byte) If two hexadecimal digits symbolize one byte, then one hexadecimal digit must correspond in some way to 4 bits 18

Hexadecimal Base symbols for building numbers: (0 – 9, A – F) Examples of hexadecimal numbers: 387 4AFFCC 19

Hexadecimal – Binary Equivalents A1010 B1011 C1100 D1101 E1110 F1111 What would be the hexadecimal shorthand for this 2 byte binary code? answer: 3CF6 What would the one byte binary code that corresponds to this hexadecimal shorthand? B5 answer:

Hexadecimal – Binary Equivalents A B C D E F First column of bits: 8 zeros, 8 ones Second column of bits: 4 zeros, 4 ones Third column of bits: 2 zeros, 2 ones Fourth column of bits: 1 zero, 1 one 21

Tags: A Higher Level of Encoding HTML tags are also a form of encoding – Formatting – Special non-text items Tags can also be used to encode – Structure – See the Oxford English Dictionary example in the chapter 22