GCSE Computing: A451 Computer Systems & Programming www.computerscienceuk.com Numbers Representation of Data in Computer Systems.

Slides:



Advertisements
Similar presentations
Base 10 Denary Decimal
Advertisements

Candidates should be able to:
Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #3 NUMBER SYSTEMS, OPERATION & CODES (PART 2)
Level ISA3: Information Representation
Chapter 4.2 Binary numbers: Arithmetic
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.
Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.
Teaching Computing at KS3 Session 2 Sue Sentance and Sophie Baker
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
© 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.
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 Arithmetic In today’s lesson we will look at: a reminder of how binary works adding binary numbers overflow complements negative numbers and subtraction.
Chapter 4: Representation of data in computer systems: Number OCR Computing for GCSE © Hodder Education 2011.
Data Representation Conversion 24/04/2017.
How a Computer Processes Information. Java – Numbering Systems OBJECTIVE - Introduction to Numbering Systems and their relation to Computer Problems Review.
07/12/ Data Representation Two’s Complement & Binary Arithmetic.
Addition and Substraction
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.
Extending Binary In today’s lesson we will look at: representing different types of numbers possible errors binary coded decimal (BCD) comparing BCD with.
1 4. Computer Maths and Logic 4.1 Number Systems.
GCSE Computing#BristolMet Session Objectives#8 MUST add two 8-bit binary integers SHOULD explain overflow errors COULD provide solutions to limit overflow.
Reasons to  Binary With Mrs
Units Representation of Data in Computer Systems.
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.
Lesson Aim (Data representation) To be able to: Convert B/D & D/B Convert D/H & H/D Convert H/B & B/H Perform simple binary arithmetic Represent a number.
09/03/20161 Information Representation Two’s Complement & Binary Arithmetic.
Introduction to Number Representation A451 GCSE Computing.
Hexadecimal (base 16) BY MAT D. What is hexadecimal  Hexadecimal is a number system like binary or denary that has 16 characters, the numbers 0-9 and.
The Hexadecimal Number System Representation of Data in Computer Systems.
Two’s Complement The language of machines, part II.
Starter Using the mini whiteboards record your answers: 1) Name 2 different Character Sets 2) Convert the Hex number 9E into denary 3) Convert the binary.
Advanced Binary b. describe and use two’s complement and sign and magnitude to represent negative integers; c. perform integer binary arithmetic, that.
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.
Binary, Denary, Hexadecimal Conversion Binary Addition
3.1 Denary, Binary and Hexadecimal Number Systems
Recap Add these numbers together in binary
Binary numbers: Week 7 Lesson 1
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Denary to Binary Numbers & Binary to Denary
…to GCSE Level with Python Sue Sentance
Lesson objectives Understand how computers represent and manipulate numbers [unsigned integers, signed integers (sign and magnitude, Two’s complement)
Addition and Substraction
Lesson Objectives Aims You should be able to: Convert Denary to Binary
Binary Arithmetic.
Representation of Data in Computer Systems
Teaching Computing to GCSE
MMNSS COLLEGE,KOTTIYAM DEPARTMENT OF PHYSICS
Lesson Objectives To understand how to add 4 and 8 bit binary numbers together To understand what is meant by the term “Overflow” ALL students will add.
Teaching Computing to GCSE
Data Representation Conversion 05/12/2018.
Topic 3: Data Hexadecimal.
(return of the…) Data blast
CPS120: Introduction to Computer Science
Binary  Name: Class: .
A-level Computer Science
Lesson 4: Introduction to Hexadecimal
GCSE COMPUTER SCIENCE Topic 3 - Data 3.4 Hexadecimal Conversion.
Hexadecimal.
Binary It’s all 0’s and 1’s.
GCSE COMPUTER SCIENCE Topic 3 - Data 3.2 Signed Integers.
Binary.
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
靜夜思 床前明月光, 疑是地上霜。 舉頭望明月, 低頭思故鄉。 ~ 李白 李商隱.
Theory: 2.6 – Data Representation
Two’s Complement & Binary Arithmetic
Section 6 Primitive Data Types
Presentation transcript:

GCSE Computing: A451 Computer Systems & Programming Numbers Representation of Data in Computer Systems

GCSE Computing: A451 Computer Systems & Programming Activity 1 5 minutes to complete the following: Convert the following binary numbers into denary

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Introduction Last lesson we looked at the binary number system and the need for data to be converted into binary so that it can be processed by the CPU. Today we will look at how NUMBERS are represented in binary… Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

GCSE Computing: A451 Computer Systems & Programming Representing Numbers

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Converting Binary Numbers In your exam you will be expected to be able to convert a denary number (the numbers humans work with (base 10) into binary… …and back again Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Converting from Binary to Denary (easy) If you are given a binary number which is to be converted into denary do the following: 1.Above each bit, write the value of that bit. 2.Then simply add the values where there is a 1 underneath, together Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Converting from Binary to Denary (easy) Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Converting from Denary to Binary Converting from denary to binary is also quite straight forward. If we wanted to convert 202 into binary we would do the following: Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. Does 128 fit into 202? YES! So we add a 1 into the column and subtract 128 from 202 (leaving 74) 1

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Converting from Denary to Binary Converting from denary to binary is also quite straight forward. If we wanted to convert 202 into binary we would do the following: Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. Does 64 fit into 74? YES! So we add a 1 into the column and subtract 64 from 74 (leaving 10) 1 1

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Converting from Denary to Binary Converting from denary to binary is also quite straight forward. If we wanted to convert 202 into binary we would do the following: Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. Does 32 fit into 10? NO! So we add a 0 into the column and move on… 1 1 0

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Converting from Denary to Binary Converting from denary to binary is also quite straight forward. If we wanted to convert 202 into binary we would do the following: Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. Does 16 fit into 10? NO! So we add a 0 into the column and move on…

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Converting from Denary to Binary Converting from denary to binary is also quite straight forward. If we wanted to convert 202 into binary we would do the following: Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. Does 8 fit into 10? YES! So we add a 1 into the column and subtract 8 from 10 (leaving 2)

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Converting from Denary to Binary Converting from denary to binary is also quite straight forward. If we wanted to convert 202 into binary we would do the following: Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. Does 4 fit into 2? NO! So we add a 0 into the column and move on…

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Converting from Denary to Binary Converting from denary to binary is also quite straight forward. If we wanted to convert 202 into binary we would do the following: Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. Does 2 fit into 2? YES! So we add a 1 into the column and subtract 2 from 2 (leaving 0)

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Converting from Denary to Binary Converting from denary to binary is also quite straight forward. If we wanted to convert 202 into binary we would do the following: Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. Does 1 fit into 0? NO! So we add a 0 into the column and that is it!

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Converting from Denary to Binary So 202 in binary is: Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers Check that it works:

GCSE Computing: A451 Computer Systems & Programming Mini Whiteboard Practice Convert 234 into binary:

GCSE Computing: A451 Computer Systems & Programming Mini Whiteboard Practice Convert 42 into binary:

GCSE Computing: A451 Computer Systems & Programming Mini Whiteboard Practice Convert 175 into binary:

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Adding 8-bit binary numbers Adding binary numbers is much like adding denary numbers (the system we use as humans). Things to remember: 1.Keep your numbers in the correct columns = 10 in binary = 11 in binary Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Adding 8-bit binary numbers Adding binary numbers is much like adding denary numbers (the system we use as humans). Things to remember: 1.Keep your numbers in the correct columns = 10 in binary = 11 in binary Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Adding 8-bit binary numbers Adding binary numbers is much like adding denary numbers (the system we use as humans). Things to remember: 1.Keep your numbers in the correct columns = 10 in binary = 11 in binary Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Adding 8-bit binary numbers Adding binary numbers is much like adding denary numbers (the system we use as humans). Things to remember: 1.Keep your numbers in the correct columns = 10 in binary = 11 in binary Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Adding 8-bit binary numbers Adding binary numbers is much like adding denary numbers (the system we use as humans). Things to remember: 1.Keep your numbers in the correct columns = 10 in binary = 11 in binary Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Adding 8-bit binary numbers Adding binary numbers is much like adding denary numbers (the system we use as humans). Things to remember: 1.Keep your numbers in the correct columns = 10 in binary = 11 in binary Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Adding 8-bit binary numbers Adding binary numbers is much like adding denary numbers (the system we use as humans). Things to remember: 1.Keep your numbers in the correct columns = 10 in binary = 11 in binary Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Adding 8-bit binary numbers Adding binary numbers is much like adding denary numbers (the system we use as humans). Things to remember: 1.Keep your numbers in the correct columns = 10 in binary = 11 in binary Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Adding 8-bit binary numbers Adding binary numbers is much like adding denary numbers (the system we use as humans). Things to remember: 1.Keep your numbers in the correct columns = 10 in binary = 11 in binary Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers.

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems Adding 8-bit binary numbers A quick check… Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers = = 194

GCSE Computing: A451 Computer Systems & Programming Mini Whiteboard Practice Add the following 2 binary numbers:

GCSE Computing: A451 Computer Systems & Programming Mini Whiteboard Practice Add the following 2 binary numbers:

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems What about the following situation Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. 1 0 If the last part of the addition means that there is a carry, we simply place it as the first number. This will mean that the answer is a 9-bit answer.

GCSE Computing: A451 Computer Systems & Programming Representation of Data in Computer Systems The problem with 9-bit answers Because the largest number we can hold in a byte is 255, if we add two bytes together there is a chance that the answer will be greater than 255. This answer will not be able to be held in a byte and so this causes an over flow error. In modern computers, CPU’s can hold much larger numbers so this is dealt with. Ever heard of a 32 or 64 bit processor? – these can deal with larger binary numbers! However you do need to know that overflow errors occur when doing binary addition when the answer is 9 bits in length. Learning Objectives: Numbers: a)Convert positive denary numbers (0-255) into 8- bit binary numbers and vice versa. b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2-digit hexadecimal number and vice versa d)Convert between denary and hexadecimal equivalents of the same number e)Explain the use of hexadecimal to represent binary numbers. = OVERFLOW ERROR!

GCSE Computing: A451 Computer Systems & Programming Mini Whiteboard Practice Add the following 2 binary numbers:

GCSE Computing: A451 Computer Systems & Programming Mini Whiteboard Practice Add the following 2 binary numbers: