Data Types and Representation CS French Chapter 6 + Chapter 7 – Number Bases.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

Technology ICT Option: Data Representation. Data Representation In our everyday lives, we communicate with each other using analogue data. This data takes.
The Binary Numbering Systems
A digital system is a system that manipulates discrete elements of information represented internally in binary form. Digital computers –general purposes.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, Java Version, Third Edition.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Connecting with Computer Science, 2e
Introduction to Networking. Spring 2002Computer Network Applications Analog Devices Maintain an exact physical analog of (some form of) information. Ex:
Chapter 1 Data Storage. 2 Chapter 1: Data Storage 1.1 Bits and Their Storage 1.2 Main Memory 1.3 Mass Storage 1.4 Representing Information as Bit Patterns.
Chapter 2 : Business Information Business Data Communications, 4e.
SIMS-201 Representing Information in Binary. 2  Overview Chapter 3: The search for an appropriate code Bits as building blocks of information Binary.
Lesson 2 0x Coding ASCII Code.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
Data vs. Information OUTPUTOUTPUT Information Data PROCESSPROCESS INPUTINPUT There are 10 types of people in this world those who read binary and those.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Programmable Logic Controllers
CSC212 – Computer Organization and Design
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 1. Data Representation Data Representation – Why do we use binary? simplicity,
Chapter 2 Computer Hardware
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
Representation of data types. Introduction We are going to look at representing cardinal numbers, integers and real numbers in decimal, binary, octal.
Introduction to Computer Design CMPT 150 Section: D Ch. 1 Digital Computers and Information CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 1.
Information Representation. Digital Hardware Systems Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad range continuously.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
Analogue and Digital Signals SL – Option C.1 HL – Core 14.1.
CIS-325: Data Communications1 CIS-325 Data Communications Dr. L. G. Williams, Instructor.
1 Lect # 1 Binary Systems Digital vs. Analog Analog – a continuous range of values Digital – a discrete set of values –Like money –Can’t get smaller than.
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.
Computer Data Storage (Internal Representation) Fall 2011.
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
Data Representation, Number Systems and Base Conversions
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
Data Representation (in computer system). Data Representation How do computers represent data? b The computers are digital Recognize.
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
MECH1500 Chapter 3.
Chapter 1: Binary Systems
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,
Overview 1-1 Information Representation
Sampling and Digitisation. Digitisation Real-life images and sounds need to be digitised for computer representation. Turning an analogue or continuous.
DATA REPRESENTATION: SOUNDS GCSE Computing. Learning Objective ■ To understand how sounds are represented in Binary ■ To be able to convert a sound wave.
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
Pulse Code Modulation (PCM) Analog voice data must be translated into a series of binary digits before they can be transmitted. With Pulse Code Modulation.
Ch2 Number systems and codes
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
DATA Unit 2 Topic 2. Different Types of Data ASCII code: ASCII - The American Standard Code for Information Interchange is a standard seven-bit code that.
Binary and Hard Disk PEOPLE Program
Logic and Computer Design Fundamentals
Invitation to Computer Science, C++ Version, Fourth Edition
Chapter 3 - Binary Numbering System
Number Systems and Codes
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
CHAPTER 1 : INTRODUCTION
Information Support and Services
EPSII 59:006 Spring 2004.
Folders out, planners out…
CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS
SYEN 3330 Digital Systems Chapter 1 SYEN 3330 Digital Systems.
BEE1244 Digital System and Electronics BEE1244 Digital System and Electronic Chapter 2 Number Systems.
Chapter 1 Data Storage.
Number Systems and Codes
Introduction to Basic Digital Logic
Number Systems Lecture 2.
Chapter Four Data Representation in Computers By Bezawit E.
Option: Data Representation
Option: Data Representation
CHAPTER 69 NUMBER SYSTEMS AND CODES
Dr. Clincy Professor of CS
Presentation transcript:

Data Types and Representation CS French Chapter 6 + Chapter 7 – Number Bases

Data Processing Data eg ESB meter readings Maintained Data eg names, addresses, account numbers, last meter reading, amount already owed. Processing by Computer INFORMATION eg bills

Scientific Processing n Data n eg current weather conditions Processing by Computer Large amount of calculations of changes over small distances and time periods. INFORMATION description of tomorrow’s weather

Basic Data Types n Data is represented by the character set –0..9,a...z,A....Z, !”£$%.()~ etc n Character Types –Numeric –Alphabetic (upper and lower case) –Special n Data Types –Numeric »signed/unsigned integers, real, fised / floating point –Alphabetic –Alphanumeric

Data Representation for Computer Devices n Punched Paper tape (obsolete) a b c d e f g h i j k l m n o p This tape is using the ASCII coding system.

Binary Devices n Punched tape can be replaced by any device that contains items that can be set to any one of two positions.  Magnetic tape/disc –spots can be magnetised one direction NORTH or the other SOUTH  Transistors –Electronic switches that can be ON or OFF  Charged cells –An electronic device that can have a NEGATIVE or POSITIVE charge  Reflective surface (CD) –Spots on the disc may REFLECT a thin laser light or NOT REFLECT it n These devices are called Binary devices (or two state devices) because when writing the data on paper we can use the digits 1 and 0 to represent the two states. n A single piece of information is called a BIT (Binary digIT) –One item in the device is required to store a bit (a switch, a hole, a magnetic spot, a reflective spot etc.)

Some ASCII Codes Binary Code ASCII Character SPACE!67ABa How many possible characters can be represented with 8 bits?

Data Transmission 1v5v Could you use this electrical circuit and the ASCII code system to send a message? Use the 5 volt position to represent 1 and the 1 volt position to represent 0. The person at the other end will see a series of bright and dim lights which can be interpreted as ones and zeros and which can then be translated into characters using the ASCII table. Why is the 0 volt position in the switch necessary? If you are transmitting 2 ones or zeros consecutively you can momentarily switch the light off to distinguish between them. Or if you used 0 volts to represent 0 you wouldn’t be able to tell the difference between a 0 being transmitted and ‘no signal’ being transmitted.

Pulse Train for ASCII ‘K’ Time Voltage If you measured the voltage in the wire and graphed how it changed over time. What is the advantage of having each bit the same length? You don’t have to break the signal between 2 ones or zeros.

Parity (not required for 1 st year course) n An extra bit is added to each code if required in order to ensure there is an ODD number of 1’s in the code.(odd parity) a b c d e f g h i j k l m n o p You can also use even parity Used to detect errors in data storage or transmission

Bit Mapped Images

Digitised Sound Sampling : a voltage generated by the sound vibrations in a sensor (eg. Microphone) is recorded as numbers at discrete intervals. Reconstructed sound: the sound wave form can be recreated from the recorded numbers. Notice there is a loss of detail between the measurements.

Chapter 7: Number Bases Decimal Octal Hexadecimal Binary Think about how you count! It is easier to convert from binary to octal or hexadecimal than to decimal!

Conversions Binary to decimal: ones twos fours eights 1x1 = 1 0x2 = 0 1x4 = 4 1x8 = 8 Total 13 Decimal to binary: leftovers 21 = 10101