Shawlands Academy Higher Computing Data Representation.

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

Technology ICT Option: Data Representation. Data Representation In our everyday lives, we communicate with each other using analogue data. This data takes.
Computer Systems Nat 4/5 Data Representation Lesson 4: Storing Graphics.
The Binary Numbering Systems
Lecture - 2 Number systems and computer data formats
Floating Point Numbers.  Floating point numbers are real numbers.  In Java, this just means any numbers that aren’t integers (whole numbers)  For example…
How Images are Represented Bitmap images (Dots used to draw the image) Monochrome images 8 bit grey scale images 24 bit colour Colour lookup tables Vector.
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text.
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
Chapter 5 Data representation.
Simple Data Type Representation and conversion of numbers
Higher Computing Data Representation.
Lecture 5.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Storing Graphics EXTENSION.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Computing Higher - Unit 1… Computer Systems 1 Higher Computing Unit 1 – Topic 1 Data Representation.
Chapter 1 Data Storage(2) Yonsei University 1 st Semester, 2014 Sanghyun Park.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 1. Data Representation Data Representation – Why do we use binary? simplicity,
Data Representation Int 2 Computing Unit 1 – Computer Systems St Kentigern’s Academy.
CS Topic 1 - Data Representation v2 1 Data representation considers how a computer uses numbers to represent data inside the computer. Three types of data.
Data Representation and Computer Arithmetic
AS LEVEL ICT2 Processing Different Types of Information.
Data Representation The method of data representation in a computer system depends upon the type of data which is being used. Three types of data are considered.
COMPSCI 210 Semester Tutorial 1
Why does it matter how data is stored on a computer? Example: Perform each of the following calculations in your head. a = 4/3 b = a – 1 c = 3*b e = 1.
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
Types of Data. Numbers Text Pictures Sound Video.
The Teacher CP4 Binary and all that… CP4 Revision.
The Teacher CP4 Binary and all that… CP4 Revision.
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
Quiz # 1 Chapters 1,2, & 3.
Int 2/ Higher - Data Representation - 1 Why use Binary? It is a two state system (on/off) which makes it simple to operate Even if degradation of current.
Data Representation The storage of Text Numbers Graphics.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Representing and Storing Graphics EXTENSION.
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
1 Information Representation in Computer Lecture Nine.
Floating Point Binary A2 Computing OCR Module 2509.
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,
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
 Computers are 2-state devices › Pulse – No pulse › On – Off  Represented by › 1 – 0  BINARY.
Software Design and Development Storing Data Computing Science.
Starter Using two’s Complement form convert the following from Denary to Binary using 8 bits. Answer on mini whiteboard Using two’s.
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
OCR Computing OGAT Data Types. What OCR need you to know… Data Types a) Primitive data types, integer, real/floating point, character,
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.
Floating Point Numbers
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Text and Images Key Revision Points.
Storing Graphics Nat 5 Data Representation Lesson 4a: Storing Graphics
Data Representation.
Computer Systems Nat 4/5 Data Representation Lesson 4:
Computer Science Higher
CSCI 198: Lecture 4: Data Representation
CSCI 161: Lecture 4: Data Representation
Intermediate 2 Computing
Learning Intention I will learn how a computer stores graphics.
Computer Systems – Unit 1
Why use Binary? It is a two state system (on/off) which makes it simple to operate Even if degradation of current occurs (ie a slight drop in voltage)
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
Storing Negative Integers
How Computers Store Data
Computer Organization
Computer Systems.
Computer Systems Nat 4.5 Computing Science Data Representation
Representation of real numbers
Computer Systems Nat 4/5 Data Representation Lesson 4:
Presentation transcript:

Shawlands Academy Higher Computing Data Representation

1 Data Representation 1.2 Numbers Numbers are converted to binary – number base 2 Example of 154 represented as a binary number =154

1 Data Representation 1.2 Numbers R1 217R0 28R1 24R R1 How to convert decimal to binary e.g. 69 Giving Keep dividing by 2 Note the remainders Read the remainders from the bottom up

Range of Numbers Using 1 byte for storage gives 256 (2 8 ) possible numbers in the range bytes gives 65536(2 16 ), Increasing the size of the storage for numeric data increases the range of numbers which can be stored.

Data Representation 1.3 Integers Positive numbers  Converted directly to binary  2 bytes = 16 bits gives 0 to or 0 to 65535

Negative Numbers - more difficult One of the 16 bits available has to be used to store the sign (- or +) – this reduces the range of numbers to –32768 to This is called Signed Bit representation

Problems with Signed Bit Representation Does not always work because: Addition does not work properly ( gives 15) Two values for 0 ( and )

To overcome problems Twos Complement –Addition works and there is only one zero –All 0’s are converted to 1’s and 1’s to 0’s then 1 is added. –To convert 5 to – OR 5 OR -5

Data Representation 1.4 Real Numbers Real numbers are stored as floating point. E.g is *10 5 In binary is *2 100 (the 4is 100 in binary) The mantissa is and the exponent is 100 Usually 4 bytes used for mantissa and 2 for exponent Increasing the size of the mantissa increases accuracy Increasing the size of the exponent increases the range of numbers which can be stored

1 Data Representation 1.1 Text  Each character is stored as an 8 bit binary code  This is called the ASCII system.  E.g. A is stored as 65 ( in Binary).  1 byte can store 256 (2 8) different characters – enough for all the keys on the keyboard and several foreign symbols (for currency etc )

Data Representation 1.5 Bit-mapped Graphics For a graphic drawn in a painting package the computer stores the data as a 2 dimensional array of pixels. Each pixel in a black and white image is 1 bit in memory. 2 bits can store 4 colours or shades of grey.(2 2 ) 8 bits can store 256 colours.(2 8) 2 bytes can store 65,536 colours.(2 16 ) Bit mapped images are often generated from scanned pictures and can create huge files. Editing can be performed at pixel level. When images are enlarged they can become “lumpy” and lose definition.

Data Representation 1.6 Vector Graphics Sometimes called object-orientated graphics. Used in CAD, drawing and publishing packages. Describes an object by its attributes (start & end positions, thickness & colour of lines etc.) Editing at pixel level not possible. Can be resized without losing original sharpness. Can be placed over another graphic without rubbing it out as happens with bit-mapped.