©Brooks/Cole, 2003 Chapter 2 Data Representation.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

Information Representation
DATA REPRESENTATION CONVERSION.
©Brooks/Cole, 2003 Chapter 4 Operations on Bits. ©Brooks/Cole, 2003 Apply arithmetic operations on bits when the integer is represented in two’s complement.
©Brooks/Cole, 2003 Chapter 3 Number Representation.
Data Representation in Computers
Number Representation Rizwan Rehman, CCS, DU. Convert a number from decimal to binary notation and vice versa. Understand the different representations.
Chapter 1 Number Systems and Codes William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper Saddle.
2.1 2 Number Systems Foundations of Computer Science  Cengage Learning.
Number Systems and Codes In PLC
COMPUTER FUNDAMENTALS David Samuel Bhatti
©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,
Lecture 5.
Chapter 3 Number Representation. Convert a number from decimal 、 hexadecimal,octal to binary notation and vice versa. Understand the different representations.
1 CSC103: Introduction to Computer and Programming Lecture No 2.
Representing Nonnumeric Data Everything is really a number.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
D ATA REPRESENTATION, BINARY SYSTEM, B IT, B YTE, ASCII C ODE Chapter 3 Mr.Mohammed Rahmath.
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
1 Foundations of Computer Science Chapter 2 Data Representation.
HOW COMPUTERS MANIPULATE DATA Chapter 1 Coming up: Analog vs. Digital.
Chapter 1 Introduction to Computers Maran Illustrated Computers CIS
©Brooks/Cole, 2003 Chapter 2 Data Representation.
What is a computer? A computer is a device that:
©Brooks/Cole, 2003 Chapter 3 Number Representation.
Chapter 3 Number Representation. Convert a number from decimal to binary notation and vice versa. Understand the different representations of an integer.
Chapter 7—Objects and Memory The Art and Science of An Introduction to Computer Science ERIC S. ROBERTS Java Objects and Memory C H A P T E R 7 Yea, from.
Positional Notation 642 in base 10 positional notation is:
CISC1100: Binary Numbers Fall 2014, Dr. Zhang 1. Numeral System 2  A way for expressing numbers, using symbols in a consistent manner.  " 11 " can be.
CPIT 201 Introduction to Computing
1 COMS 161 Introduction to Computing Title: The Digital Domain Date: September 6, 2004 Lecture Number: 6.
Chapter 2 Data Representation.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Data Representation, Number Systems and Base Conversions
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
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.
MODULE –I NUMBER SYSTEM Digital Design Amit Kumar Assistant Professor SCSE, Galgotias University, Greater Noida.
Data Representation.
Computer Studies Today Chapter 19 1 Chapter 19. Computer Studies Today Chapter 19 2 »Information stored in a computer is in two states: –ON –OFF.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
CPIT 201 King AbdulAziz University Faculty of Computing & Information Technology Information Technology Department CH 2 Number Systems CPIT 201 Introduction.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
1 Section 1.3 Binary Number Systems Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Some basic concepts underlying computer archi­tecture
Appendix F Number Systems binary 0, 1 0, 1, 2, 3, 4, 5, 6, 7
Number Systems and Codes
What is a byte? What is it? How would you use it?
Lecture 3: Binary values and number systems
Chapter 3 Data Storage.
Number Systems Lab session 1 Xuan Guo.
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Representing Nonnumeric Data
Number Systems and Codes
Ch2: Data Representation
Presenting information as bit patterns
Chapter 2 Data Representation.
Number Representation
Chapter 3 DataStorage Foundations of Computer Science ã Cengage Learning.
Data Representation Chapter 2 Computer HW (Von Neumann Model) Program
Storing Integers and Fractions
Learning Intention I will learn how computers store text.
Lecture 4 Number Systems. von Neumann Model Every computer today is based on the von Neumann Model. It is based on 3 ideas: 1.Four subsystems 2.Stored.
Chapter 3 - Binary Numbering System
Presentation transcript:

©Brooks/Cole, 2003 Chapter 2 Data Representation

©Brooks/Cole, 2003 Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images, video, and audio. After reading this chapter, the reader should be able to: O BJECTIVES Work with hexadecimal and octal notations.

©Brooks/Cole, 2003 DATA TYPES 2.1

©Brooks/Cole, 2003 Figure 2-1 Different types of data

©Brooks/Cole, 2003 The computer industry uses the term “multimedia” to define information that contains numbers, text, images, audio, and video. Note:

©Brooks/Cole, 2003 DATA INSIDE THE COMPUTER DATA INSIDE THE COMPUTER 2.2

©Brooks/Cole, 2003 Figure 2-2 Bit pattern

©Brooks/Cole, 2003 Figure 2-3 Examples of bit patterns

©Brooks/Cole, 2003 REPRESENTINGDATAREPRESENTINGDATA 2.3

Figure 2-4 Representing symbols using bit patterns

©Brooks/Cole, 2003 Table 2.1 Number of symbols and bit pattern length Number of Symbols Number of Symbols … … 65,536 Bit Pattern Length Bit Pattern Length … 7 8 … 16

©Brooks/Cole, 2003 ASCII-I Punctuations, Letters, Digits

©Brooks/Cole, 2003 ASCII-II Non-English and Special

©Brooks/Cole, 2003 Figure 2-5 Representation of the word “BYTE” in ASCII code

©Brooks/Cole, 2003 Figure 2-6 Image representation methods

©Brooks/Cole, 2003 Figure 2-7 Bitmap graphic method of a black-and-white image

©Brooks/Cole, 2003 Figure 2-8 Representation of color pixels

©Brooks/Cole, 2003 Figure 2-9 Audio representation

©Brooks/Cole, 2003 HEXADECIMALNOTATIONHEXADECIMALNOTATION 2.4

A 4-bit pattern can be represented by a hexadecimal digit, and vice versa. Note:

©Brooks/Cole, 2003 Table 2.2 Hexadecimal digits Bit Pattern Bit Pattern Hex Digit Hex Digit Bit Pattern Bit Pattern Hex Digit Hex Digit A B C D E F

©Brooks/Cole, 2003 Figure 2-10 Binary to hexadecimal and hexadecimal to binary transformation

©Brooks/Cole, 2003 Example 1 Show the hexadecimal equivalent of the bit pattern Solution Each group of 4 bits is translated to one hexadecimal digit. The equivalent is xCE2.

©Brooks/Cole, 2003 Example 2 Show the hexadecimal equivalent of the bit pattern Solution Divide the bit pattern into 4-bit groups (from the right). In this case, add two extra 0s at the left to make the number of bits divisible by 4. So you have , which is translated to x0E2.

©Brooks/Cole, 2003 Example 3 What is the bit pattern for x24C? Solution Write each hexadecimal digit as its equivalent bit pattern to get