CS 177 Programming with Multimedia Objects Recitation.

Slides:



Advertisements
Similar presentations
 Caesar used to encrypt his messages using a very simple algorithm, which could be easily decrypted if you know the key.  He would take each letter.
Advertisements

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
©Brooks/Cole, 2003 Chapter 2 Data Representation.
1 Lecture-2 CS-120 Fall 2000 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
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.
1 12/08/03SW Abingdon and Witney College Binary Converting to and from decimal.
ASCII & Gray Codes.
©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,
1 Survey of Computer Science CSCI 110, Spring 2011 Lecture 16 Digital Circuits, binary Numbers.
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Aloha Aloha What you see: What the computer sees: binary number columns binary number columns
Working with text ASCII and UNICODE.   
Too much information running through my brain.. We live in the information age. Knowledge comes from careful investigation of information. Information.
Chapter 2 Computer Hardware
Foundations of Computer Science Computing …it is all about Data Representation, Storage, Processing, and Communication of Data 10/4/20151CS 112 – Foundations.
Pengantar Teknologi Informasi dan Ilmu Komputer Information Technology and Data Representation PTIIK- UB.
CS 102 Computers In Context (Multimedia)‏ 01 / 23 / 2009 Instructor: Michael Eckmann.
Representing Data. Representing data u The basic unit of memory is the bit  A transistor that can hold either high or low voltage  Conceptually, a tiny.
Binary Code.
Data Representation and Storage Lecture 5. Representations A number value can be represented in many ways: 5 Five V IIIII Cinq Hold up my hand.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.

THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
Understanding Block Encoding and Decoding Name(s): _______________________ In the space below, create a set of building instructions so that a friend can.
1 CS 177 Week 2 Recitation Slides Introduction. 2 Announcements.
1 1 7-Dec-15 Binary Converting to and from decimal.
1 Ethics of Computing MONT 113G, Spring 2012 Session 1 Digital Circuits, binary Numbers Course webpage:
Binary System Presented by Mr. Wilhelmi Internal Representation of Data Input Input  Data that is put into the computer for processing Data Data  The.
Secret Fortress Construction Challenge You should have two identical LEGO block kits. Set the extra kit aside, and use one kit to build a LEGO fortress:
Binary Bracelets. Objectives Encode letters into binary Decode binary back to letters Relate the idea of storing initials on a bracelet to the idea of.
CS 111 – Sept. 1 Intro to data representation Binary numbers –Convert binary  decimal –Convert decimal  binary Text –ASCII and Unicode Commitment: –For.
Copyright 2007 Jim Martin1 Computer Communications Dr. Jim Martin
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.
Exploring Computer Science – Lesson 2-5. Click to add text.
ISNE101 – Introduction to Information Systems & Network Engineering WEEK 2.
Binary 101 Gads Hill School. Aim To strengthen understanding of how computers use the binary number system to store information.
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
What do you think this lesson is all about? Write your answer on a sticky note.
Lesson 6 Binary Understand what Binary Code means and apply this knowledge Understand how data is represented using bit systems and be able to change decimal.
Understanding Computers
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
WHAT IS BINARY? Binary is a number system that only uses two digits: 1 and 0. Any information that processed by a computer it is put into sequence of.
ITEC2110, Digital Media Chapter 1 Background & Fundamentals
Understanding binary Understanding Computers.
3 – Boolean Logic and Logic Gates 4 – Binary Numbers
From the ASCII table… Symbol Decimal Binary A B 66
Exploring Computer Science – Lesson 2-5
BINARY CODE.
Chapter 2 – Computer hardware
Representing Information as bit patterns
Data Encoding Characters.
Invitation to Computer Science, Java Version, Third Edition
Chapter 1 Data Storage.
Computers & Programming Languages
Ch2: Data Representation
Presenting information as bit patterns
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Chapter 2 Data Representation.
Digital Encodings.
How Computers Store Data
Learning Intention I will learn how computers store text.
CS 177 Week 3 Recitation Slides
Binary Code By Jonathan Kayne.
Lecture 35 – Unit 6 – Under the Hood Binary Encoding – Part 1
Digital Representation of Data
ASCII and Unicode.
Course Code 114 Introduction to Computer Science
Presentation transcript:

CS 177 Programming with Multimedia Objects Recitation

Course Policy On Course Website

How Computer Works

What Computers Understand? Computers can only understand Encoding of numbers. So what is the meaning of Encoding ?

Figure 3 (pag. 8) of the textbook The reasoning is: hardware produces (patterns of) voltages (variations of electric current). It’s enough to distinguish btw the presence of a current and its absence. 1 represents the presence of a current, o its absence. So, a bit (or binary digit) can represent the presence or the absence of the current.

Example 1: Emoticons What if you want to tell a friend your emotion by texting them on your mobile phone (without texting a long message)? You can use emoticons… Emoticons are an encoding of emotions: :) I’m happy, I like it :( I’m unhappy, I dislike it :’( You are using a combination of symbols (parenthesis, punctuation symbols), that you normally you use in writing, to represent your emotions.

Example 1 ct’ed Now suppose that you want to encode the previous 3 symbols : ( ) using numbers… You may use the ASCII code …

ASCII Table

Question 1.2 Write down the sequence of numbers whose ASCII values make up your name.

Question Can you guess what is:

Example 2: Traffic Light Traffic light are used to say the car drivers what actions they can/can not do…. What is the Encoding of the following traffic lights?

Quiz What actions is encoded by the RED light? What action is encoded by the YELLOW light? What actions is encoded by the GREEN light? Now, let’s try to encode RED, YELLOW, and GREEN with 0’s and 1’s… RED  ? YELLOW  ? GREEN  ?

So, Encoding is the activity of converting data or information into some symbol. Computer understand just two symbols, 0 and 1. 0 and 1 are also numbers (in the binary number system). A binary number system gets its name from having just two digits, O and 1.

Definitions Bit: is the smallest unit of data in a computer that has a single binary value either 0 or 1. Byte: is a unit of data that is eight binary digits long. How many bits are there in 5 bytes?

Question 1.5 How many combinations can be represented in one bit? Two bits? What about three bits and four bits?

So, Decoding is the activity of converting code into plain text.

Recipes Computer science is the study of recipes. Computer Scientists study how recipes are written. How a recipe works is called algorithms.

One Egg Omelet How to make one egg omelet: 1. Put oil in pan 2. Pre-heat pan 3.Crack egg into bowl 4.Add Salt 5. Wisk the contents of bowl 6. Pour contents of bowl into pan 7. Wait for 3 minutes

ANY QUESTIONS???

THANK Y U