CSC 170 Introduction to Computers and Their Applications. Lecture #1 Digital Basics. Data Representation

Similar documents
INTRODUCTION TO COMPUTERS

Chapter 1. Data Storage Pearson Addison-Wesley. All rights reserved

Computers Are Your Future

Data Representation. Types of data: Numbers Text Audio Images & Graphics Video

Lecture 1: What is a computer?

card slots CPU socket Monitor Computer case houses CPU (Central Processing Unit), CPU central power supply, DVD drive, etc processing unit Keyboard

CMSC 1513 Lecture 1.2

Using sticks to count was a great idea for its time. And using symbols instead of real sticks was much better.

FA269 - DIGITAL MEDIA AND CULTURE

Data Storage. Slides derived from those available on the web site of the book: Computer Science: An Overview, 11 th Edition, by J.

b A bit is the basic unit for storing electronic data, for example an MP3 file. The term bit is a

[301] Bits and Memory. Tyler Caraza-Harter

Day 3. Storage Devices + Types of Memory + Measuring Memory + Computer Performance

Example 1: Denary = 1. Answer: Binary = (1 * 1) = 1. Example 2: Denary = 3. Answer: Binary = (1 * 1) + (2 * 1) = 3

Bits and Bit Patterns

Computer Systems. IGCSE OCR AQA Edexcel Understand the term. embedded system and how an Purpose of embedded system

Elementary Computing CSC 100. M. Cheng, Computer Science

Worksheet - Storing Data

Dec Hex Bin ORG ; ZERO. Introduction To Computing

GCSE Computing. Revision Pack TWO. Data Representation Questions. Name: /113. Attempt One % Attempt Two % Attempt Three %

Discussion. Why do we use Base 10?

Information Science 1

o MAC (6/18 or 33%) o WIN (17/18 or 94%) o Unix (0/18 or 0%)

What is a computer? Units of Measurement. - A machine that: - Counts.

Lecture C1 Data Representation. Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007

An Overview of the Computer System. Kafui A. Prebbie 24

REPRESENTING INFORMATION:

Digital Media. Daniel Fuller ITEC 2110

Chapter 4 The Components of the System Unit

Holds data, instructions, and information for future use Storage medium is physical material used for storage

For this class we are going to create a file in Microsoft Word. Open Word on the desktop.

Lecture #3: Digital Music and Sound

Chapter 4: Computer Codes. In this chapter you will learn about:

计算机信息表达. Information Representation 刘志磊天津大学智能与计算学部

CC411: Introduction To Microprocessors

Digital Media. Lecture 2: SemesterOverview. Georgia Gwinnett College School of Science and Technology Dr. Mark Iken

The type of all data used in a C++ program must be specified

Intermediate Programming & Design (C++) Notation

Jianhui Zhang, Ph.D., Associate Prof. College of Computer Science and Technology, Hangzhou Dianzi Univ.

Defining Computers. Defining Computers. Understanding Essential Computer Concepts

The type of all data used in a C (or C++) program must be specified

Memory Addressing, Binary, and Hexadecimal Review

Binary Codes. Dr. Mudathir A. Fagiri

Unit - II. Computer Concepts and C Programming 06CCP13. Unit II

Introduction to Computers. Joslyn A. Smith

A comprehensive view of software in detail.

What's in a computer?

Number System (Different Ways To Say How Many) Fall 2016

Information Communications Technology (CE-ICT) 6 th Class

Components of a Computer System

St Ignatius Girls JL - Form 3. Contents

Focus Study Communication 2 (FSCo2) Digital Download & File Storage. G. Georgiou

Lab Determining Data Storage Capacity

OCR J276 GCSE Computer Science

DATA 301 Introduction to Data Analytics Data Representation. Dr. Ramon Lawrence University of British Columbia Okanagan

Electronic Data and Instructions

Introduction to computers

Section 6 Storage Space

Lecture (01) Digital Systems and Binary Numbers By: Dr. Ahmed ElShafee

CSC 170 Fall 2017 Dr. R. M. Siegfried. Study Guide for Final Exam

Topic Notes: Bits and Bytes and Numbers

Computers Are Your Future

Lesson 1: Computer Concepts

Homeschool Enrichment. The System Unit: Processing & Memory

HARDWARE AND OPERATING SYSTEMS

1. Which of the following Boolean operations produces the output 1 for the fewest number of input patterns?

Sahalsoftware college. Welcome To understanding Basic Computer Concept

Chapter 4 The Components of the System Unit

Intro to Computers in Arabic!!!!! MAI ELSHEHALY

System Unit Components Chapter2

Discovering Computers 2008

15/09/15. Introduction to Computers & The Internet. Contents. Computer hardware and software. Input and output devices CPU. Memory.

