Data Representation. Data Representation, Storage, and Retrieval. Data Representation. Data Representation. Data Representation. Data Representation

Size: px
Start display at page:

Download "Data Representation. Data Representation, Storage, and Retrieval. Data Representation. Data Representation. Data Representation. Data Representation"

Transcription

1 , Storage, and Retrieval ULM/HHIM Summer Program Project 3, Day 3, Part 3 Digital computers convert the data they process into a digital value. Text Audio Images/Graphics Video Digitizing /8/20 Paul D. Wiedemeier, Ph.D. 6/8/20 Paul D. Wiedemeier, Ph.D. 2 The digits used by a digital computer to represent data are 0 and. Because we only use two digits to represent all data, this type of representation is called Binary Why don t we just use digits 0-9 (i.e. decimal representation) to represent all data instead of 0 and? Because the two states of an electrical circuits are Low and High voltage. Low voltage on a wire = Off = 0 bit High voltage on a wire = On = bit 6/8/20 Paul D. Wiedemeier, Ph.D. 3 6/8/20 Paul D. Wiedemeier, Ph.D. 4 A bit is a state which is either 0 or (i.e. either Off or On ). The term bit is short for binary digit A bit is the smallest unit of data that a computer can process. A bit is also the smallest unit by which memory and storage media is measured. Since a single bit is either 0 or, it can only represent, at most, two unique pieces of data. Mathematically: 2 = 2 data representations However, a grouping of 8 bits can represent 256 unique pieces of data. Mathematically: 2 8 = 2*2*2*2*2*2*2*2 = 256 data representations 6/8/20 Paul D. Wiedemeier, Ph.D. 5 6/8/20 Paul D. Wiedemeier, Ph.D. 6

2 A group of 8 bits is called a Byte (B). That is, a byte of memory. A nibble of memory is 4 bits. Kilobyte (KB),024 (2 0 ) Bytes Commonly,000 Bytes 8,92 bits = 8 bits/byte *,024 Bytes A word of memory is 2 bytes or 4 bytes or 2 N bytes depending on the computer architecture used. 6/8/20 Paul D. Wiedemeier, Ph.D. 7 6/8/20 Paul D. Wiedemeier, Ph.D. 8 Megabyte (MB),024 (2 0 ) Kilobytes,048,576 (2 20 ) Bytes Commonly,000,000 Bytes 8,388,608 bits Gigabyte (GB),024 (2 0 ) Megabytes,048,576 (2 20 ) Kilobytes,073,74,824 (2 30 ) Bytes Commonly,000,000,000 Bytes 8,589,934,592 bits 6/8/20 Paul D. Wiedemeier, Ph.D. 9 6/8/20 Paul D. Wiedemeier, Ph.D. 0 Terabyte (TB),024 (2 0 ) Gigabytes,048,576 (2 20 ) Megabytes,073,74,824 (2 30 ) Kilobytes,099,5,627,776 (2 40 ) Bytes Commonly,000,000,000,000 Bytes * 0 2 bits Data Types 6/8/20 Paul D. Wiedemeier, Ph.D. 6/8/20 Paul D. Wiedemeier, Ph.D. 2 2

3 Data Types What types of data exist? Text, which includes Characters & Numbers Audio, Images/Graphics, and Video Each requires a unique binary file format in order to be processed by a computer. Data Type Text - Characters Text - Numbers Audio Images/Graphics Video Data Types File Format ASCII, EBCDIC, Unicode Unsigned Binary Integer Two s Complement Integer Binary Coded Decimal IEEE 754 Floating Point WAV, AU, MP3, etc. JPEG, GIV, TIFF, PNG, BMP, PDF, PostScript, TrueType, etc. QuickTime, MPEG-4, etc. 6/8/20 Paul D. Wiedemeier, Ph.D. 3 6/8/20 Paul D. Wiedemeier, Ph.D. 4 Since a byte can represent 256 (i.e. 2 8 ) unique pieces of data, the computer has the ability to represent textual character data. Digits 0-9 Uppercase and lowercase alphabet Foreign characters (i.e. umlauts and tilde) Special characters (i.e. punctuation marks) 6/8/20 Paul D. Wiedemeier, Ph.D. 5 6/8/20 Paul D. Wiedemeier, Ph.D. 6 The process of using a byte to represent character data is called encoding. Widely used encoding schemes include ASCII EBCDIC Unicode ASCII American Standard Code for Information Interchange 7 bit encoding scheme (e.g. 2 7 = 28 encodings) Of the three, ASCII is most popular because it is used primarily by personal computers. 6/8/20 Paul D. Wiedemeier, Ph.D. 7 6/8/20 Paul D. Wiedemeier, Ph.D. 8 3

4 EBCDIC How the character A is represented in ASCII Extended Binary Coded Decimal Interchange Code 8 bit encoding scheme (e.g. 2 8 = 256 encodings) ASCII A = The encoding scheme used primarily by IBM mainframe computers. 6/8/20 Paul D. Wiedemeier, Ph.D. 9 6/8/20 Paul D. Wiedemeier, Ph.D. 20 Data Encoding A Output Device The word DATA in ASCII A Main Memory Input Device /8/20 Paul D. Wiedemeier, Ph.D. 2 6/8/20 Paul D. Wiedemeier, Ph.D. 22 ASCII is a 7 bit encoding scheme. 28 possible data representation It can easily represent all characters, digits, etc. in the English language. EBCDIC is an 8 bit encoding scheme. 256 possible data representation. What about Foreign Languages? 8 bit encoding schemes won t work! Why? Unicode Three unique encodings: 8 bit - mathematically: 2 8 = 256 encodings 6 bit - mathematically: 2 6 = 65,536 encodings 32 bit - mathematically: 2 32 = 4,294,967,296 encodings Unicode can represent all the characters from all Earth languages. 6/8/20 Paul D. Wiedemeier, Ph.D. 23 6/8/20 Paul D. Wiedemeier, Ph.D. 24 4

