Plan Attendance Files Posted on Campus Cruiser Homework Reminder

Slides:



Advertisements
Similar presentations
How to Convert Decimal Numbers to Binary EXAMPLES.
Advertisements

Technology ICT Option: Data Representation. Data Representation In our everyday lives, we communicate with each other using analogue data. This data takes.
1 Chapter 2 The Digital World. 2 Digital Data Representation.
The Binary Numbering Systems
How Computers Represent Numbers Friday, Week 5. Binary Code A series of 1’s and 0’s Place value is in powers of 2.
Connecting with Computer Science, 2e
Chapter 3 Data Representation.
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Chapter 3 Data Representation. Chapter goals Describe numbering systems and their use in data representation Compare and contrast various data representation.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Fourth Edition.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
©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,
Abstraction – Number Systems and Data Representation.
Lecture 5.
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Bits & Bytes: How Computers Represent Data
Topics Introduction Hardware and Software How Computers Store Data
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
Representing Nonnumeric Data Everything is really a number.
Transforming Data into Information.
Chapter 2 Computer Hardware
Shawlands Academy Higher Computing Data Representation.
Binary Arithmetic & Data representation
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
Chapter 3 Section 1 Number Representation Modern cryptographic methods, unlike the classical methods we just learned, are computer based. Representation.
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
Quiz # 1 Chapters 1,2, & 3.
Data Representation, Number Systems and Base Conversions
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
Data as the computer sees it 1.  Number systems Number systems  Data storage Data storage  Glossary Glossary 2.
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
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 Science I Storing data. Binary numbers. Classwork/homework: Catch up. Do analysis of image types.
Data Representation. How is data stored on a computer? Registers, main memory, etc. consists of grids of transistors Transistors are in one of two states,
Binary 101 Gads Hill School. Aim To strengthen understanding of how computers use the binary number system to store information.
 Computers are 2-state devices › Pulse – No pulse › On – Off  Represented by › 1 – 0  BINARY.
1 Section 1.3 Binary Number Systems Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Text and Images Key Revision Points.
Binary and Hard Disk PEOPLE Program
Computer Science: An Overview Eleventh Edition
Topics Introduction Hardware and Software How Computers Store Data
CSCI 198: Lecture 4: Data Representation
Chapter 1: Introduction to Computers and Programming
Chapter 3 Data Storage.
CSCI 161: Lecture 4: Data Representation
EPSII 59:006 Spring 2004.
Data Encoding Characters.
Representing Nonnumeric Data
Chapter 1: Introduction to Computers and Programming
Topics Introduction Hardware and Software How Computers Store Data
Ch2: Data Representation
The Building Blocks: Binary Numbers, Boolean Logic, and Gates
Topics Introduction Hardware and Software How Computers Store Data
Chapter 2 Data Representation.
C1 Number systems.
Digital Encodings.
How Computers Store Data
Chapter 3 DataStorage Foundations of Computer Science ã Cengage Learning.
Computer Organization
Option: Data Representation
Transforming Data into Information
Option: Data Representation
Networks & I/O Devices.
Lecture 36 – Unit 6 – Under the Hood Binary Encoding – Part 2
Presentation transcript:

Plan Attendance Files Posted on Campus Cruiser Homework Reminder Chapter 1: 1.1 - 1.4 Review Questions (Preparation for mini-quiz on Friday): pp.24 - 27 Exercises: (Preparation for mini-quiz on Friday): # 3, 4, 5, 6 Binary System History of Python Versions of Python

How Computers Store Data All data in a computer is stored in sequences of 0s and 1s Byte: just enough memory to store letter or small number Divided into eight bits Bit: electrical component that can hold positive or negative charge, like on/off switch The on/off pattern of bits in a byte represents data stored in the byte

Storing Numbers Bit represents two values, 0 and 1 Computers use binary numbering system Position of digit j is assigned the value 2j-1 To determine value of binary number sum position values of the 1s Byte size limits are 0 and 255 0 = all bits off; 255 = all bits on To store larger number, use several bytes

How to Convert Decimal to Binary Convert 37 to binary 128 64 32 16 8 4 2 1 128 doesn’t fit into 37 b7=0 64 doesn’t fit into 37 b6=0 32 fits into 37 b5=1 37 – 32 = 5, continue the process with 5 16 doesn’t fit into 5 b4=0 8 doesn’t fit into 5 b3=0 4 does fit into 5 b2=1

Convert 37 to Binary 128 64 32 16 8 4 2 1 128 doesn’t fit into 37 b7=0 128 64 32 16 8 4 2 1 128 doesn’t fit into 37 b7=0 64 doesn’t fit into 37 b6=0 32 fits into 37 b5=1 Subtract: 37 – 32 = 5 Continue the process with 5 16 doesn’t fit into 5 b4=0 8 doesn’t fit into 5 b3=0 4 does fit into 5 b2=1 Subtract: 5 - 4 = 1 Continue the process with 1 2 doesn’t fit into 1 b1=0 1 fits into 1 b0=1 00100101

Convert 37 to Binary - Second Method Divide by 2 and store the remainder 37/2=18 b0=1 18/2 =9 b1=0 9/2=4 b2=1 4/2=2 b3=0 2/2=1 b4=0 1/2=0 b5=1 Write remainders from bottom up and pad with leading 0’s to fill all 8 bits 00100101

Convert 259 to binary 259/2 = 129 b0=1 129/2 = 64 b1=1 64/2 = 32 b2=0 00000001 00000011 2 bytes are needed to store this number

Storing Characters Data stored in computer must be stored as binary number Characters are converted to numeric code, numeric code stored in memory Most important coding scheme is ASCII ASCII is limited: defines codes for only 128 characters Unicode coding scheme becoming standard Compatible with ASCII Can represent characters for other languages

Advanced Number Storage To store negative numbers and real numbers, computers use binary numbering and encoding schemes Negative numbers encoded using two’s complement Real numbers encoded using floating-point notation

Other Types of Data Digital: describes any device that stores data as binary numbers Digital images are composed of pixels To store images, each pixel is converted to a binary number representing the pixel’s color Digital music is composed of sections called samples To store music, each sample is converted to a binary number