CSCI N201 Programming Concepts and Database 3 – Essence of Computing Lingma Acheson Department of Computer and Information Science, IUPUI.

Slides:



Advertisements
Similar presentations
Computer Science 210 Computer Organization Introduction to Logic Circuits.
Advertisements

Sahar Mosleh PageCalifornia State University San Marcos 1 Introductory Concepts This section of the course introduces the concept of digital circuits and.
Computer Logic. Analogue & Digital Data. Analogue. An analogue/continuous devise is one which data is represented by some quantity which is continuously.
Hardware Implementations Gates and Circuits. Three Main Gates  AND  OR  NOT.
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
28-Jun-15 Number Systems. 2 Bits and bytes A bit is a single two-valued quantity: yes or no, true or false, on or off, high or low, good or bad One bit.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Fourth Edition.
CSE 311 Foundations of Computing I Autumn 2011 Lecture 2 More Propositional Logic Application: Circuits Propositional Equivalence.
3. DIGITAL ELECTRONICS..
Truth Tables for Negation, Conjunction, and Disjunction.
1 Survey of Computer Science CSCI 110, Spring 2011 Lecture 16 Digital Circuits, binary Numbers.
1 CSC103: Introduction to Computer and Programming Lecture No 2.
Computer Systems Chapter 1 Pages Hardware-physical pieces Key hardware components in a computer system: The physical parts. – Central processing.
Computer Science 1000 Digital Circuits. Digital Information computers store and process information using binary as we’ve seen, binary affords us similar.
CS101 Introduction to Computing Lecture 8 Binary Numbers & Logic Operations.
Gates and Circuits Monday/Wednesday Week 7. Electronic Circuits  Two types of circuit diagrams See pp. 238 in The Analytical Engine by Decker and Hirshfield.
BUILDING COMPUTER CIRCUITS prepared by Burak Galip ASLAN September, 2006 BOOLEAN LOGIC AND GATES CONTROL CIRCUITS.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: Binary Logic.
Data Manipulation CSCI130 Instructor: Dr. Imad Rahal.
CS 285- Discrete Mathematics Lecture 2. Section 1.1 Propositional Logic Propositions Conditional Statements Truth Tables of Compound Propositions Translating.
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
CSci 2011 Textbook ^Discrete Mathematics and Its Applications,  Rosen  6th Edition  McGraw Hill  2006.
Introduction to Digital Logic and Circuits EE 101, Fall 2015 University of Kentucky.
MATH 102 Contemporary Math S. Rook
Math 240: Transition to Advanced Math Deductive reasoning: logic is used to draw conclusions based on statements accepted as true. Thus conclusions are.
How a Computer Processes Data With today’s technology a little knowledge about what’s inside a computer can make you a more effective user and help you.
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
1 CSCI N201 Programming Concepts and Database 9 – Loops Lingma Acheson Department of Computer and Information Science, IUPUI.
Computer Science Binary. Binary Code Remember the power supply that is inside your computer and how it sends electricity to all of the components? That.
Conditional Statements
CMSC 100 CMSC 100 From the Bottom Up: It's All Just Bits Professor Marie desJardins Tuesday, September 11, 2012 Tue 9/11/12 1CMSC Just Bits.
How do I show that two compound propositions are logically equivalent?
CMP 100 Introduction to Computing Lecture Binary Numbers & Logic Operations.
1 Ethics of Computing MONT 113G, Spring 2012 Session 1 Digital Circuits, binary Numbers Course webpage:
1 Understand the examples again Overflow –When two positive numbers added together or a negative number subtracted from a positive number yields negative.
Chapter 1: The Foundations: Logic and Proofs
Logic and Boolean Algebra. Logic statements  Real life statements  “I use public transportation when the car is broken and I have to go to work”  “All.
CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13.
CSCI N100 Principles of Computing Basic Problem-Solving.
How a Computer Processes Data. With today’s technology a little knowledge about what’s inside a computer can make you a more effective user and help you.
رياضيات متقطعة لعلوم الحاسب MATH 226. Text books: (Discrete Mathematics and its applications) Kenneth H. Rosen, seventh Edition, 2012, McGraw- Hill.
CSCI N201 Programming Concepts and Database 2 - STAIR Lingma Acheson Department of Computer and Information Science, IUPUI.
CompSci Today’s topics Computer Hardware Electric Circuits Designing an Adder Upcoming Computer Communications ( Great Ideas Chapter 10) Reading.
9d. Pie Charts CSCI N207 Data Analysis Using Spreadsheet Department of Computer and Information Science, IUPUI Lingma Acheson
Great Ideas Alan Turing – What is computable? A task is computable if one can specify a sequence of instructions which when followed will result in the.
CSCI N207 Data Analysis Using a Spreadsheet. Course Goals This is a technical course in which data analysis is the main emphasis and spreadsheet is the.
Section 3.2: Truth Tables for Negation, Conjunction, and Disjunction
Discrete Structures for Computer Science Presented By: Andrew F. Conn Slides adapted from: Adam J. Lee Lecture #1: Introduction, Propositional Logic August.
GCSE OCR Computing A451 Binary logic Computing hardware 6.
Creating logic gates with Minecraft
Logic Gates.
Computer Science 210 Computer Organization
Minecraft Logic Gates!.
CSCI-100 Introduction to Computing
Chapter 2.3 Binary Logic.
The Binary Number System
Fundamentals & Ethics of Information Systems IS 201
University of Gujrat Department of Computer Science
Invitation to Computer Science, Java Version, Third Edition
Saturday, 10 November 2018 Binary
Computer Science 210 Computer Organization
Essence of Computation
For OCR GCSE Computing Unit 1 - Theory
Computer Science 210 Computer Organization
Data Binary Conversion.
Lecture 5 Binary Operation Boolean Logic. Binary Operations Addition Subtraction Multiplication Division.
Programming Concepts and Database
7 – Variables, Input and Output
Logically, the output will be 1
Further binary, Logic diagrams and truth tables
Presentation transcript:

