BITS, BYTES, AND THE BINARY SYSTEM HOW PROGRAMS CREATE IMAGES ON YOUR PC.

Slides:



Advertisements
Similar presentations
Introduction to Computers Part II
Advertisements

Transforming Data into Information lesson 7 This lesson includes the following sections: How Computers Represent Data How Computers Process Data Factors.
Review of HTML Ch. 1.
1 Chapter 2 The Digital World. 2 Digital Data Representation.
Hexadecimal In today’s lesson we will look at: the need for something other than binary how hexadecimal works how to convert between hexadecimal and binary.
Information Representation
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
1 12/08/03SW Abingdon and Witney College Binary Converting to and from decimal.
Binary Numbers Converting Decimal to Binary Binary to Decimal.
Binary “There are 10 types of people in the world… those that understand binary and those that don’t.”
2-8 Multiplying a Power of Ten by a Whole Number 4 10 = ___________________ = ___________________ 4 1,000 = ___________________ 4 10,000 = __________________.
Illuminating Computer Science CCIT 4-6Sep
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
The fifty Cent Version of Digital Imaging Bits Bytes Pixels Matrix Dynamic range Machine language Processors (8,10,12 bits etc.) Base 10 numbering Binary.
Transforming Data into Information.
Slide 1 Wednesday, October 07, 2015 Low Level Machine.
Binary Code.
Binary Code: The Language of Computers!
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
©2010 Akula LLC, Jeremy R. Hertzberg, BS CMPE Binary Numbers Zeros and Ones
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
Lecture Binary and Hexadecimal Numbers. How Machines Think Computers handle two types of information: –Instructions –Data The "words" of a machine language.
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.
Number Representation. Representing numbers n Numbers are represented as successive powers of a base, or radix.
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.
Visualizing Decimal and Binary
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
Data Representation The storage of Text Numbers Graphics.
1 1 7-Dec-15 Binary Converting to and from decimal.
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.
Computer Number System
Binary 101 Gads Hill School. Aim To strengthen understanding of how computers use the binary number system to store information.
ROM CPU CMOS HARD DRIVERAM. POWER on off 1 bit 8 bits = 1 byte.
CSE 111 Information Representation in the Digital World.
Software Design and Development Storing Data Computing Science.
Online Documents – File Compression File size can be a big deal Like when you want more music on your phone Or work on your USB stick Or when you.
The language of computers Before we start you need to know an important fact. Anything to the power 0 is worth 1. You will need to remember this for later!
Number systems Visualizing Decimal and Binary. We count in base 10 because people started by counting on their fingers Base 10 is a number system that.
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
Programmable Logic Controller
Understanding binary Understanding Computers.
How do the parts of a computer communicate?
Significant Figures & Scientific Notation
Consider this number: , Ones (7 ones) Tens (no tens)
Number Systems.
Visualizing Decimal and Binary
Learn what binary and denary mean.
Ch2: Data Representation
Binary and Hexadecimal Numbers
Binary Lesson 2 Bytes.
Everything that goes on under the hood of a computer is done in binary -- the language of 0s and 1s. If we have only two numbers, it's very easy to represent.
Binary Numbers? Foley SED 514 Section /2/2019.
Binary Lesson 2 Bytes.
Binary Lesson 3 Hexadecimal
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
Binary Lesson 2 Bytes.
How Computers Store Data
Binary Lesson 3 Hexadecimal
Chapter Four Data Representation in Computers By Bezawit 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.
ICT Programming Lesson 1:
Scientific Notation.
Objective - To read, write and identify the values of whole numbers.
Information Technology Department
Transforming Data into Information
5th Grade Place Value I ,.
Technology 3 Bits & Bytes.
Our Number System.
Presentation transcript:

BITS, BYTES, AND THE BINARY SYSTEM HOW PROGRAMS CREATE IMAGES ON YOUR PC

THE LANGUAGE OF PROGRAMMING Computers are programmed using a code made up of binary digits (bits) One bit is a single unit of binary code, either a 0 or 1 0 and 1 are the ONLY possible binary digits (we’ll explore that code later) Using binary code to represent specific values allows the programmer to create virtually unlimited permutations in the form of letters, graphics, colors, and instructions.

THINK OF A LIGHT SWITCH A light switch has TWO positions; ON and OFF When the switch is ON, power flows to the light When the switch is OFF, no power flows to the light

NOW, IMAGINE GROUPS OF SWITCHES WITH EACH SWITCH EITHER ON OR OFF Can you read the message?

WHEN THE “ON” SWITCHES ARE ILLUMINATED, THE “CODED” MESSAGE BECOMES CLEAR

BYTES ARE GROUPS OF 8 BITS The light switch example is, of course, a simplified way of looking at programming. In reality, bits are most commonly arranged in groups of 8 called “bytes.” Each byte in a program represents a small amount of information, such as a single letter of the alphabet.

PACKETS ARE GROUPS OF BYTES Obviously, there’s more to it! A byte doesn’t contain much information, so if you want to write a whole word, you need many bytes. Bytes are arranged into larger groups called “packets.” In programming, packets are separated by “headers” to show where each new packet begins. Generally, packets contain between 7 and 65,542 bytes, including their headers.

WHY BINARY CODE? Binary is a numbering code, just as decimal is a numbering code. You know that the decimal system is written in place values representing ones, tens, hundreds, thousands, and so on. The decimal system uses symbols to represent up to 9 individual things. After that, you have to multiply to find the value of digits in specific places in a number: 4,268 = 4, OR (4x1000) + (2x100) + (6x10) + (8x1) This is standard notationThis is expanded notationThis is scientific notation

BINARY HAS ONLY TWO DIGITS, 0 AND 1 Just as the decimal (“ten”) system has ten digits, 0 through 9, the binary (“two”) system has only two digits, 0 and 1 The decimal system increases the value of each digit by a power of 10 The binary system increases each digit by the power of 2 If you apply the same system of “powers” used in the decimal system to the binary system, the pattern becomes clear…

COMPARE DECIMAL AND BINARY (x1000) “thousands” (x100) “hundreds” (x10) “tens” (x1) “ones” ,682 ( ) (5x100)+(6x100)+(8x10)+(2x1) (x8) “eights” (x4) “fours” (x2) “twos” (x1) “ones” (8+4+1) (1x8)+(1x4)+(1x1) Decimal Place ValuesBinary Place Values

A QUICK SIDE TRIP TO LOOK AT “PIXELS” Pixels are tiny “lamps” on your PC monitor A single pixel is smaller than the head of a pin Each pixel is “attached” to a “light switch” in the circuitry of your PC’s motherboard Illuminating sets of pixels, just like our wall of light switches, reveals patterns that we easily recognize In the early days of computing, pixels were much larger, and that’s why everything looked like it was drawn with little boxes – Like this… and this!

HAVE YOU FIGURED OUT WHY WE USE BINARY? Programmers began using binary code BECAUSE it has only two digits Two digits means one digit can represent “on” and the other can represent “off” Remember, “on” and “off” are all about whether or not power (electricity) is applied to that position. By sending power to individual “pixels” on your PC monitor, patterns emerge that look like letters or anything else you want to represent!