A-Level Computing#BristolMet Session Objectives#8 express numbers in binary, octal and hexadecimal explain the use of code to represent a character set.

Slides:



Advertisements
Similar presentations
© 2004, Robert K. Moniot Binary and Hex How to count like a computer.
Advertisements

A-Level Computing#BristolMet Session Objectives#9 express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal; describe and use two’s.
1 3 Computing System Fundamentals 3.5 Data Representation.
March 2006Taner Erig - EMU2-1 Metamorphosis of Information How is information represented and how do computers store information?
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Computer Arithmetic: Binary, Octal and Hexadecimal Presented by Frank H. Osborne, Ph. D. © 2005 ID 2950 Technology and the Young Child.
1 12/08/03SW Abingdon and Witney College Binary Converting to and from decimal.
The Binary Number System
Bits and Bytes.
Binary Conversions Number systems Binary to decimal Decimal to binary.
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
Agenda Data Representation Purpose Numbering Systems Binary, Octal, Hexadecimal (Hex) Numbering System Conversions Binary to Octal, Octal to Binary Binary.
Real Numbers and the Decimal Number System
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
A-Level Computing Data representation. Objectives Know how data can be represented in a computer system Understand the need for various forms of representation.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Chapter 2 Computer Hardware
Data Representation CS280 – 09/13/05. Binary (from a Hacker’s dictionary) A base-2 numbering system with only two digits, 0 and 1, which is perfectly.
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
Computing Theory – F453 Number Systems. Data in a computer needs to be represented in a format the computer understands. This does not necessarily mean.
Number Systems CIT Network Math
Computer Systems Architecture Copyright © Genetic Computer School 2008 CSA 1- 0 Lesson 1 Number System.
The Hexadecimal Number System and Memory Addressing ISAT 121.
1 Data Representation Characters, Integers and Real Numbers Binary Number System Octal Number System Hexadecimal Number System Powered by DeSiaMore.
Data Representation Conversion 24/04/2017.
Data Representation, Number Systems and Base Conversions
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
Number Bases and Representation. Denary Number System (Base 10) Our number system uses 10 digits (0-9) As you move from right to left each number is worth.
CS 111 – Sept. 1 Intro to data representation Binary numbers –Convert binary  decimal –Convert decimal  binary Text –ASCII and Unicode Commitment: –For.
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.
MECH1500 Chapter 3.
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.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
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.
09/06/ Data Representation ASCII, Binary Denary Conversion, Integer & Boolean data types.
A+ Computer Repair Lesson 3: Number System. Objectives Define binary, decimal, octal, and hexadecimal numbering systems. Define binary, decimal, octal,
What do you think this lesson is all about? Write your answer on a sticky note.
Lesson 6 Binary Understand what Binary Code means and apply this knowledge Understand how data is represented using bit systems and be able to change decimal.
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
© 2016 AQA. Created by Teachit for AQA Converting between number bases Lesson.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
Number Systems.
Understanding binary Understanding Computers.
Arithmetic Shifts and Character Representation
Binary Numbers and ASCII and EDCDIC
Unit 18: Computational Thinking
3.1 Denary, Binary and Hexadecimal Number Systems
Lesson Objectives Aims
Lesson Objectives Understand the hexadecimal numbering system
…to GCSE Level with Python Sue Sentance
Coding Schemes and Number Systems
Data Representation Question: Characters
Ch2: Data Representation
Numbering System TODAY AND TOMORROW 11th Edition
Data Representation Conversion 05/12/2018.
Topic 3: Data Hexadecimal.
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.
Learning Intention I will learn how computers store text.
WJEC GCSE Computer Science
ASCII LP1.
Lecture 36 – Unit 6 – Under the Hood Binary Encoding – Part 2
Binary.
Section 6 Primitive Data Types
Presentation transcript:

A-Level Computing#BristolMet Session Objectives#8 express numbers in binary, octal and hexadecimal explain the use of code to represent a character set (ASCII, EBCDIC and UNICODE) Justify why 8 bits don’t always make a byte! Create a colour scheme using hex codes in html

