TOPICS:  Introduction  Place Value  Binary  Decimal conversion  Decimal  Binary conversion  Related terms  Quiz.

Slides:



Advertisements
Similar presentations
Base 10 Denary Decimal
Advertisements

CMSC 150 DATA REPRESENTATION CS 150: Mon 30 Jan 2012.
Adding and Subtracting FRACTIONS!!!!
 The central processing unit (CPU) interprets and executes instructions.  The “brains” of the computer.  The speed of the processor is how fast it.
Computer Structures Lecture 2: Working with 0’s and 1’s.
Binary and Decimal Numbers
1 Binary Numbers Again Recall that N binary digits (N bits) can represent unsigned integers from 0 to 2 N bits = 0 to 15 8 bits = 0 to bits.
Computer Systems 1 Fundamentals of Computing
Binary “There are 10 types of people in the world… those that understand binary and those that don’t.”
Binary Arithmetic Math For Computers.
Subtraction Using Pencil & Paper Methods
Abstraction – Number Systems and Data Representation.
Scientific Notation.
Scientific Notation and Metrics
Bits & Bytes: How Computers Represent Data
Numeration Systems Introduction to Binary, Octal, and Hexadecimal.
Text and Graphics September 26, Unit 3.
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.
Lecture 2 Bits, Bytes & Number systems
Scientific Notation Read through this lesson on scientific notation and then complete the handout. Keep this power point presentation on your laptop and.
SCIENTIFIC NOTATION What is it? And How it works?.
Scientific Notation. Scientific Notation At the conclusion of our time together, you should be able to: 1.Define scientific notation 2.Convert numbers.
TOPIC: Scientific Notation product The number is written as the product of two other numbers: not – A number between 1 and 10 (not 10) – and – A power.
Computer Science Binary. Binary Code Remember the power supply that is inside your computer and how it sends electricity to all of the components? That.
Working with 8-bit bytes and hexadecimal
How a Computer Processes Information. Java – Numbering Systems OBJECTIVE - Introduction to Numbering Systems and their relation to Computer Problems Review.
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
Lecture 1: 8/27/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
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.
Computer Programming 12 Mr. Jean February 5 th, 2014.
1 1 7-Dec-15 Binary Converting to and from decimal.
Computer Science Introduction to the Number Base Unit Adapted from Slides by John Owen Computer Science Instructor, Rockport-Fulton High School, Rockport,
Phys 4330 Digital ElectronicsBinary System Digital circuits process signals that contain just two voltage levels or states, labeled logic "0" and logic.
BIG NUMBERS and SMALL NUMBERS (Scientific Notation)
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.
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.
Georgia Institute of Technology Introduction to Programming Part 3 Barb Ericson Georgia Institute of Technology May 2006.
COMPUTER PROGRAMMING I Objective 1.02 Understand Numbering Systems.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
Numbering Systems and Conversion Understand How Computing Devices Work 1.
Software Design and Development Storing Data Computing Science.
Binary, Decimal and Hexadecimal Numbers 1. Numbering Systems Radix - In mathematical numeral systems, the radix or base is the number of unique digits,
© 2016 AQA. Created by Teachit for AQA Number bases and Units of information Lesson.
Binary and Hard Disk PEOPLE Program
Draw two number lines from 0 – 5.
Week 2 - Wednesday CS 121.
Binary, Denary, Hexadecimal Conversion Binary Addition
Multiplying Decimals.
Binary, Decimal and Hexadecimal Numbers
Lesson Objectives Aims You should be able to:
©G Dear 2010 – Not to be sold/Free to use
Consider this number: , Ones (7 ones) Tens (no tens)
Exploring Computer Science – Lesson 2-5
Bits & Bytes How Computers Represent Data
Representation of data in computer systems
Scientific Notation.
Doubles and Halves Lets learn all about it.
Multiplying Decimals.
Fundamentals of Data Representation
Electric Circuits Fundamentals
(return of the…) Data blast
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.
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.
Storage.
LONG MULTIPLICATION is just multiplying two numbers.
LO1 – Understand Computer Hardware
When we multiply by 10 we are making the number ten times bigger.
The Understanding of Binary Math & Conversion
To be able to multiply a number by 10, 100 and 1000
Presentation transcript:

TOPICS:  Introduction  Place Value  Binary  Decimal conversion  Decimal  Binary conversion  Related terms  Quiz

Computers are used daily by nearly everyone at home, school and work, for business, education and entertainment.

How do computers work? Are they really smart?

Computers don’t really think. They are electronic equipment made up of electrical circuits that are either “ON” or “OFF”

How do computers store information? Computers store information as strings of electrical impulses. They are either “ON” (there is electricity) or they are “OFF” (there isn’t electricity). The number “1” is “ON” and the number “0” is “OFF”.

0 and 1 All data and programming is changed to zeros and ones. Each of these digits, either 0 or 1 is a BIT… That is short for Binary digit

Bits & Bytes While each piece A string of of data, 0 or 1, data that is a is a BIT, specific number of bits is a BYTE BYTES are strings of 8 BITS. That is, a string of eight 0s and 1s together. Example: or

BYTES!

LET’S REVIEW What is a BINARY DIGIT? BYTEBIT

OOPS!!! Try again!

YES!

LET’S REVIEW What is a string of BINARY DIGITS? BYTE BIT

OOPS!!! Try again!

YES!

Because computers use only these two numbers, we say they operate on a BINARY number System.

BINARY is a number system based on TWO numbers, 0 and 1, instead of the base 10 number system we use every day.

The base number system determines what digits are used. The base 10 system we commonly use includes the digits and 0

Computers use 0 and 1 exclusively, so they use base 2, or a BINARY system.

