Representing Data How does a computer represent data?

Slides:



Advertisements
Similar presentations
How to Convert Decimal Numbers to Binary EXAMPLES.
Advertisements

Base 10 Denary Decimal
Digital Circuit Why Digital Circuit? – Digital signals ( 0 and 1) are very easy to handle with electronic circuits only 2 states needed: Switch ON or OFF,
Binary and Hexadecimal Numbers
Table 1. Software Hierarchy Levels.. Essential Tools An assembler is a program that converts source-code programs into a machine language (object file).
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Binary numbers. 1 Humans count using decimal numbers (base 10) We use 10 units: 0, 1, 2, 3, 4, 5, 6, 7, 8 and (5.
A-Level Computing Data representation. Objectives Know how data can be represented in a computer system Understand the need for various forms of representation.
Math Review Do you remember, from math class, how exponentiation operations are typically represented? anan is known as the "base" a is known as the "base"
1 Pertemuan 2 Network Math. Discussion Topics Binary presentation of data Bits and bytes Base 10 number system Base 2 number system Converting decimal.
Lecture Binary and Hexadecimal Numbers. How Machines Think Computers handle two types of information: –Instructions –Data The "words" of a machine language.
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
Converting From decimal to Binary & Hexadecimal to Binary
Bits & Bytes A bit is the smallest amount of memory used to store information. A bit is represented by either a “0” or a “1”. “Bit” is a contraction of.
Bits and Bytes. Decimal Numbers 6,357 has four digits -base-10 (6 * 1000) + (3 * 100) + (5 * 10) + (7 * 1) = = 6357 (6 * 10^3) + (3.
1 Press Ctrl-A ©G Dear 2010 – Not to be sold/Free to use Converting Bits and Bytes Stage 6 - Year 11 Applied Mathematic (Preliminary General 1)
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
Binary A double zero educational presentation. Binary Basics Binary is the language computers use Only 1’s and 0’s can be found in Binary Very large numbers.
Binary System Presented by Mr. Wilhelmi Internal Representation of Data Input Input  Data that is put into the computer for processing Data Data  The.
OFF = 0 ON = 1 = 63 BINARY system
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.
Numbering Systems and Conversion Understand How Computing Devices Work 1.
A+ Computer Repair Lesson 3: Number System. Objectives Define binary, decimal, octal, and hexadecimal numbering systems. Define binary, decimal, octal,
First Foray into Programming (the hard way). A reminder from last lesson: A machine code instruction has two parts:  Op-code  Operand An instruction.
Machine Language Computer languages cannot be directly interpreted by the computer – they are not in binary. All commands need to be translated into binary.
Let’s COUNT In tenths
Number Systems Decimal Can you write 12,045 in expanded form? Base? Allowable digits for each place?
Binary & Decimal numbers
Binary and Logic Computers use electrical signals that are on or off, so they have to see everything as a series of binary numbers. This data is represented.
Consider this number: , Ones (7 ones) Tens (no tens)
Unit 18: Computational Thinking
Digital Electronics INTRODUCTION ANALOG VS DIGITAL NUMBER SYSTEMS.
Binary numbers: Week 7 Lesson 1
BINARY CODE.
Representation of data in computer systems
EPSII 59:006 Spring 2004.
Computer Fundamentals
Binary Lesson 1 Nybbles.
Number System conversions
COUNTING IN BINARY Binary weightings 0 x x x x 8
Binary Code  
BINARY SYSTEM.
Binary Lesson 1 Nybbles.
Number Systems Base 2, 10, 16.
Binary Lesson 1 Nybbles.
Binary and Hexadecimal Numbers
Binary Lesson 3 Hexadecimal
Binary Lesson 2 Bytes.
Everything that goes on under the hood of a computer is done in binary -- the language of 0s and 1s. If we have only two numbers, it's very easy to represent.
Binary Lesson 2 Bytes.
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Data Binary Conversion.
Binary Lesson 2 Bytes.
How Computers Store Data
Objective 1.02 Understand Numbering Systems
Starter Using the fingers on only one hand, what is the highest number you can count to? Rules: You must start at 1 You must count sequentially (i.e.
Binary Lesson 3 Hexadecimal
AP Computer Science LESSON 1 on Number Bases.
Binary Lesson 4 Hexadecimal and Binary Practice
COUNTING IN BINARY Binary weightings 0 x x x x 8
Binary Lesson 4 Hexadecimal and Binary Practice
The Understanding of Binary Math & Conversion
Transforming Data into Information
Binary.
Binary Lesson 7 Review of Binary and Hexadecimal
Lecture 35 – Unit 6 – Under the Hood Binary Encoding – Part 1
Lecture 36 – Unit 6 – Under the Hood Binary Encoding – Part 2
1 1. Binary Basics Year 8 Unit 1 Bitmap Graphics.
Presentation transcript:

Representing Data How does a computer represent data? In a digital format (series of 1s and 0s == binary number system) Bit - Each 1 or 0 in a digital format Byte - Group of bits to represent one character

Why binary is important It is the CPU’s native or machine language Is directly understandable by a computer’s CPU www.four-h.purdue.edu/ electric/

Number Systems Number Systems Unlike the decimal system, the binary number system (base 2) uses only two digits 0, and 1 Bit(b) vs. Byte(B) Bit Data using technologies that can be set to one of two states Byte Group of eight bits Number Systems

Number Systems Decimal Number System Binary Number System 100 1 20 1 101 10 21 2 102 100 22 4 103 1000 23 8 104 10000 24 16 105 100000 25 32 …. 26 64 27 128

Counting in Binary 0 = 00000000 1 = 00000001 2 = 00000010 3 = 00000011 Dec Bin 0 = 00000000 1 = 00000001 2 = 00000010 3 = 00000011 4 = 00000100 5 = 00000101 6 = 00000110 7 = 00000111 8 = 00001000 … 254= 11111110 255= 11111111

Converting Binary to Decimal

Converting Binary to Decimal

How do we represent the number 0 1 0 0 1 1 1 1 as a decimal? Let’s try another: How do we represent the number 0 1 0 0 1 1 1 1 as a decimal?

How do we represent the number 84 in binary? Converting Decimal to Binary How do we represent the number 84 in binary? 84 = 1 0 1 0 1 0 0

How do we represent the number 136 in binary? Let’s try another: How do we represent the number 136 in binary?