Information Technology Department

Slides:



Advertisements
Similar presentations
Computer Basics Binary Bits & Bytes
Advertisements

1 Chapter 2 The Digital World. 2 Digital Data Representation.
 2002 Prentice Hall Hardware Basics: Inside The Box Chapter 2.
Computer Hardware.
Computer Architecture. Central Processing Unit (CPU)- micro processor The Personal Computer.
 The central processing unit (CPU) interprets and executes instructions.  The “brains” of the computer.  The speed of the processor is how fast it.
Processing Data.
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
Unit 3—Part A Computer Memory
Aug CMSC 104, LECT-021 Machine Architecture and Number Systems Some material in this presentation is borrowed form Adrian Ilie From The UNIVERSITY.
Computer Systems. Basic Components Auxiliary Storage OutputProcessor Main Memory Input.
1 Machine Architecture and Number Systems Topics Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting.
Computer Systems Chapter 1 Pages Hardware-physical pieces Key hardware components in a computer system: The physical parts. – Central processing.
Computer Terms. Computer A machine designed to run programs and store information that you create.
Copyright © 2003 by Prentice Hall Module 5 Central Processing Unit 1. Binary representation of data 2. The components of the CPU 3. CPU and Instruction.
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,
Machine Architecture CMSC 104, Section 4 Richard Chang 1.
Lecture Binary and Hexadecimal Numbers. How Machines Think Computers handle two types of information: –Instructions –Data The "words" of a machine language.
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 MAINTENANCE REPAIR & TROUBLESHOOTING Powered by DeSiaMore1.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Unit 2—Part A Computer Memory Computer Technology (S1 Obj 2-3)
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.
 Bits & Bytes Bits & Bytes  Units of data Units of data  Storage devices Storage devices  Storage Types Storage Types  Secondary Storage Secondary.
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.
Introduction to Computers Rabie A. Ramadan, PhD. 2 About my self Rabie A. Ramadan My website and publications
CSCI-100 Introduction to Computing Hardware Part I.
COMPUTER MEMORY & DATA STORAGE. ROM ROM is short for Read Only Memory. –I–It is permanent, long-term memory which cannot be erased or changed in any way;
Computers - The Journey Inside continues…
Thursday 8 th October, 2015 Information Technology Fundamentals of Hardware & Software.
Introduction to Computers Rabie A. Ramadan, PhD. 2 Class Information Website ses/2011/summer/intro/
Basic Computer Organization Rashedul Hasan.. Five basic operation No matter what shape, size, cost and speed of computer we are talking about, all computer.
Measuring Memory and Storage
Computer Basics Just How Does a Computer Work?. A computer is made up of many parts.
Millions of electronic pulses move through your computer every second. Computers are capable of processing thousands of functions in the time it takes.
Understanding Computers
Computers Inside & Out. How have computers affected your life? How has technology affected your life?
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
Information Technology (IT). Information Technology – technology used to create, store, exchange, and use information in its various forms (business data,
© OCR 2016 Unit 2.6 Data Representation Lesson 1 ‒ Numbers.
Understanding binary Understanding Computers.
An Overview of the Computer System
INFS 211: Introduction to Information Technology
Data Representation N4/N5.
UNDERSTANDING YOUR COMPUTER
Computer Memory Digital Literacy.
Memory Parts of a computer
Information Support and Services
BITS & BYTES.
Unit 2 Computer Memory Computer Technology (S1 Obj 2-3)
COMPUTER MEMORY & DATA STORAGE
Introduction to Computers
COMPUTER MEMORY & DATA STORAGE
Unit 3—Part A Computer Memory
PRIMARY STORAGE.
Looking Inside the machine (Types of hardware, CPU, Memory)
Introduction to Computing Lecture # 1
An Overview of the Computer System
Data Representation Numbers
Unit 3—Part A Computer Memory
Binary and Hexadecimal Numbers
Bits, Bytes, and Storage.
Introduction to Computers
BITS & BYTES.
Computer Hardware.
Bits and Bytes Key Revision Points.
Chapter Four Data Representation in Computers By Bezawit E.
AS Level ICT Selection and use of storage requirements, media, and devices: storage and storage capacity Unit 1 Topic a - Selection and use of storage.
Basic Computer Organization
Technology 3 Bits & Bytes.
Presentation transcript:

Information Technology Department Introduction to IT-I Ishik University Faculty of Science Information Technology Department By Payam Wali

Data Representation in Computers

Binary Did you know that all of the information that travels through your computer is based on two commands? The only data that a computer can understand is on and off. But, the millions of combinations of those two commands given in series are what make a computer work.

What is a bit? The term bit is an acronym for the expression Binary Digit. By definition, it is “a single digit in a binary numbering scheme”, meaning it can take on one of two values: 0 and 1 (a binary condition). Well, nothing really, except that it provides with a convenient analogy for describing the way in which a computer processes data. The computer has no idea what a 1 or a 0 is. It is, after all, nothing more than an electronic device with voltage running through it. As with all devices requiring electricity, such as a light bulb, we could describe them as either being on or off. In other words, they exist in a binary state. Binary schemes are perhaps the oldest coding systems known to man and the easiest to understand. By Payam Wali.

Student Rating Signal System Example Since our rating scheme only consisted of nine messages, we didn’t use up all combinations of light switches. In fact, we could have developed 7 additional ratings (1010, 1011, 1100, 1101, 1110, and 1111). If we now the pattern we have developed, we notice a simple progression: consider By Payam Wali.

Can we predict how many bits we need? Given that each bit has two possible states, for any number (n) of bits, the amount of information conveyed (I) is: 2 n = I By Payam Wali.

Can we predict how many bits we need? By Payam Wali.

Bits Remember the power supply that is inside your computer and how it sends electricity to all of the components? That electricity is what creates an on signal. The memory chips inside your computer are divided into thousands of tiny compartments called bits.

Bits and binary Computer programs are sets of instructions. Each instruction is translated into machine code - simple binary codes that activate the CPU. Programmers write computer code and this is converted by a translator into binary instructions that the processor can execute. All software, music, documents, and any other information that is processed by a computer, is also stored using binary.

Bits and binary

Gates: Opened and Closed Each bit has an electronic switch or gate. On means the gate is open and letting electricity go through. The computer reads on or open switches as a number 1. Closed gates are off because the electricity is blocked and cannot get through. The computer reads off bits as 0.

Gates: Opened and Closed

Bits and Bytes It is by grouping these bits together to form a series of 1/0 commands, that data is formed. Eight bits are grouped together to form a byte. In this group of eight, there are 256 possible combinations of 1/0.

KB, MB, and GB You may have seen these abbreviations many times before. Do you know what they mean? Kilobyte, KB, about 1 thousand bytes Megabyte, MB, about 1 million bytes Gigabyte, GB, about 1 billion bytes Terabyte, TB, about 1 trillion bytes (rare) As you can see, these abbreviations stand for a specific number of bytes. And each byte holds 8 bits capable of forming 256 combinations of 1/0.

A Different Perspective There is another way to look at these three amounts KB = kilobyte = about 1,000 bytes, MB = megabyte = about 1,000 kilobytes, GB= gigabyte = about 1,000 megabytes This concept is important to understand because it can help us convert from one size to the other when we want to compare different sizes.

A Conversion Example Let’s say we can purchase one of two hard drives, one drive is 1,746 MB and the other is 1.5 GB. Which drive should we choose? KB = kilobyte = about 1,000 bytes, MB = megabyte = about 1,000 kilobytes, GB= gigabyte = about 1,000 megabytes Since the first drive is in MB (1,746 MB), we can convert the second drive from GB to MB by multiplying 1.5 GB x 1000 MB/GB = 1,500 MB or taking GB -> MB move the decimal point 3 places to the right 1.5 becomes 1500. MB

A Conversion Example (continued) Now we can compare the two drives. One drive is 1,746 MB and the other is 1,500 MB. Clearly the first drive (1,746 MB) is larger. Could we compare the two drives in GB? Absolutely! To convert the first drive, 1,746 MB to GB we take 1,746 MB/1000 MB/GB=1.746 GB or taking MB -> GB move the decimal 3 places to the left from 1746 to 1.746 GB NOTE: Notice the pattern of moving 3 decimal places each level we move up MB->GB or down GB->MB

Check for Understanding Convert the following: 856 MB to GB 7.84 GB to MB 1,546,000 KB to GB (hint: move 3 decimal places to take KB -> MB & move 3 decimal places to take MB -> GB) 1,746 MB to KB 1.5 GB to KB (Remember our PATTERN of moving 3 decimal places at each level)

Answer .865 GB 7,840 MB 1.546 GB 1,746,000 KB 1,500,000 KB By Payam Wali.

What Exactly is a Gig? To get an idea of how much on/off data a computer can store, just imagine pressing one key one billion times! How long would it take? If you pressed the key 5 times per second, it would take you over 6 years of continuously typing to reach 1 billion keystrokes equal to 1GB of memory! RAM, on the other hand, is more like a journal - you can write information into the journal. But if you change your mind, you can erase and write in new information.

RAM Memory The number that comes before one of these abbreviations represents the computer's memory capacity. For example, if a computer has 64MB of RAM that means that the computer can handle 64,000,000 (64 million) bytes of random access memory (that's 64,000,000 microscopic 8-bit panels).

Hard Drive Size Hard disk space is also measured in bytes. So, a 15 GB hard drive has 15,000,000,000 (15 billion) bytes for storage or 15,000 MB. How many kilobytes would that be? 15,000,000 KB

Put it into Perspective Many computers today can store over 500 GB of storage on their hard disks! Incredible! So, the next time your computer is taking a long time to load a web page, think of how fast it really is going!

Binary Coding Representing text characters, such as letters, as binary numbers is called Binary Coding.

How it All Works! The numerical value of the uppercase letter A is 65. That number 65 is represented in one byte - a combination of 1 and 0 or on and off switches. The computer cannot understand letters, so it translates them into binary numbers that are represented by patterns of on and off.

How it All Works! Look at your keyboard. Each character key is represented by a number that is held in a single byte. Remember how the letter A is sent to the CPU to be translated into binary code?