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.

Slides:



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

Base 10 Denary Decimal
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.
Teaching Computing at KS3 Session 2 Sue Sentance and Sophie Baker
The Binary Number System 6 th grade math. What is binary? The number system we use is decimal, based on the number 10 The binary system is instead based.
Data Representation in Computers. Data Representation in Computers/Session 3 / 2 of 33 Number systems  The additive approach – Number earlier consisted.
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
© GCSE Computing Candidates should be able to:  convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa  add two 8-bit.
Binary and Hexadecimal Numbers
A-Level Computing Data representation. Objectives Know how data can be represented in a computer system Understand the need for various forms of representation.
Binary Logic Lets think about the Binary!. What is Binary? Computers use binary as it’s a lot simpler! Each CPU is made up of millions of transistors.
The Four Methods All you need to know about the four methods By Eva.
Positional Notation 642 in base 10 positional notation is:
Conversions Denary to Binary Method 1
Long Division. We are going to try to solve 837 ÷ 27.
Working with 8-bit bytes and hexadecimal
1 1 7-Dec-15 Binary Converting to and from decimal.
Candidates should be able to:
A)Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa b)Add two 8-bit binary integers and explain overflow errors which.
BINARY Toby Wilson. LEARNING OBJECTIVES  Be able to convert binary to denary  Be able to convert denary into binary  Be able to explain how computers.
Division Division Problems Do you have problems with division problems? Here is a guide to help you.
Numbering Systems and Conversion Understand How Computing Devices Work 1.
Binary & Normalization What is Normalization? We discussed this the other day (special review session slides, near the end) Can someone tell us.
Two’s Complement The language of machines, part II.
Conversions 1)Binary to Denary Method 1 Work out the position values of the binary bits and add those values together So above would be
Lesson 2 – Denary to Binary
WHAT IS BINARY? Binary is a number system that only uses two digits: 1 and 0. Any information that processed by a computer it is put into sequence of.
Objectives Today: P4 Data Types – Floating Points P4 Variable Quiz P3 Iteration and Selection Practical Are you logged on? Then come around the table Unit.
Lecturer: Santokh Singh
Digital Design Chapter One Digital Systems and Binary Numbers
Binary, Denary, Hexadecimal Conversion Binary Addition
Long Division Methods Method 1.
Different Numeral Systems
Hexadecimal Conversion
Binary numbers: Week 7 Lesson 1
Representation of data in computer systems
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
The Binary Number System
Denary to Binary Numbers & Binary to Denary
Binary & Hexidecimal Numbers
Number System conversions
Addition and Substraction
Topic 3: Data Binary Arithmetic.
Learn what binary and denary mean.
Representing Data How does a computer represent data?
Number Systems and Binary Arithmetic
Hexadecimal Conversions
Division by One Digit Divisors
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.
Digital Electronics and Microprocessors
(return of the…) Data blast
Data Binary Conversion.
How Computers Store Data
AP Computer Science LESSON 1 on Number Bases.
Place Value: Regrouping Place Values
The basics of any electronic device means either electricity is flowing or it is not i.e. a switch is either on or off Computers are electronic devices.
Long Division by Michael Hedderig
Year 3 (National Numeracy Strategy) (Based on DFEE Sample Lessons)
LONG MULTIPLICATION is just multiplying two numbers.
BINARY ADDITION How it works.
Dividing Polynomials.
LO1 – Understand Computer Hardware
The Understanding of Binary Math & Conversion
Converting to Base-n from Base-10
UNIT 1 – RATIONAL NUMBERS, EXPONENTS AND SQUARE ROOTS Odd and Even Numbers (Algebra 1.1) Which of the following numbers is divisible by 2, with a remainder.
Electronic Memory.
Data Binary Arithmetic.
Theory: 2.6 – Data Representation
1 1. Binary Basics Year 8 Unit 1 Bitmap Graphics.
Two’s Complement & Binary Arithmetic
Presentation transcript:

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 as a sequence of 1s and 0s (on or off). All data that we want a computer to process needs to be converted in to this binary format. Watch Video – What are binary numbers.

Binary Basics Binary is a number system with base 2. Only 2 digits (0 and 1) are used to write every number. This is the foundation of almost every computer program.

Binary Basics Binary to denary (base 10) Each number in binary represents a power of 2, the same way each number in base 10 represents a power of 10. For instance – take the number 1357 This gives us – (1*1000) + (3*100) + (5*10) + (7*1) = 1357 1000s 100s 10s 1s 1 3 5 7

Binary Basics Binary to denary (base 10) The same applies for binary (base 2) but with powers of 2 For instance – take the number 10010101 Looking only at where the ones are – this gives us: (1*128)+(1*16)+(1*4)+(1*1) or 128+16+4+1 = 149 128 64 32 16 8 4 2 1

Binary Basics Binary to denary (base 10) Each binary digit above is called a bit. There are 8 bits in the example above. 8 Bits are also called a byte. 4 Bits are called a nibble. Two nibbles make a byte. 128 64 32 16 8 4 2 1

Binary Basics Task 1 Complete Binary worksheet 1

Binary Basics Task 2 Write out 10 of your own binary numbers to solve. Use any where from a nibble to a byte. Give these to someone else to convert then check to see if they have got the right answers.

Binary Basics Denary to Binary There are many ways of doing this. Here we will show you a couple of methods Method 1 Take the number and divide it by 2 and show the remainder. For instance – 130 Sum Result Remainder 130 / 2 65

Binary Basics Denary to Binary Then you keep going…. Sum Result Remainder 130 / 2 65 65 / 2 32 1 32 / 2 16 16 / 2 8 8 / 2 4 4 / 2 2 2 / 2

Binary Basics 10000010 Denary to Binary You should always be left with 1. Starting with that read back up the remainder column to give you your answer. Sum Result Remainder 130 / 2 65 65 / 2 32 1 32 / 2 16 16 / 2 8 8 / 2 4 4 / 2 2 2 / 2 10000010

Binary Basics 10000010 Denary to Binary Lets test to see if it works = 128 + 2 = 130 So this method works fine. 10000010 128 64 32 16 8 4 2 1

Binary Basics Task 3 Using Method 1 Convert the following numbers into binary. 75 127 56 100 24

Binary Basics Denary to Binary Method 2 Here we just keep subtracting the powers of 2 until we have nothing left. For instance let us look at the number 196 196 – 128 = 68 so we can put a 1 in the 128 position 128 64 32 16 8 4 2 1

Binary Basics Denary to Binary Method 2 .. continued 68 – 64 = 4 so we can put a 1 in the 64 position 4-32 = -28 – so 0 in the 32 position And so on. Here we can see we only have 4 left so we can put 1 in the four position and leave everything else as 0 giving us – 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

Binary Basics Denary to Binary Method 2 .. continued To confirm that then.. 128 + 64 + 4 = 196 128 64 32 16 8 4 2 1

Binary Basics Task 4 Using Method 2 Convert the following numbers into binary using 8 bits (byte) 204 177 25 244 89

Binary Basics Task 5 Have a go at Binary Worksheet 2

Binary Basics Task 6 Have a go of the following game. http://forums.cisco.com/CertCom/game/binary_game_page.htm

Binary Basics Task 7 Have a look at the following page and try out the questions http://www.mathsisfun.com/binary-number-system.html

Binary Basics Task 8 Have a go at the following game. http://britton.disted.camosun.bc.ca/binary.swf