Teaching KS3 Computing Session 4 Theory: Boolean logic AND/OR/NOT

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

CDA 3100 Recitation Week 10.
Python Mini-Course University of Oklahoma Department of Psychology Day 2 – Lesson 8 Fruitful Functions 05/02/09 Python Mini-Course: Day 2 - Lesson 8 1.
CSC 110 – Intro to Computing Lecture 14: Midterm Review.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
AP: Discuss with a shoulder partner these questions. EQ Question: 1. What does the computer understand? 2. How is information converted to machine language?
Chapter 1. Objectives To provide examples of computer science in the real world To provide an overview of common problem- solving strategies To introduce.
Islamic University Of Gaza, Nael Aburas Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas
A-Level Computing#BristolMet Session Objectives#6 MUST understand and produce simple logic diagrams using the operations NOT, AND and OR SHOULD explain.
Teaching Computing to GCSE Level with Python Session 3.
13 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
8. DECISION STRUCTURES Rocky K. C. Chang October 18, 2015 (Adapted from John Zelle’s slides)
The Department of Engineering Science The University of Auckland Welcome to ENGGEN 131 Engineering Computation and Software Development Lecture 2 Debugging,
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
Quiz1 Question  Add Binary Numbers a) b) c) d) e) none
Progression in KS3/4 Algorithms MONDAY 30 TH NOVEMBER SUE SENTANCE.
GCSE Computing – Topic 2 Lesson 5a – Binary Logic CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for.
CMSC201 Computer Science I for Majors Lecture 05 – Comparison Operators and Boolean (Logical) Operators Prof. Katherine Gibson Prof. Jeremy.
Computer Architecture & Operations I
Unit 1 Logical operators.
GCSE OCR Computing A451 Binary logic Computing hardware 6.
Activity 1 5 minutes Grab a whiteboard and pen, come to the front and work out the Truth Table for the following circuit: R A B C Q.
Creating logic gates with Minecraft
Logic You will learn three common logical operations that will be applied in much of the course (spreadsheets, databases, web searches and both programming.
Logic Gates Binary Day 3 PEOPLE 2016.
Component 1 Logical operators.
Binary, Denary, Hexadecimal Conversion Binary Addition
Everything is a number Everything in a computer memory and on storages is a number. Number  Number Characters  Number by ASCII code Sounds  Number.
Logic Gates.
Computer Science 210 Computer Organization
CSIS-110 Introduction to Computer Science
Making Choices with if Statements
Logic You will learn three common logical operations that will be applied in much of the course (spreadsheets, databases, web searches and both programming.
Python: Control Structures
Logic Gates.
Chapter 2.3 Binary Logic.
…to GCSE Level with Python Sue Sentance
Teaching Computing to KS3
Unit 18: Computational Thinking
Teaching KS3 Computing Session 4 Theory: Boolean logic AND/OR/NOT
Logic operations.
Teaching Computing to GCSE
Teaching KS3 Computing Session 2 Introduction Theory: Binary numbers
Logic You will learn three common logical operations that will be applied in much of the course (spreadsheets, databases, web searches and both programming.
Introduction to Programming
Computers & Programming Languages
Agenda – 2/12/18 Questions? Readings: CSI 4, P
Thursday, 22 November 2018 Logic Gates
3.4 Computer systems Boolean logic Lesson 2.
Logic You will learn three common logical operations that will be applied in much of the course (spreadsheets, databases, web searches and both programming.
For OCR GCSE Computing Unit 1 - Theory
Week 7: Gates and Circuits: PART II
Logic Gates.
Logic operations.
Boolean Logic Boolean Logic is considered to be the basic of digital electronics. We know that a computer’s most basic operation is based on digital electronics.
3. Decision Structures Rocky K. C. Chang 19 September 2018
Computer Science Core Concepts
Conditional Logic Presentation Name Course Name
Binary Logic.
PYTHON: BUILDING BLOCKS Sequencing & Selection
Click to add Text Computers & Instructions. Computers are given instructions in the form of computer programs that are created through the development.
Logic Gates Revision Package.
Objectives Construct truth tables for the following logic gates:
XOR Function Logic Symbol  Description  Truth Table 
Introduction to Programming
2-2 Logic Part 2 Truth Tables.
Lecture 37 – Practice Exercises 9
Programming Techniques :: Logic & Truth Tables
Lecture 37 – Practice Exercises 9
SYEN 3330 Digital Systems Chapter 2 – Part 1 SYEN 3330 Digital Systems.
Presentation transcript:

Teaching KS3 Computing Session 4 Theory: Boolean logic AND/OR/NOT Practical: Introducing loops

Today’s session 5:00 – 6:00 Understanding logical operators and why they are important 6.00 – 7.00 Programming with loops - iteration

Recap so far

Recap so far Programming side of course Using turtle graphics in Python Sequence Functions – writing and calling If statements Input and output – print and input() Theory side of course Algorithms unplugged Binary numbers 0 – 1 Hexadecimal numbers 0 – F Bits and Bytes Homework – discuss in pairs what you have been working on. Revise the last two week’s work on binary numbers, storing text, hexadecimal numbers etc. Come up with a lesson plan that you think would be appropriate for one of your KS3 classes with a mixture of unplugged and paper exercises. Work through the exercises in the Python handout and try to finish them all.

National curriculum at KS3 understand simple Boolean logic [for example, AND, OR and NOT] and some of its uses in circuits and programming;

Activity 1: Boolean operators Follow the instructions!

Boolean operators AND OR NOT Gives a TRUE result if both INPUTS are TRUE Otherwise gives a FALSE result OR Gives a TRUE result if one or both INPUTS are TRUE NOT Gives a TRUE result if the (one) INPUT is FALSE Gives a FALSE result if the (one) INPUT is TRUE

Puzzle 1: Broken window (Bebras 2016) . How do you solve this? Write out this problem as a Boolean expression

Puzzle 1 Answer Hidden from uploaded presentation

Puzzle 2: Shelf Sort (Bebras 2016) How do you solve this? Write out this problem as a Boolean expression

Puzzle 2 Answer Hidden from uploaded presentation

Logical operators We can use Python logical operators to work with …. == is equal to != is not equal to > is greater than < is less than >= is greater than or equal to <= is less than or equal to

Activity 2: Using operators Try the worksheet questions 1-3 Extension – exercises 4-6

Activity 2 Answers Hidden from uploaded presentation

Activity 3: Who am I? Half of you have been given a card to fill in when you entered the room. These are now going to be shuffled and distributed to others in the class who are going to try and work out which is whose card. Question Answer What is your shoe size?   Do you have brown eyes? What Zone do you live in (7 if outside) Do you travel to work/school by underground? Do you have black hair? What is the last digit of your mobile number? One other fact about you that is not visible (eg I am a good skier)

Moving on … Blue eyes Black shoes Output False True Towards the end of KS3 you can introduce more notation in the form of truth tables and logic circuits AND AND Blue eyes? True or False Black shoes? Our original example AND True or False Input 1 Input 2

Moving on … Blue eyes Black shoes Output False True Towards the end of KS3 you can introduce more notation in the form of truth tables and logic circuits OR True or False Blue eyes? Black shoes? Our original example True or False Input 1 Input 2

Moving on … Black shoes? Output False True Towards the end of KS3 you can introduce more notation in the form of truth tables and logic circuits NOT NOT True or False Black shoes? Our original example NOT True or False Input 1

Break