Instructing the computer with algorithms and flowcharts

Slides:



Advertisements
Similar presentations
How can we arrange a set of instructions in sequential order?
Advertisements

Working With Algorithm and Flowcharts
Non-fiction text Explains how to make something or how to do something.
Unit 7.6 Lesson 2 Goals Identify and use flowchart symbols. Plan a sequence of events and incorporate them into a flowchart. Create a simple flowchart.
Intro to Programming Logic and Design CIS 115 Brought to you by: done by Angela Robinson for CSC 289.
Algorithm Design CS105. Problem Solving Algorithm: set of unambiguous instructions to solve a problem – Breaking down a problem into a set of sub- problems.
NameSymbolFlowchart use OvalThis is used at the start and at the end of a program to start and stop the program. Flow lineThis shows which way the logic.
Introduction to Algorithm – part one Jennifer Elmer Form 3 Computing.
Lesson Objectives 1. Practise writing sequence of instructions 2. Write flowcharts for different mechanisms Keywords: Input sensor Motion sensor Output.
Introducing Scratch the Cat
Looking after teeth and gums. In this lesson I will learn about Brushing my teeth and gums twice a day, before going to bed at night and in the morning.
A PowerPoint about Algorithm’s. What is an algorithm?  a process or set of rules to be followed in calculations or other problem-solving operations,
End Show Writing a computer program involves performing the following tasks. 1. Understanding the problem 2. Developing an Algorithm for the problem 3.
Slide 1 Controlling Sequences of Events Traffic lights Event table.
Computer Control Using computers to do tasks. What are Computers used for? ringing your alarm clock. microwaving your breakfast checking for text messages.
Algorithms. Teacher Lead Activity What is an algorithm? Homework Recap!
By the end of this session you should be able to... Understand what is meant by ‘thinking logically’ including: Identify the points in a solution where.
Scratch Programming Cards
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Programming – Algorithms (Flowcharts)
Creating Flowcharts Principles of Engineering
Creating a Flowchart Computer Integrated Manufacturing
Understand Problem Solving Tools to Design Programming Solutions
Movement Game Design (Scratch).
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Making coffee Start or stop Process Decision Input/output Start
Lesson 1 - Sequencing.
FLOWCHARTS Part 1.
Lesson 1 An Introduction
 Firstly you need to press the “Windows” key, and then simply enter “Google Chrome” that will bring up the search option. Here you need to right-click.
Understand Problem Solving Tools to Design Programming Solutions
Learning Objective: to be able to design programs that use sequencing.
Introduction to Algorithm – part 1
Uses English creatively and innovatively
Remove toast from toaster
Algorithms & Logic.
How can we arrange a set of instructions in sequential order?
Programming Logic n Techniques
Algorithms & Logic Mr Conti.
Writing my algorithm ? Name Symbol Flowchart use Oval
Creating Flowcharts Principles of Engineering
GETTING READY: The Basics of Using the Mobile Cart & Laptops
Introduction to Flowcharts
Print slides for students reference
Design and Technology Academic Year 2017/2018 Grade 7 First Semester.
Algorithms Today we will look at: what the word algorithm means
Algorithms Y10 Introduction.
Creating Flowcharts Principles of Engineering
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Motion and Looks.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
ME 142 Engineering Computation I
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Flow Diagrams Start End
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
ICT Gaming Lesson 2.
Global Challenge Night Sensor Lesson 2.
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Creating Flowcharts Principles of Engineering
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Flowcharts Activity One
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Presentation transcript:

Instructing the computer with algorithms and flowcharts Lesson 1 Instructing the computer with algorithms and flowcharts

Algorithms Computers need to be programmed with what they must do, they cannot think for themselves! Algorithms are lists of instructions that computers ‘read’ and act upon.

You press the button on your computer…………. Computer looks for operating system (like Windows) and finds it Computer displays ‘loading’ message Computer finds all desktop icons Computer displays mouse cursor Computer awaits further instructions

Here is an example of an algorithm for making toast Take bread out of the packet Place bread in the toaster Select colour Push toaster button down Await toast popping up When it pops up, take it out Apply butter to the toast

Flowcharts Algorithms get turned into flowcharts so we can be precise when telling the computer what to do. Here is a simple example: start Read the board Open your planner Pick up a pen Write your hwk stop

Have students take out their laminated shapes and use the following statements to make a flowchart for cleaning teeth Run the cold tap Rub the brush on your teeth Spit out the paste Put the brush in your mouth Put toothpaste on Rinse your mouth out

Decisions!

When algorithms can go one way or another Sorry, do you take sugar? How many? Do you take milk? How much? Hmm this changes things!

Algorithms to flow charts start Algorithms to flow charts Boil water These start and end processes These start and end processes These start and end processes Add coffee This is a decision symbol, the flow can go one of two ways This is a decision symbol, the flow can go one of two ways This is a decision symbol, the flow can go one of two ways This is a decision symbol, the flow can go one of two ways This is a decision symbol, the flow can go one of two ways Sugar? yes Add sugar no Stir coffee These are used for actions These are used for actions These are used for actions These are used for actions These are used for actions end

This is a decision symbol, Turn a cup of coffee algorithm into a flow chart using the shapes supplied These start and end processes These are used for actions This is a decision symbol, the flow can go one of two ways Connect the shapes

Here is an algorithm for making the Scratch cat walk start no Don’t move Is right key pressed? yes Point right Move right 10 Is left key Point left Move left stop Here is an algorithm for making the Scratch cat walk Is right key pressed? Is right key pressed? Is right key pressed? Is right key pressed? Here it is as a flow chart yes yes yes yes yes yes yes no no no Don’t move Don’t move Don’t move Don’t move When the left key is pressed, point left and move 10 paces When the right key is pressed, point right and move 10 paces Point right Point right Point right Point right Point right Point right Point right Point right Point right Move right 10 Move right 10 Move right 10 Move right 10 Move right 10 Move right 10 Move right 10 Move right 10 Move right 10 Move right 10 Move right 10 Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? Is left key pressed? yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes no no no no no no no no no no no no no no no no no Don’t move Don’t move Don’t move Don’t move Don’t move Don’t move Don’t move Don’t move Don’t move Don’t move Don’t move Don’t move Don’t move Don’t move Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Point left Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 Move left 10 stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop stop