Lesson 8 – Binary Numbers Computer Programming 12.

Slides:



Advertisements
Similar presentations
Processing Data.
Advertisements

Introduction to Computing CPSC 203 January 24, 2006 Heejin Lim Chapter 1 Chapter 2 (part of)
Ceng 230 Programming with C
assumes basic arithmetic
 A binary number is a number that includes only ones and zeroes.  The number could be of any length  The following are all examples of binary numbers.
Number Systems & Logic Gates Day 1
Bits & Bytes: How Computers Represent Data
Data and Program Representation
Chapter 1 Data Storage(2) Yonsei University 1 st Semester, 2014 Sanghyun Park.
Computer Systems Chapter 1 Pages Hardware-physical pieces Key hardware components in a computer system: The physical parts. – Central processing.
IT-101 Section 001 Lecture #3 Introduction to Information Technology.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Computer System & Binary Review. Memory Model What memory is supposed to look like.
Representing Data. Representing data u The basic unit of memory is the bit  A transistor that can hold either high or low voltage  Conceptually, a tiny.
Hardware Data Storage.
Data Representation and Storage Lecture 5. Representations A number value can be represented in many ways: 5 Five V IIIII Cinq Hold up my hand.
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.
What do computers know?  All they really know is on or off.  Kind of like a light switch  Computers aren’t nearly as smart as you are!
Chapter 7—Objects and Memory The Art and Science of An Introduction to Computer Science ERIC S. ROBERTS Java Objects and Memory C H A P T E R 7 Yea, from.
Digital Literacy Lesson 3. The Role of Memory A computer stores data in the memory when a task is performed. Data is stored in the form of 0s and 1s.
Fall Working with Powers Integer Exponents Exponent Rules Order of Operations.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Type of Information Why variables matter… Any information has a “Data Type” 1.
Unit 2—Part A Computer Memory Computer Technology (S1 Obj 2-3)
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Bits and Bytes IGCSE. A binary number is either a 0 or a 1 and is known as a 'bit' or b inary dig it. However, the CPU cannot deal with just one bit at.
How We Measure Memory. Learning Goal Today we are going to learn how the computer stores information.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Allow computers to store programs and information for use at a later date Storage Devices.
Thursday 8 th October, 2015 Information Technology Fundamentals of Hardware & Software.
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.
Measuring Memory and Storage
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
ASCII AND EBCDIC CODES By : madam aisha.
COMPUTER SYSTEM A computer system is define as combination of components designed to process data and store files. A computer system consists of four.
Computer Studies Today Chapter 19 1 Chapter 19. Computer Studies Today Chapter 19 2 »Information stored in a computer is in two states: –ON –OFF.
 Computers are 2-state devices › Pulse – No pulse › On – Off  Represented by › 1 – 0  BINARY.
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.
Binary Numbers. Base 10 and Base 2  We normally work with numbers in base 10.  In base 10 we use the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.  Everything.
© 2016 AQA. Created by Teachit for AQA Number bases and Units of information Lesson.
Lecture 4 Number Systems Lecturer: Sumaira Hussain.
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
Numerical Representation Intro to Computer Science CS1510 Dr. Sarah Diesburg 1.
Binary & Hex Review.
Understanding binary Understanding Computers.
Computer basics.
Storage Hardware This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions,
Computer Memory Digital Literacy.
Numerical 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.
EPSII 59:006 Spring 2004.
इंट्रस्टिंग बनने के लिए आपको इंट्रस्टेड होना पड़ेगा।
Binary Code  
How do computers work? Storage.
Numerical Representation
Computers & Programming Languages
Main memory and mass storage
Ch2: Data Representation
Bits, Bytes, and Storage.
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
How Computers Store Data
Numerical Representation
How to Represent Numbers on a Computer
Chapter Four Data Representation in Computers By Bezawit E.
Lecture 4 Number Systems. von Neumann Model Every computer today is based on the von Neumann Model. It is based on 3 ideas: 1.Four subsystems 2.Stored.
Binary System.
Binary & Hex Review.
Numerical Representation
Presentation transcript:

Lesson 8 – Binary Numbers Computer Programming 12

The Binary System Computers store and retrieve many types of information (text files, graphics files, sound files, games, etc.) They need to use a code to represent the information being processed We use various codes all the time Letters of the alphabet to represent words/pronunciations 10 digits (0-9) to represent quantities

Computers know only 2 basic code values 0 and 1 off/on negative/positive Ex. Floppy disks covered with thin layer of ferromagnetic material cells are polarized as ‘positive’ or ‘negative’ sequence of cells creates a code that the computer interprets We call this code binary code Prefix ‘bi’ means ‘two’

Base 10 vs. Base !!!!!!!! !!!!!!!!!!

Decimal (or base 10) system Most commonly used number system Uses numbers 0 – 9 Each place value represents a power of 10 11,111 can be written as: 1 X X X X X 10 0 OR 10,

Binary (or base 2) system Only uses 0 and 1 When writing binary numbers we must include a subscript 2 at the end of the number (if no subscript it is assumed that we are working in base 10) Ex

is not the same as 11,111 Each place value represents a power of 2 (or is twice as great as the place to its right) 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024… can be written as: 1 X X X X X 2 0 OR OR 31

Note the pattern… = = = = = = = = = = = = = = = = 15

Place Values – 8 digit binary number Bit Location EighthSeventhSixthFifthFourthThirdSecondFirst Power Value

Bits & Bytes We often refer to numbers as digits A binary digit can be referred to as bit Bits are usually arranged in groups of eight A group of eight bits is called a byte Larger numbers are made up of two or more bytes combined Ex. 2 bytes required to make 512

Units for Computer Memory PrefixMetric MeaningMemory Usage Number of Bytes Integer Equivalent Kilo-1,000Kilobyte (K) Mega-1,000,000Megabyte (MB) ,048,576 Giga-1,000,000,000Gigabyte (GB)2 30 1,073,741,824 Tera-1,000,000,000,000Terabyte (TB)2 40 1,099,511,627,776

Sample Questions 1) What is the decimal equivalent of ? 2) Rewrite 199 as a binary number

1) is equal to 87 2) 199 is equal to