Binary and Decimal Numbers

Slides:



Advertisements
Similar presentations
Introduction to Computers Part II
Advertisements

Information Representation
The Binary Numbering Systems
A-Level Computing#BristolMet Session Objectives#8 express numbers in binary, octal and hexadecimal explain the use of code to represent a character set.
What’s a Computer? Analog, Digital does it matter? Technically there are two categories of computers, analog or digital. Designs reflect two different.
Connecting with Computer Science, 2e
CSC 110 – Intro to Computing Lecture 4: Arithmetic in other bases & Encoding Data.
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.
15 September How Computers Work: Other Forms of Data.
IT-101 Section 001 Lecture #4 Introduction to Information Technology.
Representing Information in Binary (Continued)
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
Digital Information Technology
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis.
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
Bits & Bytes: How Computers Represent Data
CSCI-235 Micro-Computers in Science Hardware Part II.
Representing Nonnumeric Data Everything is really a number.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Digital Media Dr. Jim Rowan ITEC Monday, August 27.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
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.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
The Hexadecimal Number System and Memory Addressing ISAT 121.
© Keith Vander Linden, 2005 Jeremy D. Frens, Open up the box of a computer, and you won't find any numbers in there. You'll find electromagnetic.
Introduction to Digital Media. What is it? Digital media is what computers use to; Store, transmit, receive and manipulate data Raw data are numbers,
Chapter 2 Data Representation.
Data Representation The storage of Text Numbers Graphics.
Data as the computer sees it 1.  Number systems Number systems  Data storage Data storage  Glossary Glossary 2.
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
Agenda Character representation Numerical Conversions ASCII EBCDIC
CSCI-100 Introduction to Computing Hardware Part II.
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.
Chapter 1 Background 1. In this lecture, you will find answers to these questions Computers store and transmit information using digital data. What exactly.
Data Representation. How is data stored on a computer? Registers, main memory, etc. consists of grids of transistors Transistors are in one of two states,
Information in Computers. Remember Computers Execute algorithms Need to be told what to do And to whom to do it.
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
DATA Unit 2 Topic 2. Different Types of Data ASCII code: ASCII - The American Standard Code for Information Interchange is a standard seven-bit code that.
Binary Representation in Text
Binary Representation in Text
Data Representation.
Chapter 8 & 11: Representing Information Digitally
What’s a Computer? Analog, Digital does it matter?
Computer Science II Chapter 1.
Lec 3: Data Representation
Binary Numbers and ASCII and EDCDIC
Binary Representation in Audio and Images
What is a byte? What is it? How would you use it?
How to Convert Pictures into Numbers
Bits & Bytes How Computers Represent Data
Introduction to Computers
Digital Electronics Jess 2008.
Intermediate 2 Computing
EPSII 59:006 Spring 2004.
CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS
CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS
Ch2: Data Representation
Information Representation
Chapter 2 Data Representation.
Number Systems Lecture 2.
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
How Computers Store Data
Data Representation Chapter 2 Computer HW (Von Neumann Model) Program
Abstraction – Number Systems and Data Representation
Binary CSCE 101.
Presentation transcript:

Binary and Decimal Numbers CSCI-N 100 Dept. Computer & Information Science

Numbers in computers Originally designed to crunch numbers Eckert and Mauchly (and scores more) Univ. Penn, Moore School of Elec. Eng. (and lots of other places) Long- range firing solutions in WW II (and other problems) ENIAC (and many more machines and devices)

Power in the numbers Electrical power into computer Series of switches opening and closing Converts analog into digital (self-correcting switches make it high accurate digital device)

The divided machine Analog Digital Nearly infinite in precision but limited accuracy Digital Limited precision but strongly accurate 1 on High Low Off

What the computer doesn’t understand Letters Graphics Colors Characters Sound Other types of data

Making the computer understand Convert what we know to something the computer understands Converting analog to digital Switches opening and closing Open On 1 Closed Off 0

Making the user understand Computer sending back information to the user Converting the 1s and 0s into something the user understands

Representation Calendar Time Temperature Represents movement of the Earth around the Sun Time Represents a given amount of movement of the Earth Clock Temperature Represents Sun’s ray reflecting of Earth surface Interaction of reflective rays with molecule in the atmosphere Excited molecules generate heat Thermometer

The Numbers Binary – Base 2 Decimal – Base 10 Other number bases 0, 1 0 – 9 Other number bases Octal – Base 8 (0 – 7) Hexadecimal – Base 16 (0 – 9, a – f)

How the computer deals with numbers Real numbers (infinite) Pi 1/3 (.3333) Not enough computer memory Infinitely precise Uses round-off error (also called floating point)

Sound, Graphics, Text? Not represented in a ‘natural’, numeric way Need to convert bits of information from analog to ‘digital information’

Representing text Text represented by ASCII Original ASCII 7-bit character (27 = 128) Extended ASCII 8-bit character (28 = 256) Uses Western European English character set UNICIODE 65,000 character set coding scheme Used for languages that use glyphs Chinese Arabic Hebrew EBCDIC 8-bit code

Representing graphics Pixel Dot on in the image assigned numeric value Translate to monitor Graphics use hexadecimal coding for use in web pages on the Internet Red Green Blue (RRGGBB) GIF, JPG, PNG, BMP, TIF (and lots more)

Representing sound MIDI (developed 1982 my music industry) AU (supported by many different software systems over a large range of platforms) RealAudio (developed by Real Media for Internet use) AIFF (developed by Apple) SND (developed by Apple) MP3 (developed by Moving Pictures Experts Group) WAVE (developed by IBM and Microsoft)

Base 10 to Base 2 28 27 26 25 24 23 22 21 20 256 128 64 32 16 8 4 2 1 Find the binary number that is EQUAL TO BUT LESS THAN the decimal number, SUBTRACT 23010 6 – 4 = 2 230 – 128 = 102 2 – 2 = 0 102 – 64 = 38 23010 = 111001102 38 – 32 = 6 6 – 16, cannot subtract 6 – 8, cannot subtract

Base 2 to Base 10 28 27 26 25 24 23 22 21 20 256 128 64 32 16 8 4 2 1 ADD the BINARY switches turned on, reading left to right 1111001102 = 48610 256 +128 +64 +32 +0 +4 +2