Problem Solving Intro to Computer Science CS1510 Dr. Sarah Diesburg 1.

Slides:



Advertisements
Similar presentations
Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters.
Advertisements

CS107 Introduction to Computer Science Lecture 2.
How Computers Represent Numbers Friday, Week 5. Binary Code A series of 1’s and 0’s Place value is in powers of 2.
Is ASCII the only way? For computers to do anything (besides sit on a desk and collect dust) they need two things: 1. PROGRAMS 2. DATA A program is a.
Designing Algorithms Csci 107 Lecture 3. Designing algorithms Last time –Pseudocode –Algorithm: computing the sum 1+2+…+n –Gauss formula for 1+2+…+n Today.
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Designing Algorithms Csci 107 Lecture 3. Administrativia Lab access –Searles 128: daily until 4pm unless class in progress –Searles 117: 6-10pm, Sat-Sun.
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.
Data Storage. SIGN AND MAGNITUDE Storing and representing numbers.
CODING SYSTEMS CODING SYSTEMS CODING SYSTEMS. CHARACTERS CHARACTERS digits: 0 – 9 (numeric characters) letters: alphabetic characters punctuation marks:
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
Introduction to Computing Using Python Chapter 6  Encoding of String Characters  Randomness and Random Sampling.
Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis.
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Binary Arithmetic & Data representation
Computer Programming I. Today’s Lecture  Components of a computer  Program  Programming language  Binary representation.
Chapter 3 Section 1 Number Representation Modern cryptographic methods, unlike the classical methods we just learned, are computer based. Representation.
1 Problem Solving using computers Data.. Representation & storage Representation of Numeric data The Binary System.
Introduction to Computing Dr. Nadeem A Khan. Lecture 10.
Lab 07: Caesar Cypher Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg.
©Contrinex JDC PPT_XF_BinHexDecASCII Encoding information J.-D. Chatelain.
Numerical Representation Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg 1.
Section 3.1: Number Representation Practice HW (not to hand in) From Barr Text p. 185 # 1-5.
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.
Lab 07: Caesar Cypher Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg.
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Number Systems Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Binary System Presented by Mr. Wilhelmi Internal Representation of Data Input Input  Data that is put into the computer for processing Data Data  The.
CS 111 – Sept. 1 Intro to data representation Binary numbers –Convert binary  decimal –Convert decimal  binary Text –ASCII and Unicode Commitment: –For.
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
Thinking about programming Intro to Computer Science CS1510 Dr. Sarah Diesburg.
Chapter 1 Representing Data in a Computer. 1.1 Binary and Hexadecimal Numbers.
Remarks on Fast Exp (4/2) How do we measure how fast any algorithm is? Definition. The complexity of an algorithm is a measure of the approximate number.
Nguyen Le CS147.  2.4 Signed Integer Representation  – Signed Magnitude  – Complement Systems  – Unsigned Versus Signed Numbers.
A+ Computer Repair Lesson 3: Number System. Objectives Define binary, decimal, octal, and hexadecimal numbering systems. Define binary, decimal, octal,
Understanding Computers
11001 / 101, / ) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the result.
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
Numerical Representation Intro to Computer Science CS1510 Dr. Sarah Diesburg 1.
1.4 Representation of data in computer systems Character.
Introduction to computer science Lec2 cs111. Extended Binary Coded Decimal Interchange Code (EBCDIC) is an 8- bit character encoding used mainly on.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
Understanding binary Understanding Computers.
Binary 1 Basic conversions.
BINARY CODE.
11001 / 101 , / ) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the.
Numerical Representation
Data Transfer ASCII FILES.
Selection Structures (Part 1)
RFID - EN Encoding information Encoding information J.-D. Chatelain.
Breaking the Code Can anyone guess the phrase from this “code”?
Data Encoding Characters.
Data Representation ASCII.
Chapter 8 Namespaces and Memory Realities
Numerical Representation
More Nested Loops and Lab 5
String Encodings and Penny Math
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Dr. Clincy Professor of CS
Presenting information as bit patterns
COMS 161 Introduction to Computing
Numerical Representation
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Intro to Computer Science CS1510 Dr. Sarah Diesburg
String Encodings and Penny Math
C Programming Language
Lecture 36 – Unit 6 – Under the Hood Binary Encoding – Part 2
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Digital Representation of Data
Numerical Representation
Presentation transcript:

Problem Solving Intro to Computer Science CS1510 Dr. Sarah Diesburg 1

Numeric representation We usually work with decimal numbers with digits from 0 to 9 and powers of = (7 * * * * 1) Or (7 * * * * 10 0 ) The binary number system uses digits 0 and 1 and powers of = (0 * * * * 1) Or (0 * * * *2 0 ) = 5

Your turn #1 How would you write the following numbers in binary? Example: 14 = >

Your turn #2 What unsigned decimal numbers are represented by the following binary numbers? Example: =

Encoding Binary numbers can represent more things than just integers Another example is ASCII  American Standard Code for Information Interchange  Character encoding scheme based on the English alphabet  5

Problem Solving How do humans solve problems?  Once we know that, how to we translate that to how a computer would solve a problem? Get in groups of two or three

Problem #1  Suppose that on a recent trip, you left Cedar Falls with a full tank of gas and your odometer read miles.  When you returned, your odometer read miles. You refilled your gas tank with 8 gallons of gas.  What was your mileage per gallons (or MPG)?

Problem #1  What is the answer?  How did you arrive at this specific answer?  What is the general purpose algorithm to solve this class of problem?

On Thursday and Friday We are going to look at  How the computer does mathematics  How do we assign names to things  How do we put numbers in the computer and take them back out 9

For Lab Tomorrow Play with Python ahead of time  Install Python 3 from (get the latest version)  Get familiar with IDLE Start reading chapter 1 10