D ATA REPRESENTATION, BINARY SYSTEM, B IT, B YTE, ASCII C ODE Chapter 3 Mr.Mohammed Rahmath.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

A-Level Computing#BristolMet Session Objectives#8 express numbers in binary, octal and hexadecimal explain the use of code to represent a character set.
CIS 020 Assembly Programming Chapter 02 - Numbering Systems & Data Representation © John Urrutia 2012, All Rights Reserved.5/27/20121.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Data Representation in Computers
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
1 12/08/03SW Abingdon and Witney College Binary Converting to and from decimal.
Number Systems & Logic Gates Day 1
Computer Fluency Binary Systems. Humans Decimal Numbers (base 10) Decimal Numbers (base 10) Sign-Magnitude (-324) Sign-Magnitude (-324) Decimal Fractions.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
IT-101 Section 001 Lecture #3 Introduction to Information Technology.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
DECIMAL BASE Based on power of 10 In the number 2,468 – from right to left -- the 8 represents the ones, the 6 represents the tens, the 4 represents the.
Data Representation A series of eight bits is called a byte. A byte can be used to represent a number or a character. As you’ll see in the following table,
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.
Binary, Decimal and Hexadecimal Numbers Svetlin Nakov Telerik Corporation
What do computers know?  All they really know is on or off.  Kind of like a light switch  Computers aren’t nearly as smart as you are!
Chapter 3 Section 1 Number Representation Modern cryptographic methods, unlike the classical methods we just learned, are computer based. Representation.
NUMBER SYSTEM.
AP: Discuss with a shoulder partner these questions. EQ Question: 1. What does the computer understand? 2. How is information converted to machine language?
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Chapter 7—Objects and Memory The Art and Science of An Introduction to Computer Science ERIC S. ROBERTS Java Objects and Memory C H A P T E R 7 Yea, from.
The Hexadecimal Number System and Memory Addressing ISAT 121.
Chapter 2 Data Representation.
D ATA REPRESENTATION, BINARY SYSTEM, B IT, B YTE, ASCII C ODE Chapter 4 Lecturer In Charge: Manesh T 1.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
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.
Codes Octal Power Hexadecimal ASCII BCD Code
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.
NUMBER SYSTEM. Number System Number Base B => B symbols – Base 16(Hexa):0, 1,……9, A,…, E, F – Base 10 (Decimal): 0, 1, 2,……, 7, 8, 9 – Base 8(Octal):
Computer Number System
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.
Computer Studies Today Chapter 19 1 Chapter 19. Computer Studies Today Chapter 19 2 »Information stored in a computer is in two states: –ON –OFF.
Lecture 1.2 (Chapter 1) Prepared by Dr. Lamiaa Elshenawy
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
Base 16 (hexadecimal) Uses the decimal digits and the first letters of the alphabet to encode 4 binary bits (16=2 4 ) abcdef or ABCDEF.
Prepared By: Norakmar Binti Mohd Nadzari CHAPTER 2 ARITHMETIC AND LOGIC UNIT.
1.4 Representation of data in computer systems Character.
1 Section 1.3 Binary Number Systems Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Computer Science 210 Computer Organization
Chapter 3 - Binary Numbering System
Number Systems and Codes
Unit 18: Computational Thinking
What is a byte? What is it? How would you use it?
EPSII 59:006 Spring 2004.
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Why use Binary? There are only four rules for addition in binary compared to 100 in decimal [0+0=0 ; 0+1=1 ; 1+0=1; 1+1=10]
Introduction to IT By: Muhammed s. anwar.
Ch2: Data Representation
Computer Science 210 Computer Organization
Chapter 2 Data Representation.
Digital Logic Design (CSNB163)
Chapter Four Data Representation in Computers By Bezawit E.
Numeral systems (radix)
Storing Integers and Fractions
Learning Intention I will learn how computers store text.
Electronic Memory.
Chapter 3 - Binary Numbering System
Lecture 36 – Unit 6 – Under the Hood Binary Encoding – Part 2
Digital Representation of Data
Presentation transcript:

