Introduction to Computing CPSC 203 January 24, 2006 Heejin Lim Chapter 1 Chapter 2 (part of)

Slides:



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

1 Chapter 2 The Digital World. 2 Digital Data Representation.
Binary Representation Introduction to Computer Science and Programming I Chris Schmidt.
Introduction to Computer Engineering by Richard E. Haskell Number Systems Module M3.1 Sections
Information Processing
System Environment Part 1 The Register Level. Module Content “Systems environment” is a term used to describe the hardware and software structures which.
ES 84 Numerical Methods for Engineers, Mindanao State University- Iligan Institute of Technology Prof. Gevelyn B. Itao.
Computer Storage & Representing Numbers CE 311 K - Introduction to Computer Methods Daene C. McKinney.
Real Numbers and the Decimal Number System
Memory Terminology & Data Representation CSCI 1060 Fall 2006.
Numbering systems.
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,
1 Programming in Machine Language SCSC 311 Spring 2011.
Chapter 3 Section 1 Number Representation Modern cryptographic methods, unlike the classical methods we just learned, are computer based. Representation.
Number Systems What is the Standard Base we
Number Systems. Today Decimal Hexadecimal Binary –Unsigned Binary –1’s Complement Binary –2’s Complement Binary.
Lecture Binary and Hexadecimal Numbers. How Machines Think Computers handle two types of information: –Instructions –Data The "words" of a machine language.
6 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
Lesson 8 – Binary Numbers Computer Programming 12.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
CSNB374: Microprocessor Systems Chapter 1: Introduction to Microprocessor.
Chapter 2 Number Systems: Decimal, Binary, and Hex.
Data Representation Hexadecimal  Although computers work in binary it is sometimes inconvenient for humans to read everything in Binary. For example in.
Data Representation Bits, Bytes, Binary, Hexadecimal.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
CEC 220 Digital Circuit Design Number Systems & Conversions Friday, January 9 CEC 220 Digital Circuit Design Slide 1 of 16.
INFORMATION TECHNOLOGY
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Binary 101 Gads Hill School. Aim To strengthen understanding of how computers use the binary number system to store information.
CEC 220 Digital Circuit Design Number Systems & Conversions Wednesday, Aug 26 CEC 220 Digital Circuit Design Slide 1 of 16.
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.
 Computers are 2-state devices › Pulse – No pulse › On – Off  Represented by › 1 – 0  BINARY.
Binary numbers. Primary memory Memory = where programs and data are stored – Unit = bit “BIT” is a contraction for what two words? Either a 1 or a 0 (because.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
Understanding Computers
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
1 Digital Logic Design (41-135) Chapter 5 Number Representation & Arithmetic Circuits Younglok Kim Dept. of Electrical Engineering Sogang University Spring.
Prepared By: Norakmar Binti Mohd Nadzari CHAPTER 2 ARITHMETIC AND LOGIC UNIT.
© OCR 2016 Unit 2.6 Data Representation Lesson 1 ‒ Numbers.
Lecturer: Santokh Singh
Understanding binary Understanding Computers.
Chapter 3 - Binary Numbering System
Hexadecimal Sweet Sixteen!.
Computer Organisation
Unit 18: Computational Thinking
Programming in Machine Language
Integer Real Numbers Character Boolean Memory Address CPU Data Types
Bits & Bytes How Computers Represent Data
EPSII 59:006 Spring 2004.
Chapter 3 Data Representation
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
इंट्रस्टिंग बनने के लिए आपको इंट्रस्टेड होना पड़ेगा।
CSCI 161: Introduction to Programming
Binary Quiz UIN: ____________________
Principles of Computing – UFCFA Lecture-3
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Binary Lesson 3 Hexadecimal
Little Endian vs. Big Endian (Intel vs. Motorola)
Data Representation – Numbers
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Chapter Four Data Representation in Computers By Bezawit E.
Numeral systems (radix)
Binary System.
Binary Lesson 4 Hexadecimal and Binary Practice
Chapter 3 - Binary Numbering System
Presentation transcript:

Introduction to Computing CPSC 203 January 24, 2006 Heejin Lim Chapter 1 Chapter 2 (part of)

Block diagram of a typical computer Main memory Secondary memory

Memory in a computer is made up of a lot of switches, each of which can be ON or OFF. Each switch represents one binary digit (bit) A byte is a group of 8 bits, which is used to measure the capacity of a memory e.g.) 256 MB, 40 GB Computers work in Binary, that is "Base 2" arithmetic We normally work in Decimal (Base 10) arithmetic 101 = 1* * *10 0 = = 101 Binary number system

’s place 2’s place 4’s place 8’s place 2 3 * * *1 + 1*1 = = 11 (decimal)

We usually write binary in hexadecimal (hex) or "Base 16“ for simple representation. Each digit is exactly 4 bits. In hexadecimal, we need fifteen numbers to represent any number: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F e.g.) 560, AB, FF => to decimal = 5* * *16 0 AB 16 = 10* *1 = => ? => ? 2 On a 32 bit computer a cell is typically a word = 4 bytes (unit to represent a number). One byte is always 8 bits. Addresses (memory locations) are typically byte addresses.

Base 2 => Base can be written as which, from the table, equals D94F in hexadecimal (or 55,631 in decimal).

PROGRAM test ! Test program Integer:: i, j REAL:: x, y character:: a i = 4 j = 5 x = 4.5 y = 5.5 a = 'G' WRITE(*,*) i+j WRITE(*,*) x+y WRITE(*,*) a STOP END PROGRAM test Declaration Section Execution Section Termination Section