A-Level Computing#BristolMet Number Systems Starter Number Puzzle: Find a 10-digit number where the first digit is how many zeros in the number, the second digit is how many 1s in the number etc. until the tenth digit, which is how many 9s in the number

A-Level Computing#BristolMet Number Systems We already know that computers like to use 0 and 1 to count due to the fact an electrical charge = 1 and no charge = 0. This forms the base 2 or binary system. Instead of base 10, the decimal system (denary) where you have Units, Tens, Hundreds, Thousands etc, we have use multiples of 2: Using a column diagram like this it is easy to turn denary into binary. In this example, 75 is 1 lot 64, 1 lot 8, 1 lot of 2 and 1 lot 1. So the denary number 75 expressed in 8 bit binary is

A-Level Computing#BristolMet Number Systems TASK Now express the following denary numbers as 8 bit binary numbers and show your working. a)13 b)56 c)143 EXTENSION: Create your own 8 bit binary number and convert back to denary. What is the largest denary number you can create in 8 bit binary? a) b) c)

A-Level Computing#BristolMet Position Valued Representation Position valued representation (PVR) is a system to represent any value with a limited number of symbols. Take the decimal system for example, we can represent any value that we need with only 10 symbols (0....9). Examples:10 0 = Any number to the 0th power is = Any number to the 1th power is that number 10 2 = * = *10* = *10*10*10 With the PVR system there are a number of rules The number of digits needed for the system is equal to the base. (i.e. decimal (base 10) has 10 digits) The value of the largest digit is one less than the base. The first position to the left of the "base point" is worth 1. (i.e. the decimal point is the base point of the decimal system.) Every other position is worth base times the position value to its immediate right. ow

A-Level Computing#BristolMet Octal If binary is a base 2 number system, what would the base be of an octal system? 8 In the octal system the column headings are now changed to: and denary 75 is: These larger base systems are needed for computing larger numbers. TASK: Convert the following denary numbers into octal and remember the PVR rule: The value of the largest digit is one less than the base a)263 b)482 c)

A-Level Computing#BristolMet Hexadecimal Some information is stored in computers as numbers in base 16. This is called hexadecimal (or hex for short). The principles are the same except that the digits above 9 are represented by capital letters A – F. TASK: As you can see decimal 10 is A in Hex, so what would the decimal value of hex 10 be?? Discuss... BinaryHexDecimalBinaryHexDecimal A B C D E F15

A-Level Computing#BristolMet Hexadecimal The column headings in hex (base 16) would now be: And 75 denary will be: 4 lots of 16 and 11 ones or 4B. TASK: What will the hex value of 128 be? DISCUSSION ACTIVITY: What is the connection between binary and octal, and between binary and hexadecimal? Try calculating the answers to some more denary number conversions in pairs of binary and octal and then binary and hex. Prepare to discuss anything that you notice.

A-Level Computing#BristolMet Why use different systems? This is an obvious question since we know computers like the use of binary. Well, the reason is down to the application or use of the computer. For example, the common QWERTY keyboard is often used for typing text and numbers etc and to enable computers to understand each other a common standard was agreed in the 1960s and the ASCII character set was formed (American Standard Code for Information Interchange). This accounts for all letters + capitals + digits + punctuation etc, 127 characters in total are represented by ASCII codes, within the capability of 8 bits (one byte, used to represent a single character). TASK: Investigate why do we need 8 bits per character, why not 7? ASCII is not always relevant for some applications. HWK – Research the meaning and application of the EBCDIC and UNICODE character sets.

A-Level Computing#BristolMet The Application of HEX Why does the 256 (in hex, base 16 to power 2) sound familiar? Each pixel you see in your display is either Red, Green or Blue (RGB) The light intensity of each is changed from 0 to 255 (a byte for each) to determine the colours you see. Colour codes are represented in Hex in a set of 6 digits, 2 for R, 2 for G and 2 for B. Follow the link to see codes for the various colours and then attempt the quiz

A-Level Computing#BristolMet HTML This is my very first web page!