© 2016 AQA. Created by Teachit for AQA 3.3.2 Converting between number bases Lesson.

Slides:



Advertisements
Similar presentations
DATA REPRESENTATION CONVERSION.
Advertisements

EE1A2 Microprocessor Systems & Digital Logic Part I Digital Electronic System Design Dr. T. Collins.
A-Level Computing#BristolMet Session Objectives#8 express numbers in binary, octal and hexadecimal explain the use of code to represent a character set.
Connecting with Computer Science, 2e
Information Processing Session 5B Binary Arithmetic Slide
Information Processing
Number Systems. 2 The total number of allowable symbols in a number system is called the radix or base of the system. Decimal Numbers: radix = 10 (symbols:
CISCO NETWORKING ACADEMY Chabot College ELEC 74A Hexadecimal Introduction.
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Computer Systems 1 Fundamentals of Computing
2.1 2 Number Systems Foundations of Computer Science  Cengage Learning.
Binary Conversions Number systems Binary to decimal Decimal to binary.
Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information Technology Islamic.
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
Binary and Hexadecimal Numbers
Number Systems.
ECE 2110: Introduction to Digital Systems Signed Number Conversions.
Number systems, Operations, and Codes
Number Representation. Representing numbers n Numbers are represented as successive powers of a base, or radix.
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Data as the computer sees it 1.  Number systems Number systems  Data storage Data storage  Glossary Glossary 2.
Candidates should be able to:
Topic 14.1 Extended Hexadecimal  Decimal is base 10 and uses 10 digits (0,1,2,3,4,5,6,7,8,9).  Binary is base 2 and uses 2 digits (0,1).  Computers.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 4 Number Representation and Calculation.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
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.
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
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.
STARTER – CRACK THE CODE
© 2016 AQA. Created by Teachit for AQA Number bases and Units of information Lesson.
Dr. Clincy Slide 1 CS Chapter 2 (Part 1 of 3) Dr. Clincy Professor of CS Ch 2 Appendix pages will not be on the exam – already covered this.
ECE 2110: Introduction to Digital Systems Signed Number Conversions.
MATH Lesson 2 Binary arithmetic.
Data Representation COE 308 Computer Architecture
Binary & Hex Review.
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Binary, Denary, Hexadecimal Conversion Binary Addition
Data Representation ICS 233
Lec 3: Data Representation
Unit 18: Computational Thinking
Lesson Objectives Aims
Integer Real Numbers Character Boolean Memory Address CPU Data Types
Dr. Clincy Professor of CS
Lesson Objectives Understand the hexadecimal numbering system
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Lesson objectives Understand how computers represent and manipulate numbers [unsigned integers, signed integers (sign and magnitude, Two’s complement)
Lesson Objectives Aims You should be able to: Convert Denary to Binary
Data Storage Introduction to computer, 2nd semester, 2010/2011
Dr. Clincy Professor of CS
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Numbering System TODAY AND TOMORROW 11th Edition
Binary Lesson 3 Hexadecimal
Topic 3: Data Hexadecimal.
Digital Electronics and Microprocessors
(return of the…) Data blast
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
How Computers Store Data
Binary Lesson 3 Hexadecimal
Binary Lesson 4 Hexadecimal and Binary Practice
GCSE COMPUTER SCIENCE Topic 3 - Data 3.4 Hexadecimal Conversion.
Hexadecimal.
CS334: Number Systems Lab 1.
Binary & Hex Review.
Data Representation COE 308 Computer Architecture
Section 6 Primitive Data Types
Presentation transcript:

© 2016 AQA. Created by Teachit for AQA Converting between number bases Lesson

© 2016 AQA. Created by Teachit for AQA Objectives Understand how binary can be used to represent whole numbers. Understand how hexadecimal can be used to represent whole numbers. Be able to convert in both directions between: binary and decimal, binary and hexadecimal, decimal and hexadecimal.

© 2016 AQA. Created by Teachit for AQA Starter activity In pairs… Give three reasons why a knowledge of binary is useful to working with computers and understanding how computers work. Did you think of any of these? Programming Computer architecture Computer networks

© 2016 AQA. Created by Teachit for AQA Converting between number bases A byte is a collection of eight bits and may be represented as follows: Value as power of Decimal value Sample 8-bit pattern Individual values Total decimal value = 89 Key point When one byte of storage is used, it does not matter how much you rearrange the ones and zeros, the maximum number in base 10 that can be stored is 255 (and 0 is the minimum).

© 2016 AQA. Created by Teachit for AQA Converting decimal to binary Example: Convert the number into 8-bit binary. Reading from left to right, look at each column in turn Step – 128 = negative, write 0 in that column. Step – 64 = 51, write 1 in that column. Step – 32 = 19, write 1 in that column. Step – 16 = 3, write 1 in that column. Step – 8 = negative, write 0 Step – 4 = negative, write 0 Step = 1, write 1 Final answer * *Remainder 1 goes in final column.

© 2016 AQA. Created by Teachit for AQA Now its your turn… Activity: Quiz 1

© 2016 AQA. Created by Teachit for AQA Converting binary to decimal Look at the binary pattern and work from right to left, identifying whether each successive bit has a value of 0 or 1. Then add up the totals where the bit is set Decimal value Totals Binary pattern

© 2016 AQA. Created by Teachit for AQA Now its your turn… Activity: Quiz 2

© 2016 AQA. Created by Teachit for AQA Making binary easier to represent Using the hexadecimal number system Key point Hexadecimal in itself means nothing to a CPU. However, it is useful to abbreviate binary notation. Binary is not very easy to read and there are many applications where it is beneficial to convert from binary to hexadecimal. DecimalHexadecimal 15F 14E 13D 12C 11B 10A

© 2016 AQA. Created by Teachit for AQA Converting from binary to hexadecimal Conversion involves looking at four bits at a time and grouping them as a single hexadecimal (‘hex’) character. Example 1Value Binary110 0 Decimal842 1 Sum (base 10)12 HexC Example 2Value Binary Decimal Sum (base 10)131 HexD1 In this case, the binary value has been split into two groups of four. In each group the highest power of 2 is 2 3. The first group of four converts to D in hex and the second group converts to 1. Combining these two values gives D1.

© 2016 AQA. Created by Teachit for AQA Benefits of hexadecimal over binary Hexadecimal: is shorter than binary offers less chance of making mistakes if using it in programming is easily converted to binary.

© 2016 AQA. Created by Teachit for AQA Now its your turn… Activity: Quiz 3

© 2016 AQA. Created by Teachit for AQA Plenary Binary bingo!

© 2016 AQA. Created by Teachit for AQA Extension activity Using the Hex colours! (Extension task) sheet, colour in the web page template with appropriate RGB colour values set in hexadecimal.