Computer Systems Nat 4/5 Computing Science Lesson 1: Binary.

Slides:



Advertisements
Similar presentations
Nat 4/5 Computing Science Lesson 1: Binary
Advertisements

How to Convert Decimal Numbers to Binary EXAMPLES.
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
Mathematics with Binary. Question  Below is a binary string  Which is the least significant bit (LSB)?  Which is the most significant bit (MSB)? 0.
2.1 2 Number Systems Foundations of Computer Science  Cengage Learning.
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text.
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text.
Converting binary to decimal decimal to binary
Decimal Review ,00010,0001, Decimal ~ Base 10 number system 10 different numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8,
Binary Representation and Computer Arithmetic
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
IT253: Computer Organization
Binary Arithmetic & Data representation
NUMBER SYSTEM Decimal System Binary System. We use two digits in this system (0,1) just like the existing system of computers.. And write the number in.
Binary Values and Number Systems
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
Positional Notation 642 in base 10 positional notation is:
Lecture 2 Binary Values and Number Systems. The number 943 is an example of a number written in positional notation. The relative positions of the digits.
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 2: Floating Point Representation.
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
Introduction to Number System
Chapter 2 Number Systems: Decimal, Binary, and Hex.
Data Representation Conversion 24/04/2017.
Hexadecimal. Overview Hexadecimal (hex) ~ base 16 number system Use 0 through 9 and... A = 10 B = 11 C = 12 D = 13 E = 14 F = 15.
Binary Numbers So what are they and why are they important?
Chapter 7 Section 7.2 Addition & Subtraction in Different Bases.
Binary A double zero educational presentation. Binary Basics Binary is the language computers use Only 1’s and 0’s can be found in Binary Very large numbers.
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
NUMBER SYSTEMS.
Introduction To Number Systems Binary System M. AL-Towaileb1.
Computer Systems Nat 4/5 Computing Science Lesson 1: Binary.
Lecture 6 Excess Notation. Excess 8 notation indicates that the value for zero is the bit pattern for 8, that is 1000 Excess 8 notation indicates that.
Arithmetic in Binary. Addition A “Rule of Addition” is a statement of the form: = 8 How many such rules are there in Decimal?
©2010 Cengage Learning SLIDES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION Click the mouse to move to the next page. Use the ESC key to exit.
COMPUTER PROGRAMMING I Objective 1.02 Understand Numbering Systems.
Section 5 Digital Electronic Circuits. Chapter 32 Binary Number System.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
Chapter 1: Subtraction!!. Section 1- Subtraction with Pictures.
Numbering Systems and Conversion Understand How Computing Devices Work 1.
09/06/ Data Representation ASCII, Binary Denary Conversion, Integer & Boolean data types.
Computer Maintenance Numbering Systems Copyright © Texas Education Agency, All rights reserved.1.
Binary Numbers Press any key to begin.. In order to understand the binary numbering system lets first look at our decimal system. The decimal numbering.
Number Systems Decimal Can you write 12,045 in expanded form? Base? Allowable digits for each place?
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.
Nat 4/5 Computing Science Lesson 1: Binary
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Lecturer: Santokh Singh
Introduction To Number Systems
Computer Maintenance Numbering Systems Trade & Industrial Education
Fraction and decimal operation notes
Times Tables and Top Tips! The 2 times table
The Binary Number System
Adding and subtracting decimals
What do we now know about number systems?
Follow-up question Factorize x2 + 2x – 15. Solution
Binary / Hex Binary and Hex The number systems of Computer Science.
Binary Numbers Press any key to begin..
Unit 18: Computational Thinking
Number Representation
Objective 1.02 Understand Numbering Systems
Starter Using the fingers on only one hand, what is the highest number you can count to? Rules: You must start at 1 You must count sequentially (i.e.
Binary  Name: Class: .
The Binary System.
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.
Binary It’s all 0’s and 1’s.
Computer Systems Nat 4/5 Computing Science Data Representation
GCSE COMPUTER SCIENCE Topic 3 - Data 3.3 Logical and Arithmetic Shifts.
Converting Rational Numbers
Presentation transcript:

Computer Systems Nat 4/5 Computing Science Lesson 1: Binary

Section Key Words Section Key Terms

Lesson Aims  By the end of this lesson:  You will be able to: Describe what an integer is Represent positive integers in binary using up to 8 Bits State three advantages of the binary number system

The Decimal & Binary Systems  We use the decimal(denary) or base 10 system  This means we have 10 digits : 0-9  Computers use the binary or base 2 system  There are only two digits: 0 and 1  Each figure is known as a bit  Bi nary digi t Nat 4/5 Off and On Because of our ten fingers?

Decimal Numbers  Lets look at how a decimal number is made up: 173  Technically this is: Nat 4/5 HundredsTensUnits HundredsTensUnits 173

Binary Numbers  Lets look at how the same number is stored in binary: Nat 4/  This number is constructed as shown above.  These values come from:

How to convert into Binary  Let’s look at the same example:  173/2 = 86 r 1  86/2 = 43 r 0  43/2 = 21 r 1  21/2 = 10 r 1  10/2 = 5 r 0  5/2 = 2 r 1  2/2 = 1r 0  1/2 = 0 r 1  Binary Number = Nat 4/5 This is our binary number Our binary number is: Read the binary number from bottom up.

How to convert into Binary  Using the number 173 earlier. The aim is to subtract the values from the number until we are left with 0.  Can we subtract 128 from 173?  Yes – So we add a 1 to our number  Can we subtract 64 from 45?  No so we add a 0  Can we subtract 32 from 45?  Yes so we add a 1  Can we subtract 16 from 13?  No so we add a 0  Can we subtract 8 from 13?  Yes so we add a 1  Can we subtract 4 from 5?  Yes so we add a 1  Can we subtract 2 from 1?  No so we add a 0  Can we subtract 1 from 1?  Yes so we add a 1 Nat 4/5 Read the binary number from top down Our binary number is:

How to convert from Binary 1. Create your table with the values in the top 2. Insert your binary value into the table 3. Add the place values that have a binary 1 in them: = 102 Nat 4/

Advantages of the Binary system There are less rules of arithmetic, this makes it easier to program. 0’s and 1’s are easier to represent digitally in computer systems. Any drop in voltage does not affect the data. Nat 4/5

Advantages of Binary: 1.There are less rules of arithmetic. 2.0’s and 1’s are easier to represent. 3.Any drop in voltage doesn’t effect data. Summary  Binary only has two values– 0 & 1  A single 0 or 1 is known as a bit  Binary Digit  The place values in binary start on the right at 1 and double every time going to the left. Nat 4/5