CSCI N201 Programming Concepts and Database 3 – Essence of Computing Lingma Acheson Department of Computer and Information Science, IUPUI

Definition of Computer Universal Information Manipulator

Definition of Computer Universal –Works with all kinds of information Words, maths, images, videos –Performs different tasks Games, create a document read books, long distance calls, modify images… –Very few limitations Do anything with any kind of information

Definition of Computer Information –Seems to be able to work with anything –Actually very limited All translated into 1s and 0s –Tiny pieces of data combined into complex information

Definition of Computer Manipulator –Seem able to do anything with data –Actually very limited Come down to a few basic operations –Simple commands combined into complex instructions

Computer and Information Information limited to on/off impulses, like a light switch Light switch demo – –One light switch 1 – on, 0 – off Two messages – Have a lecture class today? (on: yes; off: no) –Two light switches Switch one – Have a lecture class today? (on: yes; off: no) Switch two – Have a lab class today? (on: yes; off: no) How many messages can two switches send?

Computer and Information –Three light switches Switch one – Have a lecture class today? (on: yes; off: no) Switch two – Have a lab class today? (on: yes; off: no) Switch three – Have a quiz today? (on: yes; off: no) How many messages can two switches send? –Adding each extra switch will double the number of messages –2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, ….

Computer and Information Related to how computers store information –Brick counter demo – –Represent 1, 2, 4, 8 –How to represent other numbers? (0 – 15) –How to represent more numbers?

Binary Conversion Converting from binary to base 10 –Use a spreadsheet –E.g. 1: 101 Brick Demo

Binary Conversion –E.g. 2: 1101 –E.g. 3: 1010 –Try it yourself!

Binary Conversion How are binary numbers related to base 10 numbers? E.g., 367

Binary Conversion Binary numbers, base 2. Able to deal with any number with the power of 2 Binary 101 = 1*2^2 + 0*2^1 + 1*2^0 = 5 Decimal 101 = 1*10^2 + 0*10^1 + 1*10^0 = 101

Binary Conversion Base 10, 0 – 9 digits, add more digits as numbers grow Base 2, 0 – 1, add more switches as numbers grow

Binary Conversion Converting from base 10 to binary –Use a spreadsheet –Try it yourself!

Binary Conversion Converting from base 10 to binary –Large numbers E.g., 34 What is the result from using spreadsheet? 34/2 = 17 with a remainder of 0 17/2 = 8 with a remainder of 1 8/2 = 4 with a remainder of 0 4/2 = 2 with a remainder of 0 2/2 = 1 with a remainder of 0 1/2 = 0 with a remainder of 1 Result: (get the remainder backwards) E.g. 157

Computer Definition Revisit Information –Only deal with 1s and 0s Binary conversion readings:

Computer Definition Revisit Operation –Very limited –Only three logical operations AND, OR, NOT

Basic Logic Gates True or False conditions –E.g.I have a football. – True, False? –Why True or False ? – 1 or 0 Add logic operations –E.g. I have a football and a baseball. I have a football or a baseball. I do not have a football. –E.g. A hardware device example

Basic Logic Gates Truth tables –Logical AND AB Result FFF FTF TFF TTT

Basic Logic Gates Truth tables –Logical OR AB Result FFF FTT TFT TTT

Basic Logic Gates Truth tables –Logical NOT ANOT A FT TF

Basic Logic Gates These devices are called gates Turning them into electronic devices, we can put them together to build electronic circuit boards and components, and make computers do different jobs, such as adding or subtracting binary numbers Everything comes down to the operations of the three logic gates

Basic Logic Gates Practice: –If you are a student of computer science, or if you are a freshman, you can access the computers in this lab. Can I access the computers in this lab if I am a first year computer science student? –If ((midterm>80) and (final>90)) then grade=“A” Will Sam get an “A” if his midterm score is 85 and final is 89? –If (count <3) then let the user try again. Mary has tried logging to the account three times, will she be allowed to try again? –If you are taller than 4ft, or you are over 16 years old, then you can ride the roller coaster. Peter is 15 years old, can he ride the roller coaster?