CC111 Lec#2 The System Unit The System Unit: Processing and Memory Lecture 2 Binary System.

Slides:



Advertisements
Similar presentations
Chapter 4: Representation of data in computer systems
Advertisements

1 Chapter 2 The Digital World. 2 Digital Data Representation.
Digital Data Representation
The System Unit: Processing and Memory Chapter 2.
Processing Data.
Binary and Hexadecimal Numbers
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
Data Representation CS105. Data Representation Types of data: – Numbers – Text – Audio – Images & Graphics – Video.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Number Systems & Logic Gates Day 1
Digital Data Patrice Koehl Computer Science UC Davis.
CREATED BY, MS. JENNIFER DUKE BITS, BYTES, AND UNITS OF MEASUREMENT.
Bits, Bytes, KiloBytes, MegaBytes, GigaBytes & TeraBytes.
Communications Technology 2104 Mercedes Lahey. Bit 1. bit=From a shortening of the words “binary digit” 2. the basic unit of information for computers.
Computer Storage & Representing Numbers CE 311 K - Introduction to Computer Methods Daene C. McKinney.
Memory Terminology & Data Representation CSCI 1060 Fall 2006.
Higher Computing Data Representation.
Bits & Bytes: How Computers Represent Data
Data and Program Representation
Chapter 4 The System Unit: Processing and Memory Prepared by : Mrs. Sara salih.
Chapter 2 Computer Hardware
Data Representation A series of eight bits is called a byte. A byte can be used to represent a number or a character. As you’ll see in the following table,
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!
Text and Graphics September 26, Unit 3.
OBJECTIVES  Explain why a computer represents data in the form of binary  Explain the terms related to data storage: bit, byte, character, word  Calculate.
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 2: Floating Point Representation.
Numerical Representation Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg 1.
Computer Confluence 7/e © 2006 Prentice-Hall, Inc.
Unit 2—Part A Computer Memory Computer Technology (S1 Obj 2-3)
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
Do it now activity Can you work out what the missing symbols are and work out the order they should be in if the table shows smallest to largest KB kilobyte.
Networking for Home and Small Businesses –.  Explain the binary representation of data.
Data Representation (in computer system). Data Representation How do computers represent data? b The computers are digital Recognize.
2.1.4 Data Representation Units.
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.
CPU and Motherboard. Why are they called Digital Computers? Code systems - Morris code ? Data and Program Representation.
 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;
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.
Number systems. Binary system. Bits and bytes. Modern computers “speak” in a digital language composed of 2 digits. The machine language of modern computers.
Numerical Representation Intro to Computer Science CS1510 Dr. Sarah Diesburg 1.
© OCR 2016 Unit 2.6 Data Representation Lesson 1 ‒ Numbers.
Understanding binary Understanding Computers.
Computer basics.
How Computers Store Variables
INFS 211: Introduction to Information Technology
Data Representation N4/N5.
Computer Memory Digital Literacy.
Numerical Representation
Memory Parts of a computer
Information Support and Services
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.
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Denary to Binary Numbers & Binary to Denary
Unit 2 Computer Memory Computer Technology (S1 Obj 2-3)
Lecture 3 ISE101: Computing Fundamentals
Data Representation Numbers
How do computers work? Storage.
Numerical Representation
Computers & Programming Languages
Numerical Representation
Computer Systems.
Binary System.
Computer Systems Nat 4/5 Computing Science Data Representation
Numerical Representation
Presentation transcript:

CC111 Lec#2 The System Unit The System Unit: Processing and Memory Lecture 2 Binary System

CC111 Lec#2 The System Unit 2 Data and Program Representation In order to be understood by a computer, data and programs need to be represented appropriately Coding systems: Used to represent data and programs in a manner understood by the computer Digital computers: Can only understand two states, off and on (0 and 1) Digital data representation: The process of representing data in digital form so it can be understood by a computer

CC111 Lec#2 The System Unit 3 Digital Data Representation Bit: The smallest unit of data that a binary computer can recognize (a single 1 or 0) Byte = 8 bits Byte terminology used to express the size of documents and other files, programs, etc. Prefixes are often used to express larger quantities of bytes: kilobyte (KB), megabyte (MB), gigabyte (GB), terabyte (TB), petabyte (PB), exabyte (EB), zettabyte (ZB), yottabyte (YB).

CC111 Lec#2 The System Unit Data and Program Representation Representing Numerical Data Representing Numerical Data: The Binary Numbering System –Numbering system A way of representing numbers –Decimal numbering system Uses 10 symbols (0-9) –Binary numbering system Uses only two symbols (1 and 0) to represent all possible numbers –In both systems, the position of the digits determines the power to which the base number (such as 10 or 2) is raised 4

CC111 Lec#2 The System Unit 5 Data and Program Representation Representing Numerical Data

CC111 Lec#2 The System Unit 6 Data and Program Representation Coding Systems for Text-Based Data ASCII (American Standard Code for Information Interchange): coding system traditionally used with personal computers

CC111 Lec#2 The System Unit 7 Unicode: newer code (32 bits per character is common); universal coding standard designed to represent text-based data written in any ancient or modern language Replacing ASCII as the primary text-coding system Data and Program Representation Coding Systems for Text-Based Data

CC111 Lec#2 The System Unit 8 Data and Program Representation Graphics (still images such as photos or drawings) –Bitmapped images: A variety of bit depths are possible (4, 8, 24 bits) More bits = more colors

CC111 Lec#2 The System Unit 9 Audio data: Must be in digital form in order to be stored on or processed by a computer –Often compressed when sent over the Internet MP3 files Video data: Displayed using a collection of frames, each frame contains a still image –Amount of data can be substantial, but can be compressed –Developers keep on defining new formats aiming for more quality with less space. Data and Program Representation

CC111 Lec#2 The System Unit 10 Data and Program Representation Representing Programs: Machine Language Machine language: Binary-based language for representing computer programs the computer can execute directly –Early programs were written in machine language. –Today’s programs still need to be translated into machine language in order to be understood by the computer Most programs are written in other programming languages –Language translators are used to translate the programs into machine language

CC111 Lec#2 The System Unit Quick Quiz 1. Another way to say “one million bytes” is a.one kilobyte b.one gigabyte c.one megabyte 2. True or False: MP3 files are stored using 0s and 1s. 3. The _____________ numbering system is used by computers to perform mathematical computations. Answers: 1) c; 2) True; 3) binary 11

CC111 Lec#2 The System Unit Convert the following binary numbers into decimal: a. 100 b. 111 c d e f g h i

CC111 Lec#2 The System Unit Convert each decimal number to binary by using the sum-of-weights method: a. 10 b. 17 c. 24 d. 93 e. 125 f. 186

CC111 Lec#2 The System Unit Add the binary Numbers a b c d e f

CC111 Lec#2 The System Unit What is the highest decimal number that can be represented by 5 numbers of binary digits (bits) How many bits are required to represent 17? Explain the rules of binary addition