5 Numeric Numeric ASCII, EBCDIC, and Unicode are encoding schemes used to represent character data. Problem + is not equivalent to 2 6/8/20 Paul D. Wiedemeier, Ph.D. 25 6/8/20 Paul D. Wiedemeier, Ph.D. 26 Numeric Unique representations exist for numeric data. Integer Representations Unsigned Binary ***Two s Compliment Binary*** Binary Coded Decimal Number Systems Floating Point Representation ***IEEE 754 Floating Point Standard*** 6/8/20 Paul D. Wiedemeier, Ph.D. 27 6/8/20 Paul D. Wiedemeier, Ph.D. 28 Number Systems The base of a number system indicated how many symbols are used. Each symbol in a specific number system has a value associated with it. Each position in a specific number system has a value associated with it. Number Systems Four commonly used computer system number systems include Decimal Binary Hexadecimal Octal Polynomial Representation 6/8/20 Paul D. Wiedemeier, Ph.D. 29 6/8/20 Paul D. Wiedemeier, Ph.D. 30 5

6 Decimal Number System Decimal Number System Base 0 Symbols (0,,2,3,4,5,6,7,8,9) 6/8/20 Paul D. Wiedemeier, Ph.D. 3 6/8/20 Paul D. Wiedemeier, Ph.D. 32 Decimal Number System Polynomial Representation 0th = (ones) st - 0 = 0 (tens) 2nd = 00 (hundreds) 3rd = 000 (thousands) and so on Decimal Number System 95 decimal 9*(0 ) + 5*(0 0 ) decimal decimal 95 decimal 6/8/20 Paul D. Wiedemeier, Ph.D. 33 6/8/20 Paul D. Wiedemeier, Ph.D. 34 Decimal Number System 243 decimal 2*(0 2 ) + 4*(0 ) + 3*(0 0 ) decimal decimal 243 decimal 6/8/20 Paul D. Wiedemeier, Ph.D. 35 6/8/20 Paul D. Wiedemeier, Ph.D. 36 6

7 Base 2 Symbols (0,) Polynomial Representation 0th 2 0 = st 2 = 2 2nd 2 2 = 4 3rd 2 3 = 8 and so on 6/8/20 Paul D. Wiedemeier, Ph.D. 37 6/8/20 Paul D. Wiedemeier, Ph.D binary 0*(2 0 ) decimal 0 decimal binary *(2 0 ) decimal decimal 6/8/20 Paul D. Wiedemeier, Ph.D. 39 6/8/20 Paul D. Wiedemeier, Ph.D binary *(2 ) + 0*(2 0 ) decimal decimal 2 decimal binary *(2 ) + *(2 0 ) decimal 2 + decimal 3 decimal 6/8/20 Paul D. Wiedemeier, Ph.D. 4 6/8/20 Paul D. Wiedemeier, Ph.D. 42 7

8 00 binary 0*(2 7 ) + *(2 6 ) + 0*(2 5 ) + *(2 4 ) + *(2 3 ) + *(2 2 ) + *(2 ) + *(2 0 ) decimal decimal 95 decimal 6/8/20 Paul D. Wiedemeier, Ph.D binary *(2 7 ) + *(2 6 ) + *(2 5 ) + *(2 4 ) + 0*(2 3 ) + 0*(2 2 ) + *(2 ) + *(2 0 ) decimal decimal 243 decimal 6/8/20 Paul D. Wiedemeier, Ph.D. 44 Decimal to Binary Conversion Decimal to Binary Conversion To convert a decimal number into its binary equivalent. Divide the decimal number by 2 2. The remainder will be a symbol in the binary number at a given position. 3. If the whole part of the division is not zero, then goto step. Otherwise stop. 6/8/20 Paul D. Wiedemeier, Ph.D. 45 6/8/20 Paul D. Wiedemeier, Ph.D. 46 Decimal to Binary Conversion Remainder 0 6/8/20 Paul D. Wiedemeier, Ph.D. 47 Least Significant Bit (Right-Most Bit) Decimal to Binary Conversion Remainder 6/8/20 Paul D. Wiedemeier, Ph.D Least Significant Bit (Right-Most Bit) 8

9 Hexadecimal Number System Hexadecimal Number System Base 6 Symbols (0,,2,3,4,5,6,7,8,9,A,B,C,D,E,F) 6/8/20 Paul D. Wiedemeier, Ph.D. 49 6/8/20 Paul D. Wiedemeier, Ph.D. 50 Hexadecimal Number System Hexadecimal Number System Polynomial Representation 0th 6 0 = st 6 = 6 2nd 6 2 = 256 3rd 6 3 = 4096 and so on Binary Decimal Hex Binary Decimal Hex A 0 B 00 2 C 0 3 D 0 4 E 5 F 6/8/20 Paul D. Wiedemeier, Ph.D. 5 6/8/20 Paul D. Wiedemeier, Ph.D. 52 Hexadecimal Number System 5F hex 5*(6 ) + 5*(6 0 ) decimal decimal 95 decimal Hexadecimal Number System F3 hex 5*(6 ) + 3*(6 0 ) decimal decimal 243 decimal 6/8/20 Paul D. Wiedemeier, Ph.D. 53 6/8/20 Paul D. Wiedemeier, Ph.D. 54 9