Every number base uses digits 0 to one number less than the number base. So… Base 4 uses 0, 1, 2 and 3 Every number base uses digits 0 to one number less than the number base. So… Base 4 uses 0, 1, 2 and 3 Base 8 uses 0, 1, 2, 3, 4, 5, 6, and 7

What digits are in a binary number system? CHECK UP  0 - 1

OOPS!!! Try again!

YES!

How do you change a number to binary? First you have to understand how we determine the value of numbers. How do you change a number to binary? First you have to understand how we determine the value of numbers.

In whatever number system you are using, the VALUE of the number depends on the PLACE it is in. You learned this as PLACE VALUE. hundred’s place ten’s place one’s place In whatever number system you are using, the VALUE of the number depends on the PLACE it is in. You learned this as PLACE VALUE. hundred’s place ten’s place one’s place

That is, 2 is different than 20 or 200, because the 2 is in different places, which changes the VALUE. The zeroes just fill in empty columns. But place value is actually the POWER of the base… the one’s place is 10 0 the ten’s place is 10 1 the hundred’s place is 10 2.

When you learned numbers you read the VALUE of numbers by adding the place values…. 1,234 = 1 x 1000 = 1000 (or 1 x10 3 ) + 2 x 100 = 200 (or 2 x 10 2 ) + 3 x 10 = 30 (or 3 x 10 1 ) + 4 x 1 = 4 (or 4 x 10 0 ) = 1,234 When you learned numbers you read the VALUE of numbers by adding the place values…. 1,234 = 1 x 1000 = 1000 (or 1 x10 3 ) + 2 x 100 = 200 (or 2 x 10 2 ) + 3 x 10 = 30 (or 3 x 10 1 ) + 4 x 1 = 4 (or 4 x 10 0 ) = 1,234

You may remember this was called EXPANDED NOTATION

In BINARY, it works the same way, but the place values are in powers of 2 instead of Powers of

Place value is in powers of

To find the value of a binary number, just add up the place values. It is helpful to write the place values, and then add the number. Try this example: Adding the values = = 21 To find the value of a binary number, just add up the place values. It is helpful to write the place values, and then add the number. Try this example: Adding the values = = 21

When you add up the place values, you get the number in base 10 (conventional numbers). Example: = = 9

Try this again with the number 1110 Example: = = 14

Try this again with another number and greater powers of = 77 Try this again with another number and greater powers of = 77

Now try it on your own: Here are the place values: What is the number? Now try it on your own: Here are the place values: What is the number? Check answer here 49

Now try it on another one! Here are the place values: Now try it on another one! Here are the place values: Check answer here 37

You need to compare the PLACE VALUES of BINARY NUMBERS to the decimal number you are wanting to convert. What is the biggest binary number that is in it?

Try again with a bigger number: > 32 but < – 32 = = = – 2 = Check  Is = 47? YES!!! Try again with a bigger number: > 32 but < – 32 = = = – 2 = Check  Is = 47? YES!!!

Try again with a different number: > 16 but < – 16 = = Check  Is = 18 YES!!! Try again with a different number: > 16 but < – 16 = = Check  Is = 18 YES!!!

Now you try binary  decimal Change 1010 to base 10 (use the place values) Now you try binary  decimal Change 1010 to base 10 (use the place values) Check answer here 10

Try binary  decimal again Change to base 10 (use the place values) Try binary  decimal again Change to base 10 (use the place values) Check answer here 19

Now decimal  binary Change 35 to binary (subtract the place values from the number) Now decimal  binary Change 35 to binary (subtract the place values from the number) Check answer here

Now decimal  binary Change 39 to binary (subtract the place values from the number) Now decimal  binary Change 39 to binary (subtract the place values from the number) Check answer here

You can see that if 35 is a SIX DIGIT number in binary, then binary numbers get really BIG really FAST! That is why they have prefixes like…

KILO as in kilobyes which is 2 10 bytes MEGA as in megabytes which is 2 20 bytes And GIGA as in gigabytes which is 2 30 bytes This is to show how many binary digits are used. These are commonly used for file sizes and storage. KILO as in kilobyes which is 2 10 bytes MEGA as in megabytes which is 2 20 bytes And GIGA as in gigabytes which is 2 30 bytes This is to show how many binary digits are used. These are commonly used for file sizes and storage.

Then there are even BIGGER prefixes  TERA = 2 40 PETA = 2 50 EXA = 2 60 ZETTA = 2 70 And YOTTA = 2 80 Then there are even BIGGER prefixes  TERA = 2 40 PETA = 2 50 EXA = 2 60 ZETTA = 2 70 And YOTTA = 2 80

And then there is GOOGOL 1 with 100 zeros!! And then there is GOOGOL 1 with 100 zeros!!

CHECK UP! Match the answers. What is a binary digit? What is a string of binary digits? CHECK UP! Match the answers. What is a binary digit? What is a string of binary digits? byte bit Float your mouse here to find the pen you can use to draw a line to the correct answer.* * You will need to “unclick” the pen tool and click the “arrow” tool to go on to the next slide. Be sure to “discard” annotations when asked.

CHECK YOUR ANSWER! Match the answers. What is a binary digit? What is a string of binary digits? CHECK YOUR ANSWER! Match the answers. What is a binary digit? What is a string of binary digits? byte bit

What number system uses only digits 0 and 1? binary decimal

OOPS!!! Try again!

YES!

Convert the following binary numbers to decimal Convert the following binary numbers to decimal Check answer here Check answer here

Convert the following decimal numbers to binary Convert the following decimal numbers to binary Check answer here Check answer here

Now, answer this…. There are only 10 kinds of people, those who understand binary, and those who don’t. Which are you? Now, answer this…. There are only 10 kinds of people, those who understand binary, and those who don’t. Which are you?

All graphics sources are noted in normal Powerpoint view.