D ATA REPRESENTATION, BINARY SYSTEM, B IT, B YTE, ASCII C ODE Chapter 3 Mr.Mohammed Rahmath

D ATA R EPRESENTATION Data Representation refers to the methods used internally to represent information stored in a computer. Computers store lots of different types of information: numbers text graphics of many varieties (stills, video, animation) sound Mr.Mohammed Rahmath

M EMORY S TRUCTURE IN C OMPUTER Memory consists of bits (0 or 1) – a single bit can represent two pieces of information bytes (=8 bits) – a single byte can represent 256 = 2x2x2x2x2x2x2x2 = 2 8 pieces of information words (=2,4, or 8 bytes) – a 2 byte word can represent pieces of information (approximately 65 thousand). Byte addressable - each byte has its own address. Mr.Mohammed Rahmath

B INARY SYSTEM binary numeral system, or base-2 numeral system, represents numeric values using two symbols: 0 and 1. More specifically, the usual base -2 system is a positional notation with a radix of 2. Numbers represented in this system are commonly called binary numbers. Bits: A bit (short for binary digit) is the smallest unit of data in a computer. A bit has a single binary value, either 0 or 1. Byte: a byte is a unit of data that is eight binary digits long. A byte is the unit most computers use to represent a character such as a letter, number, or typographic symbol (for example, "g", "5", or "?"). Mr.Mohammed Rahmath

ASCII CODE Mr.Mohammed Rahmath Binary (2)Decimal (10)Octal (8) Hexadecimal (16) 0000'0000'0000' 0001'1001'0001' 0010'2010'0010' 0011'3011'0011' 0100'4100'0100' 0101'5101'0101' 0110'6110'0110' 0111'7111'0111' 1000'8 1001'9 1010'10 A 1011'11 B 1100'12 C 1101'13 D 1110'14 E 1111'15 F

B INARY TO DECIMAL CONVERSION Mr.Mohammed Rahmath x2x2x2x2 x2 2x2x2x2x 2 2x2x2x22x2x22x2 (a) 1 = 2(a) 0 = x132x116x18x04x12x01x Q1 ) Convert ( ) 2 =( )10 = (117) 10

C LASS WORK Convert Binary to Decimal 1. ( ) 2 = ( ) ( ) 2 = ( ) ( ) 2 = ( ) ( ) 2 = ( ) ( ) 2 = ( ) ( ) 2 = ( ) 10 Mr.Mohammed Rahmath

D ECIMAL TO B INARY C ONVERSION Q ) (35) 10 = ( ) 2 = (100011)2 Mr.Mohammed Rahmath

C LASS WORK Convert Decimal to Binary 1. (421) 10 = ( ) 2 2. (1025) 10 = ( ) 2 3. (368) 10 = ( ) 2 4. (687) 10 = ( ) 2 5. (625) 10 = ( ) 2 6. (752) 10 = ( ) 2 Mr.Mohammed Rahmath

B INARY TO HEXADECIMAL Q ) ( ) 2 = ( ) 16 =( AEA) 16 Mr.Mohammed Rahmath AEA

C LASS WORK Convert Binary to Hexadecimal 1. ( ) 2 = ( ) ( ) 2 = ( ) ( ) 2 = ( ) ( ) 2 = ( ) ( ) 2 = ( ) ( ) 2 = ( ) 16 Mr.Mohammed Rahmath

H EXADECIMAL TO BINARY Q ) (A19) 16 = ( ) 2 =( ) 2 Mr.Mohammed Rahmath A

C LASS WORK Convert Hexadecimal to Binary 1. (AF1) 16 = ( ) 2 2. (924) 16 = ( ) 2 3. (3569) 16 = ( ) 2 4. (4526) 16 = ( ) 2 5. (6548) 16 = ( ) 2 6. (1334) 16 = ( ) 2 Mr.Mohammed Rahmath

C HAPTER 3 E ND Mr.Mohammed Rahmath