10 Hexadecimal Number System 49 hex 4*(6 ) + 9*(6 0 ) decimal decimal 73 decimal Hexadecimal Number System FA hex 5*(6 ) + 0*(6 0 ) decimal decimal 250 decimal 6/8/20 Paul D. Wiedemeier, Ph.D. 55 6/8/20 Paul D. Wiedemeier, Ph.D. 56 Decimal to Binary Conversion Decimal to Hex Conversion To convert a decimal number into its hexadecimal equivalent. Divide the decimal number by 6 2. The remainder will be a symbol in the hex number at a given position. 3. If the whole part of the division is not zero, then goto step. Otherwise stop. 6/8/20 Paul D. Wiedemeier, Ph.D. 57 6/8/20 Paul D. Wiedemeier, Ph.D. 58 Decimal to Hex Conversion Decimal to Hex Conversion Remainder 5 5 Remainder 5 F Least Significant (Right-Most) Remainder 5 3 Remainder F 3 Least Significant (Right-Most) 6/8/20 Paul D. Wiedemeier, Ph.D. 59 6/8/20 Paul D. Wiedemeier, Ph.D. 60 0

11 Binary to Hex Conversion Binary to Hex Conversion To convert a binary number into its hexadecimal equivalent. Starting with the least significant binary digit, group bits into groups of four (4) from right to left. 2. For each group of four (4) bits, convert them into their hexadecimal equivalent (see earlier table). 6/8/20 Paul D. Wiedemeier, Ph.D. 6 6/8/20 Paul D. Wiedemeier, Ph.D. 62 Binary to Hex Conversion 0 Binary to Hex Conversion F F3 6/8/20 Paul D. Wiedemeier, Ph.D. 63 6/8/20 Paul D. Wiedemeier, Ph.D. 64 Hex to Binary Conversion Hex to Binary Conversion To convert a binary number into its hexadecimal equivalent. Convert each hexadecimal symbol into its four (4) bit binary equivalent (see earlier table). 6/8/20 Paul D. Wiedemeier, Ph.D. 65 6/8/20 Paul D. Wiedemeier, Ph.D. 66

12 Hex to Binary Conversion 5F Hex to Binary Conversion F /8/20 Paul D. Wiedemeier, Ph.D. 67 6/8/20 Paul D. Wiedemeier, Ph.D. 68 Octal Number System Octal Number System Base 8 Symbols (0,,2,3,4,5,6,7) 6/8/20 Paul D. Wiedemeier, Ph.D. 69 6/8/20 Paul D. Wiedemeier, Ph.D. 70 Octal Number System Polynomial Representation 0th 8 0 = st 8 = 8 2nd 8 2 = 64 3rd 8 3 = 52 and so on Octal Number System Binary Decimal Octal /8/20 Paul D. Wiedemeier, Ph.D. 7 6/8/20 Paul D. Wiedemeier, Ph.D. 72 2

13 Octal Number System How would you convert the following? Decimal to Octal Octal to Decimal Converting Between Bases Octal to Binary Binary to Octal Octal to Hexadecimal Hexadecimal to Octal 6/8/20 Paul D. Wiedemeier, Ph.D. 73 6/8/20 Paul D. Wiedemeier, Ph.D. 74 Converting Between Bases Assume N is the number you wish to convert. If N is a decimal number, then. Divide the decimal number by the base you wish to obtain. 2. The remainder will be a symbol in the number at a given position. 3. If the whole part of the division is not zero, then goto step. Otherwise stop. 6/8/20 Paul D. Wiedemeier, Ph.D. 75 Converting Between Bases If N is a hexadecimal or octal number and you wish to obtain a binary number, then. Use the tables shown earlier, or better yet memorize the conversion values. If N is a hexadecimal or octal number and you wish to obtain a decimal number, then. Use polynomial representation. 6/8/20 Paul D. Wiedemeier, Ph.D. 76 Converting Between Bases If N is a hexadecimal or octal number and you wish to obtain an octal or hexadecimal number, then.convert the number to binary. Then, use the tables shown earlier to convert. Converting Between Bases If N is a binary number and you wish to obtain a hexadecimal or octal number, then.use the tables shown earlier, or better yet memorize the conversion values. 2.Of, convert the number to decimal. Then, use polynomial representation. 6/8/20 Paul D. Wiedemeier, Ph.D. 77 6/8/20 Paul D. Wiedemeier, Ph.D. 78 3

14 Converting Between Bases If N is a binary number and you wish to obtain a decimal number, then Converting Between Bases Hexadecimal. Use polynomial representation. Binary Decimal 2. Or Convert the binary number into a hexadecimal number (using tables or memory). Then, convert the hexadecimal number into a decimal number using polynomial representation. 6/8/20 Paul D. Wiedemeier, Ph.D. 79 Tables Polynomial Rep. Octal Base Division 6/8/20 Paul D. Wiedemeier, Ph.D. 80 4

Chapter 4: Computer Codes

Chapter 4: Computer Codes Slide 1/30 Learning Objectives In this chapter you will learn about: Computer data Computer codes: representation of data in binary Most commonly used computer codes Collating sequence 36 Slide 2/30 Data

More information

Counting in base 10, 2 and 16

Counting in base 10, 2 and 16 Counting in base 10, 2 and 16 1. Binary Numbers A super-important fact: (Nearly all) Computers store all information in the form of binary numbers. Numbers, characters, images, music files --- all of these

More information

Binary Representation. Number Systems. Base 10, Base 2, Base 16. Positional Notation. Conversion of Any Base to Decimal.

Binary Representation. Number Systems. Base 10, Base 2, Base 16. Positional Notation. Conversion of Any Base to Decimal. Binary Representation The basis of all digital data is binary representation. Binary - means two 1, 0 True, False Hot, Cold On, Off We must be able to handle more than just values for real world problems

More information

Base Conversion written by Cathy Saxton