Contents Slide Set 9. Final Notes on Textbook Chapter 7. Outline of Slide Set 9. More about skipped sections in Chapter 7. Outline of Slide Set 9

1.1 Bits and Bit Patterns. Boolean Operations. Figure 2.1 CPU and main memory connected via a bus. CS11102 Introduction to Computer Science

CMSC 104 -Lecture 2 John Y. Park, adapted by C Grasso

MSc-IT 1st Semester Fall 2016, Course Instructor M. Imran khalil 1

COMP 273 Winter physical vs. virtual mem Mar. 15, 2012

Chapter Two. Hardware Basics: Inside the Box

UNIT 7A Data Representation: Numbers and Text. Digital Data

PC Basics Introduction to PCs

Chapter 2. Prepared By: Humeyra Saracoglu

LECTURE SCHEDULE 2. Units of Memory, Hardware, Software and Classification of Computers

Topic Notes: Bits and Bytes and Numbers

Overview. ELEC2041 Microprocessors and Interfacing. Lecture 7: Number Systems - II. March 2006.

Important Encoder Settings for Your Live Stream

Introduction to the Mathematics of Big Data. Philippe B. Laval

Full file at

Storage Devices for Database Systems

Lecture (03) Binary Codes Registers and Logic Gates

Computer is an electronic machine that can receive, store, transform and output data of all kinds (image, text, numeric, graphics and sound).

Storage. Chapter3 ITBIS105

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Bits and Bytes and Numbers

3 Data Storage 3.1. Foundations of Computer Science Cengage Learning

Bits, bytes and digital information. Lecture 2 COMPSCI111/111G

Representing Information. Bit Juggling. - Representing information using bits - Number representations. - Some other bits - Chapters 1 and 2.3,2.

Chapter 2. Working with Disks and Other Removable Media

15 July, Huffman Trees. Heaps

The Mathematics of Big Data

INTRODUCTORY COMPUTER NETWORKS PHYSICAL LAYER, DIGITAL TRANSMISSION FUNDAMENTALS. Faramarz Hendessi

Slide Set 8. for ENCM 369 Winter 2018 Section 01. Steve Norman, PhD, PEng

Transcription:

CSC 170 Introduction to Computers and Their Applications Lecture #1 Digital Basics Data Representation Data refers to the symbols that represent people, events, things, and ideas. Data can be a name, a number, the colors in a photograph, or the notes in a musical composition. Data Representation refers to the form in which data is stored, processed, and transmitted. Devices such as smartphones, ipods, and computers store data in digital formats that can be handled by electronic circuitry. 1

Data Representation Digitization is the process of converting information, such as text, numbers, photo, or music, into digital data that can be manipulated by electronic devices. The Digital Revolution has evolved through four phases, beginning with big, expensive, standalone computers, and progressing to today s digital world in which small, inexpensive digital devices are everywhere. Data Representation The 0s and 1s used to represent digital data are referred to as binary digits from this term we get the word bit that stands for binary digit. A bit is a 0 or 1 used in the digital representation of data. A digital file, usually referred to simply as a file, is a named collection of data that exits on a storage medium, such as a hard disk, CD, DVD, or flash drive. 2

Data Representation Representing Numbers Numeric data consists of numbers that can be used in arithmetic operations. Digital devices represent numeric data using the binary number system, also called base 2. The binary number system only has two digits: 0 and 1. No numeral like 2 exists in the system, so the number two is represented in binary as 10 (pronounced one zero ). 3

Representing Numbers DECIMAL (BASE 10) BINARY (BASE 2) 0 0 1 1 2 10 3 11 4 100 5 101 6 110 7 111 8 1000 9 1001 10 1010 11 1011 1000 1111101000 Representing Text Character data is composed of letters, symbols, and numerals that are not used in calculations. Examples of character data include your name, address, and hair color. Character data is commonly referred to as text. 4

Representing Text Digital devices employ several types of codes to represent character data, including ASCII, Unicode, and their variants. ASCII (American Standard Code for Information Interchange, pronounced ASK ee ) requires seven bits for each character. The ASCII code for an uppercase A is 1000001. Representing Text Extended ASCII is a superset of ASCII that uses eight bits for each character. For example, Extended ASCII represents the uppercase letter A as 01000001. Using eight bits instead of seven bits allows Extended ASCII to provide codes for 256 characters. 5

