1 Problem Solving using Computers “Data....Representation, and Storage.

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.
Review of HTML Ch. 1.
Review Ch.1,Ch.4,Ch.7. Review of tags covered various header tags Img tag Style, attributes and values alt.
Text Representation within Computers CS208. The Binary Digit (Bit) One bit can encode a value set that contains two elements e.g. {black, white}, {up,
Representing Information as Bit Patterns
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
Chapter 8_2 Bits and the "Why" of Bytes: Representing Information Digitally.
1 The Information School of the University of Washington Nov 6fit more-digital © 2006 University of Washington Digital Information INFO/CSE 100,
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Data Storage. SIGN AND MAGNITUDE Storing and representing numbers.
Bits and Bytes.
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Chapter 5 Data representation.
©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,
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Coding System Text Representation ASCII Collating Sequence.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Globalisation & Computer systems Week 4 writing systems and their implications for globalisation character representation ASCII extended ASCII code pages.
Foundations of Computer Science Computing …it is all about Data Representation, Storage, Processing, and Communication of Data 10/4/20151CS 112 – Foundations.
Computer Structure & Architecture 7c - Data Representation.
1 Foundations of Computer Science Chapter 2 Data Representation.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
1 i206: Lecture 2: Computer Architecture, Binary Encodings, and Data Representation Marti Hearst Spring 2012.
What is a computer? A computer is a device that:
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Globalisation & Computer systems Week 5/6 Character representation ACII and code pages UNICODE.
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.
Data Files on Computers Text Files (ASCII) Files that can be created by typing on the keyboard while using a text editor such as notepad or TextEdit.
SEC (1.4) Representing Information as bit patterns.
Representing Characters in a computer Pressing a key on the computer a code is generated that the computer can convert into a symbol for displaying or.
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.
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.
M204 - Data Representation
Representing Characters in a Computer System Representation of Data in Computer Systems.
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
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.
1.4 Representation of data in computer systems Character.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Text and Images Key Revision Points.
Binary Representation in Text
Binary Representation in Text
Data Representation.
GCSE COMPUTER SCIENCE Data 2.2 Characters and Images.
Unit 2.6 Data Representation Lesson 2 ‒ Characters
GCSE COMPUTER SCIENCE Topic 3 - Data 3.2 Data Representation.
Chapter 8 & 11: Representing Information Digitally
Data Transfer ASCII FILES.
Representing Information as bit patterns
Phnom Penh International University (PPIU)
Data Encoding Characters.
Representing Nonnumeric Data
Ch2: Data Representation
Presenting information as bit patterns
Chapter 2 Data Representation.
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
Digital Encodings.
How Computers Store Data
Data Representation Chapter 2 Computer HW (Von Neumann Model) Program
Learning Intention I will learn how computers store text.
Option: Data Representation
Text Representation ASCII Collating Sequence
Option: Data Representation
ASCII and Unicode.
Presentation transcript:

1 Problem Solving using Computers “Data....Representation, and Storage

2 Data Representation & Storage Types of DATA What are the different types of data, that may be encountered in computational problems? –Text (sequences of characters to represent/store names, descriptions, etc.) –Numeric (to represent/store different quantities, e.g. age, length, height, amount of money, growth rates, etc.) –Image (to represent/store photographic or synthesized pictures). –Audio (to represent/store audio signals of humans and otherwise). –Video (to represent/store video signals).

3 Data Representation & Storage What are the basic operations defined on each data type? –Text (extracting characters, concatenating characters together, comparing characters). –Numeric (doing +,-,*, , comparison among other operations). –Audio (manipulate pitch, amplitude (volume), high/low frequencies in an audio signal). –Image (manipulating pixels properties, e.g. color).

4 Data Representation & Storage Text Data The building blocks of any text data is the character. Characters can be divided into –Letters (a-z, and A-Z) –Digits (0,1,…9) –Special Characters (for example., But, if I told you that the only characters that can appear in text data are the 26 upper case letters, can you develop an encoding scheme using bits to encode these characters?

5 Data Representation & Storage Encoding Upper case letters using bits SLACK CODES (UNUSED)

6 Data Representation & storage Representing Text ;The ASCII code A standard set of characters were agreed upon as the set of all possible characters that are allowed to appear in text data (see few slides back). A standard bit code was set for these characters. This is called the ASCII (American Standard code for Information Interchange) code. ASCII code is an 8-bit code scheme (originally was 7-bit). The letter ‘A’ in ASCII code for example is given the code , code for ‘B’ in ASCII is The code for a space character ‘ ‘ is

7 Data Representation & storage ASCII code Facts Originally a 7–bit code, why? –Because ANSI identified a standard set of 128 characters (including letters, digits, symbols and special control characters) that any computer must be able to represent; –7 bits are enough to provide 128 distinct bit patters codes – prove. –Any text stored by the computer cannot contain other than these 128 characters. Now ASCII is an 8-bit code why? –This creates additional 128 codes that can be assigned to user-defined characters, e.g. for accommodating letters from other languages (Arabic, French, German, etc…)

8 This slide depicts two views of a file called simple.txt. The file contains text data. The first view is as seen in an editor (notepad). The second view shows the ASCII code of each character in the file How many characters does the file contain? How many of these are letters? Character W (highlighted) ASCII code of character W (57 hexadecimal = in binary

9 Data Representation & storage ASCII code Exercise If the following bits are interpreted as characters encoded in the ASCII code, write down the corresponding characters Write down ASCII code (bits) for the following text: How are you?

10 Data Representation & storage Unicode, ISO 32-bit Is the ASCII code enough? –No, think about the representation of Chinese or Japanese language text (thousands of symbols); Unicode –A 16-bit coding scheme (allows how many characters?) –Developed by a consortium of manufacturers of hardware and software.