Base Conversion written by Cathy Saxton Base Conversion written by Cathy Saxton 1. Base 10 In base 10, the digits, from right to left, specify the 1 s, 10 s, 100 s, 1000 s, etc. These are powers of 10 (10 x ): 10 0 = 1, 10 1 = 10, 10 2 = 100,

More information

Data Storage. Chapter 3. Objectives. 3-1 Data Types. Data Inside the Computer. After studying this chapter, students should be able to:

Data Storage. Chapter 3. Objectives. 3-1 Data Types. Data Inside the Computer. After studying this chapter, students should be able to: Chapter 3 Data Storage Objectives After studying this chapter, students should be able to: List five different data types used in a computer. Describe how integers are stored in a computer. Describe how

More information

Number Representation

Number Representation Number Representation CS10001: Programming & Data Structures Pallab Dasgupta Professor, Dept. of Computer Sc. & Engg., Indian Institute of Technology Kharagpur Topics to be Discussed How are numeric data

More information

To convert an arbitrary power of 2 into its English equivalent, remember the rules of exponential arithmetic:

To convert an arbitrary power of 2 into its English equivalent, remember the rules of exponential arithmetic: Binary Numbers In computer science we deal almost exclusively with binary numbers. it will be very helpful to memorize some binary constants and their decimal and English equivalents. By English equivalents

More information

Lecture 11: Number Systems

Lecture 11: Number Systems Lecture 11: Number Systems Numeric Data Fixed point Integers (12, 345, 20567 etc) Real fractions (23.45, 23., 0.145 etc.) Floating point such as 23. 45 e 12 Basically an exponent representation Any number

More information

Today s topics. Digital Computers. More on binary. Binary Digits (Bits)

Today s topics. Digital Computers. More on binary. Binary Digits (Bits) Today s topics! Binary Numbers! Brookshear.-.! Slides from Prof. Marti Hearst of UC Berkeley SIMS! Upcoming! Networks Interactive Introduction to Graph Theory http://www.utm.edu/cgi-bin/caldwell/tutor/departments/math/graph/intro

More information

2011, The McGraw-Hill Companies, Inc. Chapter 3

2011, The McGraw-Hill Companies, Inc. Chapter 3 Chapter 3 3.1 Decimal System The radix or base of a number system determines the total number of different symbols or digits used by that system. The decimal system has a base of 10 with the digits 0 through

More information

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012 CDA 3200 Digital Systems Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012 Outline Data Representation Binary Codes Why 6-3-1-1 and Excess-3? Data Representation (1/2) Each numbering

More information

Data Storage 3.1. Foundations of Computer Science Cengage Learning

Data Storage 3.1. Foundations of Computer Science Cengage Learning 3 Data Storage 3.1 Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: List five different data types used in a computer. Describe how

More information

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer Computers CMPT 125: Lecture 1: Understanding the Computer Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 3, 2009 A computer performs 2 basic functions: 1.

More information

Oct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8

Oct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8 ECE Department Summer LECTURE #5: Number Systems EEL : Digital Logic and Computer Systems Based on lecture notes by Dr. Eric M. Schwartz Decimal Number System: -Our standard number system is base, also

More information

EE 261 Introduction to Logic Circuits. Module #2 Number Systems

EE 261 Introduction to Logic Circuits. Module #2 Number Systems EE 261 Introduction to Logic Circuits Module #2 Number Systems Topics A. Number System Formation B. Base Conversions C. Binary Arithmetic D. Signed Numbers E. Signed Arithmetic F. Binary Codes Textbook

More information

Binary Representation

Binary Representation Binary Representation The basis of all digital data is binary representation. Binary - means two 1, 0 True, False Hot, Cold On, Off We must tbe able to handle more than just values for real world problems

More information

Memory is implemented as an array of electronic switches

Memory is implemented as an array of electronic switches Memory Structure Memory is implemented as an array of electronic switches Each switch can be in one of two states 0 or 1, on or off, true or false, purple or gold, sitting or standing BInary digits (bits)

More information

plc numbers - 13.1 Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

plc numbers - 13.1 Encoded values; BCD and ASCII Error detection; parity, gray code and checksums plc numbers - 3. Topics: Number bases; binary, octal, decimal, hexadecimal Binary calculations; s compliments, addition, subtraction and Boolean operations Encoded values; BCD and ASCII Error detection;

More information

CS101 Lecture 11: Number Systems and Binary Numbers. Aaron Stevens 14 February 2011

CS101 Lecture 11: Number Systems and Binary Numbers. Aaron Stevens 14 February 2011 CS101 Lecture 11: Number Systems and Binary Numbers Aaron Stevens 14 February 2011 1 2 1 3!!! MATH WARNING!!! TODAY S LECTURE CONTAINS TRACE AMOUNTS OF ARITHMETIC AND ALGEBRA PLEASE BE ADVISED THAT CALCULTORS

More information

The use of binary codes to represent characters

The use of binary codes to represent characters The use of binary codes to represent characters Teacher s Notes Lesson Plan x Length 60 mins Specification Link 2.1.4/hi Character Learning objective (a) Explain the use of binary codes to represent characters

More information

Section 1.4 Place Value Systems of Numeration in Other Bases

Section 1.4 Place Value Systems of Numeration in Other Bases Section.4 Place Value Systems of Numeration in Other Bases Other Bases The Hindu-Arabic system that is used in most of the world today is a positional value system with a base of ten. The simplest reason

More information

CSI 333 Lecture 1 Number Systems

CSI 333 Lecture 1 Number Systems CSI 333 Lecture 1 Number Systems 1 1 / 23 Basics of Number Systems Ref: Appendix C of Deitel & Deitel. Weighted Positional Notation: 192 = 2 10 0 + 9 10 1 + 1 10 2 General: Digit sequence : d n 1 d n 2...

More information

Levent EREN levent.eren@ieu.edu.tr A-306 Office Phone:488-9882 INTRODUCTION TO DIGITAL LOGIC

