Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.

Slides:



Advertisements
Similar presentations
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Advertisements

Binary & Decimal numbers = 3* * *10 + 5*1 = 3* * * *10 0 Decimal system: Ten digits: 0,1,2,3,…,9 Example:
Representing Information as Bit Patterns
Number Systems Decimal (Base 10) Binary (Base 2) Hexadecimal (Base 16)
Representing Real Numbers Using Floating Point Notation Lecture 6 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Number Systems and Codes In PLC
Data Representation – Chapter 3 Sections 3-2, 3-3, 3-4.
Converting binary to decimal decimal to binary
Number Systems.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Data Representation Prepared by Dr P Marais (Modified by D Burford)
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
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,
Information and Programs. Foundations of Computing Information –Binary numbers –Integers and Floating Point –Booleans (True, False) –Characters –Variables.
Binary Code.
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
Number Systems Spring Semester 2013Programming and Data Structure1.
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
CPU Internal memory I/O interface circuit System bus
ECE 301 – Digital Electronics Unsigned and Signed Numbers, Binary Arithmetic of Signed Numbers, and Binary Codes (Lecture #2)
Number systems, Operations, and Codes
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
1 3 Computing System Fundamentals 3.5 Data Representation.
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
Chapter 19 Number Systems. Irvine, Kip R. Assembly Language for Intel-Based Computers, Translating Languages English: Display the sum of A times.
ECE 331 – Digital System Design Representation and Binary Arithmetic of Negative Numbers and Binary Codes (Lecture #10) The slides included herein were.
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
Orange Coast College Business Division Computer Science Department CS 116- Computer Architecture Logic Design: Part 1.
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
Introduction to Digital Electronics Lecture 2: Number Systems.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Fall’ 2014 Lesson - 1 Number System & Program Design CSE 101.
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Fall’ 2014 Number System CSE Number System How Computers Represent Data Binary Numbers The Binary Number System Bits and Bytes Text Codes Binary.
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
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.
COMPUTER ORGANIZATION 4 TH LECTURE. ASCII Code  ASCII ( American Standard Code for Information Interchange).  Input and output devices that communicate.
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Data Representation COE 308 Computer Architecture
Binary & Decimal numbers
Programming and Data Structure
Number Systems and Codes
Data Representation ICS 233
Data Representation Binary Numbers Binary Addition
CSCI 198: Lecture 4: Data Representation
CHAPTER 1 : INTRODUCTION
Introduction to Chapter 2
CSCI 161: Lecture 4: Data Representation
Number System conversions
Data Encoding Characters.
TAO1221 COMPUTER ARCHITECTURE AND ORGANIZATION LAB 6
Number Systems and Codes
1. Number Systems.
Numbering System TODAY AND TOMORROW 11th Edition
Data Representation – Chapter 3
Presenting information as bit patterns
C1 Number systems.
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
How Computers Store Data
Data Representation ICS 233
Learning Intention I will learn how computers store text.
ECE 331 – Digital System Design
Computer Architecture CST 250
Data Representation COE 308 Computer Architecture
Presentation transcript:

Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009

Representing Text Each of the different symbols in the text is assigned a unique bit pattern 1.American Standard code for Information Interchange (ASCII Code): 1 byte- 256 different patterns 2.Unicode Code: 2 bytes- 65,535 different patterns 3.ISO Code: 4 Bytes- Billions of different patterns

Representing Numeric Values Store numeric information in a form of binary notation such as (2’complement, floating point) These notations are built on the basis of binary system

Binary System –Represent quantities: ex: ( ) 2 = (32) 10 –Has only two digits 0 and 1 –The binary number is a weighted number –The position of the 0 or 1 indicates its weight or value within the number –Right most bit= least significant bit LSB: has a weight of 2 0 –Left most bit= most significant bit MSB –The weights increase from right to left

Counting in Binary Decimal SystemBinary System With n numbers of bits you can count up to a number equals to 2 n -1

Binary Fractions Binary fraction number are placed to the right of the binary point MSB of binary fraction number has a weight of 2 -1 ex: (.0101) 2 = (.3125) 10 MSB

Binary to Decimal ( ) 2 = = (109) 10

Binary to Decimal (.1011) 2 = = (0.6875( 10

Decimal to Binary 1.Sum of Weights Method As described before

Decimal to Binary 19=19/2 14=9/2 02=4/2 01=2/2 10=1/2 LSBMSB (19) 10 = (10011) 2 Remainder

Decimal to Binary 0.625X 2 = X 2 = X 2 = X 2 =.5 LSBMSB (.3125) 10 = (.0101) 2 Carry

Thank You