Representing Text Unicode (pronounced YOU ni code ) uses sixteen bits and provides codes or 65,000 characters. This is a bonus for representing the alphabets of multiple languages. UTF-8 is a variable-length coding scheme that uses seven bits for common ASCII characters but uses sixteen-bit Unicode as necessary. Representing Text 00100000 Space 00110011 3 01000110 F 01011001 Y 01101100 l 00100001! 00110100 4 01000111 G 01011010 Z 01101101 m 00100010 " 00110101 5 01001000 H 01011011 [ 01101110 n 00100011 # 00110110 6 01001001 I 01011100 \ 01101111 o 00100100 $ 00110111 7 01001010 J 01011101 ] 01110000 p 00100101 % 00111000 8 01001011 K 01011110 ^ 01110001 q 00100110 & 00111001 9 01001100 L 01011111 _ 01110010 r 00100111 ' 00111010 : 01001101 M 01100000 ` 01110011 s 00101000 ( 00111011 ; 01001110 N 01100001 a 01110100 t 00101001 ) 00111100 < 01001111 O 01100010 b 01110101 u 00101010 * 00111101 = 01010000 P 01100011 c 01110110 v 00101011 + 00111110 > 01010001 Q 01100100 d 01110111 w 00101100, 00111111? 01010010 R 01100101 e 01111000 x 00101101-01000000 @ 01010011 S 01100110 f 01111001 y 00101110. 01000001 A 01010100 T 01100111 g 01111010 z 00101111 / 01000010 B 01010101 U 01101000 h 01111011 { 00110000 0 01000011 C 01010110 V 01101001 i 01111100 00110001 1 01000100 D 01010111 W 01101010 j 01111101 } 00110010 2 01000101 E 01011000 X 01101011 k 01111110 ~ 6

Representing Text ASCII codes are used for numerals, such as Social Security numbers and phone numbers. Plain, unformatted text is sometimes called ASCII text and is stored in a so-called text file with a name ending in.txt. On Apple devices these files are labeled Plain Text. In Windows, these files are labeled Text Document. Representing Text ASCII text files contain no formatting. To create documents with styles and formats, formatting codes have to be embedded in the text. 7

Representing Text Microsoft Word produces formatted text and creates documents in DOCX format. Apple Pages produces documents in PAGES format. Adobe Acrobat produces documents in PDF format. HTML markup language used for Web pages produces documents in HTML format. Representing Text 8

Bites and Bytes All of the data stored and transmitted by digital devices is encoded as bits. Terminology related to bits and bytes is extensively used to describe storage capacity and network access speed. The word bit, an abbreviation for binary digit, can be further abbreviated as a lowercase b. A group of eight bits is called a byte and is usually abbreviated as an uppercase B. Bites and Bytes When reading about digital devices, you ll frequently encounter references such as 90 kilobits per second, 1.44 megabytes, 2.8 gigahertz, and 2 terabytes. Kilo, mega, giga, tera, and similar terms are used to quantify digital data. 9

Bites and Bytes Bit Byte Kilobit Kilobyte Megabit Megabyte Gigabit Gigabyte Terabyte Petabyte Exabyte One binary digit 8 bits 1,024 or 2 10 bits 1,024 or 2 10 bytes 1,048,576 or 2 20 bits 1,048,576 or 2 20 bytes 2 30 bits 2 30 bytes 2 40 bytes 2 50 bytes 2 60 bytes Bites and Bytes Use bits for data rates, such as Internet connection speeds, and movie download speeds. Use bytes for file sizes and storage capacities. 104 KB: Kilobyte (KB or Kbyte) is often used when referring to the size of small computer files. 10

Bites and Bytes 56 Kbps: Kilobit (Kb or Kbit) can be used for slow data rates, such as a 56 Kbps (kilobits per second) dial-up connection. 50 Mbps: Megabit (Mb or Mbit) is used for faster data rates, such as a 50 Mbps (megabits per second) Internet connection. Bites and Bytes 3.2 MB: Megabyte (MB or MByte) is typically used when referring to the size of files containing photos and videos. 100 Gbit: Gigabit (Gb or Gbit) is used for really fast network speeds. 16 GB: Gigabyte (GB or GByte) is commonly used to refer to storage capacity 11

Data Compression To reduce file size and transmission times, digital data can be compressed. Data compression refers to any technique that recodes the data in a file so that it contains fewer bits. Compression is commonly referred to as zipping. Data Compression Compression techniques divided into two categories: lossless and lossy Lossless compression provides a way to compress data and reconstitute it into its original state; uncompressed data stays exactly the same as the original data Lossy compression throws away some of the original data during the compression process; uncompressed data is not exactly the same as the original 12

Data Compression Software for compressing data is sometimes referred to as a compression utility or a zip tool. On laptops and desktop computers, the compression utility is accessed from the same screen used to manage files. Data Compression The process of reconstituting files is called extracting or unzipping. Compressed files may end with a.zip,.gz,.pkg, or.tar.gz. 13