Levent EREN levent.eren@ieu.edu.tr A-306 Office Phone:488-9882 INTRODUCTION TO DIGITAL LOGIC Levent EREN levent.eren@ieu.edu.tr A-306 Office Phone:488-9882 1 Number Systems Representation Positive radix, positional number systems A number with radix r is represented by a string of digits: A n

More information

Useful Number Systems

Useful Number Systems Useful Number Systems Decimal Base = 10 Digit Set = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} Binary Base = 2 Digit Set = {0, 1} Octal Base = 8 = 2 3 Digit Set = {0, 1, 2, 3, 4, 5, 6, 7} Hexadecimal Base = 16 = 2

More information

Systems I: Computer Organization and Architecture

Systems I: Computer Organization and Architecture Systems I: Computer Organization and Architecture Lecture 2: Number Systems and Arithmetic Number Systems - Base The number system that we use is base : 734 = + 7 + 3 + 4 = x + 7x + 3x + 4x = x 3 + 7x

More information

Unsigned Conversions from Decimal or to Decimal and other Number Systems

Unsigned Conversions from Decimal or to Decimal and other Number Systems Page 1 of 5 Unsigned Conversions from Decimal or to Decimal and other Number Systems In all digital design, analysis, troubleshooting, and repair you will be working with binary numbers (or base 2). It

More information

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance What You Will Learn... Computers Are Your Future Chapter 6 Understand how computers represent data Understand the measurements used to describe data transfer rates and data storage capacity List the components

More information

Cloud storage Megas, Gigas and Teras

Cloud storage Megas, Gigas and Teras Cloud storage Megas, Gigas and Teras I think that I need cloud storage. I have photos, videos, music and documents on my computer that I can only retrieve from my computer. If my computer got struck by

More information

MEMORY STORAGE CALCULATIONS. Professor Jonathan Eckstein (adapted from a document due to M. Sklar and C. Iyigun)

MEMORY STORAGE CALCULATIONS. Professor Jonathan Eckstein (adapted from a document due to M. Sklar and C. Iyigun) 1/29/2007 Calculations Page 1 MEMORY STORAGE CALCULATIONS Professor Jonathan Eckstein (adapted from a document due to M. Sklar and C. Iyigun) An important issue in the construction and maintenance of information

More information

Numbering Systems. InThisAppendix...

Numbering Systems. InThisAppendix... G InThisAppendix... Introduction Binary Numbering System Hexadecimal Numbering System Octal Numbering System Binary Coded Decimal (BCD) Numbering System Real (Floating Point) Numbering System BCD/Binary/Decimal/Hex/Octal

More information

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX Multiple Choice: 1. Processing information involves: A. accepting information from the outside world. B. communication with another computer. C. performing arithmetic

More information

The Hexadecimal Number System and Memory Addressing

The Hexadecimal Number System and Memory Addressing APPENDIX C The Hexadecimal Number System and Memory Addressing U nderstanding the number system and the coding system that computers use to store data and communicate with each other is fundamental to

More information

Computer Logic (2.2.3)

Computer Logic (2.2.3) Computer Logic (2.2.3) Distinction between analogue and discrete processes and quantities. Conversion of analogue quantities to digital form. Using sampling techniques, use of 2-state electronic devices

More information

Binary, Hexadecimal, Octal, and BCD Numbers

Binary, Hexadecimal, Octal, and BCD Numbers 23CH_PHCalter_TMSETE_949118 23/2/2007 1:37 PM Page 1 Binary, Hexadecimal, Octal, and BCD Numbers OBJECTIVES When you have completed this chapter, you should be able to: Convert between binary and decimal

More information

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory. 1 Topics Machine Architecture and Number Systems Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting from Decimal to Binary Major Computer Components

More information

Chapter 2: Basics on computers and digital information coding. A.A. 2012-2013 Information Technology and Arts Organizations

Chapter 2: Basics on computers and digital information coding. A.A. 2012-2013 Information Technology and Arts Organizations Chapter 2: Basics on computers and digital information coding Information Technology and Arts Organizations 1 Syllabus (1/3) 1. Introduction on Information Technologies (IT) and Cultural Heritage (CH)

More information

6 3 4 9 = 6 10 + 3 10 + 4 10 + 9 10

6 3 4 9 = 6 10 + 3 10 + 4 10 + 9 10 Lesson The Binary Number System. Why Binary? The number system that you are familiar with, that you use every day, is the decimal number system, also commonly referred to as the base- system. When you

More information

The string of digits 101101 in the binary number system represents the quantity

The string of digits 101101 in the binary number system represents the quantity Data Representation Section 3.1 Data Types Registers contain either data or control information Control information is a bit or group of bits used to specify the sequence of command signals needed for

More information

Encoding Text with a Small Alphabet

Encoding Text with a Small Alphabet Chapter 2 Encoding Text with a Small Alphabet Given the nature of the Internet, we can break the process of understanding how information is transmitted into two components. First, we have to figure out

More information

lesson 1 An Overview of the Computer System

lesson 1 An Overview of the Computer System essential concepts lesson 1 An Overview of the Computer System This lesson includes the following sections: The Computer System Defined Hardware: The Nuts and Bolts of the Machine Software: Bringing the

More information

Computer Science 281 Binary and Hexadecimal Review

Computer Science 281 Binary and Hexadecimal Review Computer Science 281 Binary and Hexadecimal Review 1 The Binary Number System Computers store everything, both instructions and data, by using many, many transistors, each of which can be in one of two

More information

Cyber Security Workshop Encryption Reference Manual

Cyber Security Workshop Encryption Reference Manual Cyber Security Workshop Encryption Reference Manual May 2015 Basic Concepts in Encoding and Encryption Binary Encoding Examples Encryption Cipher Examples 1 P a g e Encoding Concepts Binary Encoding Basics

