Binary.

Slides:



Advertisements
Similar presentations
Base 10 Denary Decimal
Advertisements

A-Level Computing#BristolMet Session Objectives#8 express numbers in binary, octal and hexadecimal explain the use of code to represent a character set.
Text Representation within Computers CS208. The Binary Digit (Bit) One bit can encode a value set that contains two elements e.g. {black, white}, {up,
Binary and Hexadecimal Numbers
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.
1 12/08/03SW Abingdon and Witney College Binary Converting to and from decimal.
Lesson 2 0x Coding ASCII Code.
CODING SYSTEMS CODING SYSTEMS CODING SYSTEMS. CHARACTERS CHARACTERS digits: 0 – 9 (numeric characters) letters: alphabetic characters punctuation marks:
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
Bits, Bytes, KiloBytes, MegaBytes, GigaBytes & TeraBytes.
Number Systems.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 8 INTRODUCTION TO INFORMATION THEORY.
Fill in the blanks: (1) _________ has only two possible values 0 and 1. (2) There are __________bits in a byte. (3) 1 kilobyte of memory space can store.
Chapter 3 Section 1 Number Representation Modern cryptographic methods, unlike the classical methods we just learned, are computer based. Representation.
Computing Theory – F453 Number Systems. Data in a computer needs to be represented in a format the computer understands. This does not necessarily mean.
1 3 Computing System Fundamentals 3.5 Data Representation.
Converting From decimal to Binary & Hexadecimal to Binary
LO To learn basic computer coding using binary
Section 3.1: Number Representation Practice HW (not to hand in) From Barr Text p. 185 # 1-5.
Working with 8-bit bytes and hexadecimal
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
Data Representation Hexadecimal  Although computers work in binary it is sometimes inconvenient for humans to read everything in Binary. For example in.
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
Springfield Technical Community College Center for Business and Technology.
Business Programming I Fall – 2000 By Jim Payne Lecture 05Jim Payne - University of Tulsa2 Alphanumeric Storage Numbers that are not numbers? Alphabetic.
Binary 101 Gads Hill School. Aim To strengthen understanding of how computers use the binary number system to store information.
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.
A+ Computer Repair Lesson 3: Number System. Objectives Define binary, decimal, octal, and hexadecimal numbering systems. Define binary, decimal, octal,
Understanding Computers
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
Base 16 (hexadecimal) Uses the decimal digits and the first letters of the alphabet to encode 4 binary bits (16=2 4 ) abcdef or ABCDEF.
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
DATA REPRESENTATION - TEXT
Binary Representation in Text
Understanding binary Understanding Computers.
From the ASCII table… Symbol Decimal Binary A B 66
Unit 18: Computational Thinking
3.1 Denary, Binary and Hexadecimal Number Systems
CSCI 198: Lecture 4: Data Representation
Data Transfer ASCII FILES.
What are Computers? G Use this tutorial alongside the numbers coded in your workbook and answer the related questions in each section.
CSCI 161: Lecture 4: Data Representation
What is Binary? Binary is a two-digit (Base-2) numerical system, which computers use to process and store data. The reason computers use the binary system.
Denary to Binary Numbers & Binary to Denary
Breaking the Code Can anyone guess the phrase from this “code”?
Data Encoding Characters.
Coding Schemes and Number Systems
Folders out, planners out…
Binary Lesson 3 Hexadecimal
Binary Data representation
Presenting information as bit patterns
From the ASCII table… Symbol Decimal Binary A B 66
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Digital Encodings.
Binary Lesson 3 Hexadecimal
Binary  Name: Class: .
Learning Intention I will learn how computers store text.
Binary Lesson 4 Hexadecimal and Binary Practice
GCSE COMPUTER SCIENCE Topic 3 - Data 3.4 Hexadecimal Conversion.
Hexadecimal.
WJEC GCSE Computer Science
Section 6 Primitive Data Types
Presentation transcript:

Binary

Binary Recap: Denary Binary Bit (Binary digit) Byte Kilobyte

Binary Recap: Denary Our base 10 counting system Binary A base 2 counting system Bit (Binary digit) The smallest possible storage area for data. Can only be 1 or 0 Byte A group of 8 bits Kilobyte 1024 bytes

The value of each bit doubles from right to left: Binary Recap: The value of each bit doubles from right to left: x2 x2 x2 128 64 32 16 8 4 2 1

The number 5 represented in binary: Recap: The number 5 represented in binary: 128 64 32 16 8 4 2 1 4 + 1 = 5

Convert the binary numbers into denary: OOOOOOO1 OOOOOO1O OOOOOO11 OOOOO1OO OOOO1111 11111111

Convert the binary numbers into denary: OOOOOOO1 1 OOOOOO1O 2 OOOOOO11 3 OOOOO1OO 4 OOOO1111 15 11111111 255

Convert the denary numbers into binary: 128 64 127

Convert the denary numbers into binary: 128 1OOOOOOO 64 O1OOOOOO 127 O1111111

(American Standard Code for Information Interchange) Binary ASCII (American Standard Code for Information Interchange) When we type on the keyboard, each character (letter, number and symbol) gets converted into an ASCII code. This is then converted to binary by the computer.

From: http://www.funnypolynomial.com/misc/creative/periodicASCII.pdf Binary From: http://www.funnypolynomial.com/misc/creative/periodicASCII.pdf

Binary Each character you type has a code number associated with it. This code number can be represented in decimal or binary.

Binary Using the ASCII table, can you decode this binary message? 01000010 01101001 01101110 01100001 01110010 01111001

Binary 01000010 = B 01101001 = i 01101110 = n 01100001 = a 01110010 = r 01111001 = y

This is quite cumbersome for long messages... Binary This is quite cumbersome for long messages... 010000100110100101101110011000010111001001111001 01100011011011110110010001100101 0110100101110011 0111001101101001011000110110101100100001

Binary ...so, we can represent binary using hexadecimal. O1OO OO1O B 4 2 O11O 1OO1 i 6 9 Using this method, each byte can be represented by two hexadecimal numbers.

Binary O1OO OO1O B 4 2 O11O 1OO1 i 6 9 111O n ??? But, what about numbers greater than 9? How can we represent those using one digit? O1OO OO1O B 4 2 O11O 1OO1 i 6 9 111O n ???

Decimal vs Hexadecimal Binary Decimal vs Hexadecimal Dec 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 Hex F E D C B A

Binary O1OO OO1O B 4 2 O11O 1OO1 i 6 9 111O n E OOO1 a 1 O111 r 7 y

Binary The word "Binary" = 42 69 6e 61 72 79 in hexadecimal. To denote a hexadecimal number, we often use the prefix 0x.

...and also 0x50 in hexadecimal. Binary For example, the capital letter P is coded as 80 in decimal or 01010000 in binary... ...and also 0x50 in hexadecimal.

can you decode this hexadecimal message? Binary Using the ASCII table, can you decode this hexadecimal message? 42 69 6e 61 72 79 69 73 73 69 06 30 6b 21

Binary Can you convert your name into binary or hexadecimal using the ASCII table?

Binary In pairs, create a secret binary or hexadecimal message and send it to your partner to decode.

Binary http://forums.cisco.com/CertCom/game/binary_game_page.htm

Binary Can you decode these factoids from binary into decimal? A man named Michael Lotito ate 00010010 bicycles in his life. There are 00000101 babies born every second. The word ‘hundred’ derives from ‘hundra’ in Old Norse, which originally meant 01111000. Dr Seuss' book, Green Eggs and Ham, contains only 00110010 different words.

Binary Answers: A man named Michael Lotito ate 00010010 bicycles in his life. 18 There are 00000101 babies born every second. 5 The word ‘hundred’ derives from ‘hundra’ in Old Norse, which originally meant 01111000. 120 Dr Seuss' book, Green Eggs and Ham, contains only 00110010 different words. 50

Binary