More information

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit. Objectives The Central Processing Unit: What Goes on Inside the Computer Chapter 4 Identify the components of the central processing unit and how they work together and interact with memory Describe how

More information

Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture - 04 Digital Logic II May, I before starting the today s lecture

More information

Chapter 2. Binary Values and Number Systems

Chapter 2. Binary Values and Number Systems Chapter 2 Binary Values and Number Systems Numbers Natural numbers, a.k.a. positive integers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative numbers A

More information

HOMEWORK # 2 SOLUTIO

HOMEWORK # 2 SOLUTIO HOMEWORK # 2 SOLUTIO Problem 1 (2 points) a. There are 313 characters in the Tamil language. If every character is to be encoded into a unique bit pattern, what is the minimum number of bits required to

More information

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System? Management Challenge Managing Hardware Assets What computer processing and storage capability does our organization need to handle its information and business transactions? What arrangement of computers

More information

ASCII Code. Numerous codes were invented, including Émile Baudot's code (known as Baudot

ASCII Code. Numerous codes were invented, including Émile Baudot's code (known as Baudot ASCII Code Data coding Morse code was the first code used for long-distance communication. Samuel F.B. Morse invented it in 1844. This code is made up of dots and dashes (a sort of binary code). It was

More information

Solution for Homework 2

Solution for Homework 2 Solution for Homework 2 Problem 1 a. What is the minimum number of bits that are required to uniquely represent the characters of English alphabet? (Consider upper case characters alone) The number of

More information

Data Storage: Each time you create a variable in memory, a certain amount of memory is allocated for that variable based on its data type (or class).

Data Storage: Each time you create a variable in memory, a certain amount of memory is allocated for that variable based on its data type (or class). Data Storage: Computers are made of many small parts, including transistors, capacitors, resistors, magnetic materials, etc. Somehow they have to store information in these materials both temporarily (RAM,

More information

Number Systems. Introduction / Number Systems

Number Systems. Introduction / Number Systems Number Systems Introduction / Number Systems Data Representation Data representation can be Digital or Analog In Analog representation values are represented over a continuous range In Digital representation

More information

CPEN 214 - Digital Logic Design Binary Systems

CPEN 214 - Digital Logic Design Binary Systems CPEN 4 - Digital Logic Design Binary Systems C. Gerousis Digital Design 3 rd Ed., Mano Prentice Hall Digital vs. Analog An analog system has continuous range of values A mercury thermometer Vinyl records

More information

Digital Logic Design. Introduction

Digital Logic Design. Introduction Digital Logic Design Introduction A digital computer stores data in terms of digits (numbers) and proceeds in discrete steps from one state to the next. The states of a digital computer typically involve

More information

Introduction to Computer & Information Systems

Introduction to Computer & Information Systems Introduction to Computer & Information Systems Binnur Kurt kurt@ce.itu.edu.tr Istanbul Technical University Computer Engineering Department Copyleft 2005 1 Version 0.1 About the Lecturer BSc İTÜ, Computer

More information

Chapter 7 Lab - Decimal, Binary, Octal, Hexadecimal Numbering Systems

Chapter 7 Lab - Decimal, Binary, Octal, Hexadecimal Numbering Systems Chapter 7 Lab - Decimal, Binary, Octal, Hexadecimal Numbering Systems This assignment is designed to familiarize you with different numbering systems, specifically: binary, octal, hexadecimal (and decimal)

More information

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O Chapter 3: Computer Hardware Components: CPU, Memory, and I/O What is the typical configuration of a computer sold today? The Computer Continuum 1-1 Computer Hardware Components In this chapter: How did

More information

Digital codes. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Digital codes. Resources and methods for learning about these subjects (list a few here, in preparation for your research): Digital codes This worksheet and all related files are licensed under the Creative Commons Attribution License, version 1.0. To view a copy of this license, visit http://creativecommons.org/licenses/by/1.0/,

More information

Chapter Binary, Octal, Decimal, and Hexadecimal Calculations

Chapter Binary, Octal, Decimal, and Hexadecimal Calculations Chapter 5 Binary, Octal, Decimal, and Hexadecimal Calculations This calculator is capable of performing the following operations involving different number systems. Number system conversion Arithmetic

More information

STUDY GUIDE CHAPTER 1

STUDY GUIDE CHAPTER 1 STUDY GUIDE CHAPTER 1 True/False Indicate whether the statement is true or false. 1. Digital technology has made it easy to produce copies of music with no loss of quality from the original. 2. Free source

More information

Number Conversions Dr. Sarita Agarwal (Acharya Narendra Dev College,University of Delhi)

Number Conversions Dr. Sarita Agarwal (Acharya Narendra Dev College,University of Delhi) Conversions Dr. Sarita Agarwal (Acharya Narendra Dev College,University of Delhi) INTRODUCTION System- A number system defines a set of values to represent quantity. We talk about the number of people

More information

HOW TO BECOME AN ESI HERO

HOW TO BECOME AN ESI HERO HOW TO BECOME AN ESI HERO taking the mystery out of ediscovery www.fxhnd.com info@fxhnd.com Electronically Stored Information Boo! But why do I have to learn about all this technology? It s how we communicate

More information

Zeros, Ones, and the Morse Code

Zeros, Ones, and the Morse Code Zeros, Ones, and the Morse Code Subject Area(s) Associated Unit Associated Lesson Activity Title Header Number & operations, science & technology None None Zeros, Ones, and the Morse Code Insert image

More information

Computer Basics: Chapters 1 & 2

Computer Basics: Chapters 1 & 2 Computer Basics: Chapters 1 & 2 Definition of a Computer What does IPOS stand for? Input Process Output Storage Other types of Computers Name some examples of other types of computers, other than a typical

More information

The Answer to the 14 Most Frequently Asked Modbus Questions

The Answer to the 14 Most Frequently Asked Modbus Questions Modbus Frequently Asked Questions WP-34-REV0-0609-1/7 The Answer to the 14 Most Frequently Asked Modbus Questions Exactly what is Modbus? Modbus is an open serial communications protocol widely used in

More information

LSN 2 Number Systems. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

LSN 2 Number Systems. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology LSN 2 Number Systems Department of Engineering Technology LSN 2 Decimal Number System Decimal number system has 10 digits (0-9) Base 10 weighting system... 10 5 10 4 10 3 10 2 10 1 10 0. 10-1 10-2 10-3

More information

1. Give the 16 bit signed (twos complement) representation of the following decimal numbers, and convert to hexadecimal:

1. Give the 16 bit signed (twos complement) representation of the following decimal numbers, and convert to hexadecimal: Exercises 1 - number representations Questions 1. Give the 16 bit signed (twos complement) representation of the following decimal numbers, and convert to hexadecimal: (a) 3012 (b) - 435 2. For each of

More information

Discovering Computers 2011. Living in a Digital World

Discovering Computers 2011. Living in a Digital World Discovering Computers 2011 Living in a Digital World Objectives Overview Differentiate among various styles of system units on desktop computers, notebook computers, and mobile devices Identify chips,

More information

3. Convert a number from one number system to another

3. Convert a number from one number system to another 3. Convert a number from one number system to another Conversion between number bases: Hexa (16) Decimal (10) Binary (2) Octal (8) More Interest Way we need conversion? We need decimal system for real

More information

2 Number Systems. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to:

2 Number Systems. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to: 2 Number Systems 2.1 Source: Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: Understand the concept of number systems. Distinguish

More information

Bachelors of Computer Application Programming Principle & Algorithm (BCA-S102T)

Bachelors of Computer Application Programming Principle & Algorithm (BCA-S102T) Unit- I Introduction to c Language: C is a general-purpose computer programming language developed between 1969 and 1973 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating

More information

Data Storage. 1s and 0s

Data Storage. 1s and 0s Data Storage As mentioned, computer science involves the study of algorithms and getting machines to perform them before we dive into the algorithm part, let s study the machines that we use today to do

More information

Chapter 4 System Unit Components. Discovering Computers 2012. Your Interactive Guide to the Digital World

Chapter 4 System Unit Components. Discovering Computers 2012. Your Interactive Guide to the Digital World Chapter 4 System Unit Components Discovering Computers 2012 Your Interactive Guide to the Digital World Objectives Overview Differentiate among various styles of system units on desktop computers, notebook

More information

Binary Numbers. Binary Octal Hexadecimal

Binary Numbers. Binary Octal Hexadecimal Binary Numbers Binary Octal Hexadecimal Binary Numbers COUNTING SYSTEMS UNLIMITED... Since you have been using the 10 different digits 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 all your life, you may wonder how

More information

CHAPTER 5. Obfuscation is a process of converting original data into unintelligible data. It

CHAPTER 5. Obfuscation is a process of converting original data into unintelligible data. It CHAPTER 5 5.1. Introduction Obfuscation is a process of converting original data into unintelligible data. It is similar to encryption but it uses mathematical calculations or programming logics. Encryption

More information

ELECTRONIC DOCUMENT IMAGING

ELECTRONIC DOCUMENT IMAGING AIIM: Association for Information and Image Management. Trade association and professional society for the micrographics, optical disk and electronic image management markets. Algorithm: Prescribed set

More information

The programming language C. sws1 1

The programming language C. sws1 1 The programming language C sws1 1 The programming language C invented by Dennis Ritchie in early 1970s who used it to write the first Hello World program C was used to write UNIX Standardised as K&C (Kernighan

More information

Chapter 5. Binary, octal and hexadecimal numbers

Chapter 5. Binary, octal and hexadecimal numbers Chapter 5. Binary, octal and hexadecimal numbers A place to look for some of this material is the Wikipedia page http://en.wikipedia.org/wiki/binary_numeral_system#counting_in_binary Another place that

More information

The Central Processing Unit:

The Central Processing Unit: The Central Processing Unit: What Goes on Inside the Computer Chapter 4 Objectives Identify the components of the central processing unit and how they work together and interact with memory Describe how

More information

CSCA0102 IT & Business Applications. Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global

CSCA0102 IT & Business Applications. Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global CSCA0102 IT & Business Applications Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global Chapter 2 Data Storage Concepts System Unit The system unit

More information

The science of computing

The science of computing The science of computing first edition by Carl Burch Copyright c 2004, by Carl Burch. This publication may be redistributed, in part or in whole, provided that this page is included. A complete version,

More information

AQA GCSE in Computer Science Computer Science Microsoft IT Academy Mapping

AQA GCSE in Computer Science Computer Science Microsoft IT Academy Mapping AQA GCSE in Computer Science Computer Science Microsoft IT Academy Mapping 3.1.1 Constants, variables and data types Understand what is mean by terms data and information Be able to describe the difference

More information

Chapter 1: Digital Systems and Binary Numbers

Chapter 1: Digital Systems and Binary Numbers Chapter 1: Digital Systems and Binary Numbers Digital age and information age Digital computers general purposes many scientific, industrial and commercial applications Digital systems telephone switching

More information

Goals. Unary Numbers. Decimal Numbers. 3,148 is. 1000 s 100 s 10 s 1 s. Number Bases 1/12/2009. COMP370 Intro to Computer Architecture 1

Goals. Unary Numbers. Decimal Numbers. 3,148 is. 1000 s 100 s 10 s 1 s. Number Bases 1/12/2009. COMP370 Intro to Computer Architecture 1 Number Bases //9 Goals Numbers Understand binary and hexadecimal numbers Be able to convert between number bases Understand binary fractions COMP37 Introduction to Computer Architecture Unary Numbers Decimal

More information

Digital Design. Assoc. Prof. Dr. Berna Örs Yalçın

Digital Design. Assoc. Prof. Dr. Berna Örs Yalçın Digital Design Assoc. Prof. Dr. Berna Örs Yalçın Istanbul Technical University Faculty of Electrical and Electronics Engineering Office Number: 2318 E-mail: siddika.ors@itu.edu.tr Grading 1st Midterm -

More information

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1 UNIT 22: PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1 This work covers part of outcome 2 of the Edexcel standard module. The material is

More information

Numeral Systems. The number twenty-five can be represented in many ways: Decimal system (base 10): 25 Roman numerals:

Numeral Systems. The number twenty-five can be represented in many ways: Decimal system (base 10): 25 Roman numerals: Numeral Systems Which number is larger? 25 8 We need to distinguish between numbers and the symbols that represent them, called numerals. The number 25 is larger than 8, but the numeral 8 above is larger

More information

CSC4510 AUTOMATA 2.1 Finite Automata: Examples and D efinitions Definitions

CSC4510 AUTOMATA 2.1 Finite Automata: Examples and D efinitions Definitions CSC45 AUTOMATA 2. Finite Automata: Examples and Definitions Finite Automata: Examples and Definitions A finite automaton is a simple type of computer. Itsoutputislimitedto yes to or no. It has very primitive

More information

CS201: Architecture and Assembly Language

CS201: Architecture and Assembly Language CS201: Architecture and Assembly Language Lecture Three Brendan Burns CS201: Lecture Three p.1/27 Arithmetic for computers Previously we saw how we could represent unsigned numbers in binary and how binary

More information

Definition of Computers. INTRODUCTION to COMPUTERS. Historical Development ENIAC

Definition of Computers. INTRODUCTION to COMPUTERS. Historical Development ENIAC Definition of Computers INTRODUCTION to COMPUTERS Bülent Ecevit University Department of Environmental Engineering A general-purpose machine that processes data according to a set of instructions that

More information

Decimal to Binary Conversion

Decimal to Binary Conversion Decimal to Binary Conversion A tool that makes the conversion of decimal values to binary values simple is the following table. The first row is created by counting right to left from one to eight, for

More information

I PUC - Computer Science. Practical s Syllabus. Contents

I PUC - Computer Science. Practical s Syllabus. Contents I PUC - Computer Science Practical s Syllabus Contents Topics 1 Overview Of a Computer 1.1 Introduction 1.2 Functional Components of a computer (Working of each unit) 1.3 Evolution Of Computers 1.4 Generations

More information

NUMBER SYSTEMS APPENDIX D. You will learn about the following in this appendix:

NUMBER SYSTEMS APPENDIX D. You will learn about the following in this appendix: APPENDIX D NUMBER SYSTEMS You will learn about the following in this appendix: The four important number systems in computing binary, octal, decimal, and hexadecimal. A number system converter program

More information

COMPSCI 210. Binary Fractions. Agenda & Reading

COMPSCI 210. Binary Fractions. Agenda & Reading COMPSCI 21 Binary Fractions Agenda & Reading Topics: Fractions Binary Octal Hexadecimal Binary -> Octal, Hex Octal -> Binary, Hex Decimal -> Octal, Hex Hex -> Binary, Octal Animation: BinFrac.htm Example

More information

THE BINARY NUMBER SYSTEM

THE BINARY NUMBER SYSTEM THE BINARY NUMBER SYSTEM Dr. Robert P. Webber, Longwood University Our civilization uses the base 10 or decimal place value system. Each digit in a number represents a power of 10. For example, 365.42

More information

Data Representation. What is a number? Decimal Representation. Interpreting bits to give them meaning. Part 1: Numbers. six seis

Data Representation. What is a number? Decimal Representation. Interpreting bits to give them meaning. Part 1: Numbers. six seis Data Representation Interpreting bits to give them meaning Part 1: Numbers Notes for CSC 100 - The Beauty and Joy of Computing The University of North Carolina at Greensboro What is a number? Question:

More information

winhex Disk Editor, RAM Editor PRESENTED BY: OMAR ZYADAT and LOAI HATTAR

winhex Disk Editor, RAM Editor PRESENTED BY: OMAR ZYADAT and LOAI HATTAR winhex Disk Editor, RAM Editor PRESENTED BY: OMAR ZYADAT and LOAI HATTAR Supervised by : Dr. Lo'ai Tawalbeh New York Institute of Technology (NYIT)-Jordan X-Ways Software Technology AG is a stock corporation

More information

Representação de Caracteres

Representação de Caracteres Representação de Caracteres IFBA Instituto Federal de Educ. Ciencia e Tec Bahia Curso de Analise e Desenvolvimento de Sistemas Introdução à Ciência da Computação Prof. Msc. Antonio Carlos Souza Coletânea

More information

Computer Science PLUS I Volume 1 : Concepts Government of Tamilnadu

Computer Science PLUS I Volume 1 : Concepts Government of Tamilnadu Computer Science PLUS I Volume 1 : Concepts Government of Tamilnadu Government of Tamilnadu First Edition 2005 Chairman Syllabus Committee Dr. Balagurusamy E, Vice Chancellor, Anna University, Chennai

More information

Count the Dots Binary Numbers

Count the Dots Binary Numbers Activity 1 Count the Dots Binary Numbers Summary Data in computers is stored and transmitted as a series of zeros and ones. How can we represent words and numbers using just these two symbols? Curriculum

More information