Sequencing Learning Objective: to be able to design algorithms that use sequencing.

Slides:



Advertisements
Similar presentations
CE 311 K Introduction to Computer Methods VB Controls and Events Daene C. McKinney.
Advertisements

Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
Do it now activity Last lesson we learnt about instructions are run in a computer. Write a set of instructions that a computer could follow to make a cup.
Positive and Negative Numbers
Problem Solving Through Coding Names. PROBLEM SOLVING PROCESS UNDERSTAND THE PROBLEM: READ OR LISTEN TO THE PROBLEM. MAKE A PLAN TO SOVLE THE PROBLEM-
Addition and Subtraction of Integers
End Show Writing a computer program involves performing the following tasks. 1. Understanding the problem 2. Developing an Algorithm for the problem 3.
JAZLER SHOW2 JAZLER SHOW2 AUTOMATION SOFTWARE. EASY PLAYBACK JAZLER SHOW2 AUTOMATION SOFTWARE Jazler Show is a program that lets you load audio files.
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
Sequencing The most simple type of program uses sequencing, a set of instructions carried out one after another. Start End Display “Computer” Display “Science”
Software using a flowchart method of creating a control programme.
Algorithms and Pseudocode
Lesson 1 Sequencing.
Algorithms and Flowcharts
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
3.1 Fundamentals of algorithms
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Selection Learning Objective: to be able to design algorithms that use selection.
Do it now activity Last lesson we used Flowol to create a solution to a problem a computer could solve. Identify what each symbol does:
Lesson 1 An Introduction
Understand Problem Solving Tools to Design Programming Solutions
Teaching design techniques to design efficient solutions to problems
Learning Objective: to be able to design programs that use sequencing.
Algorithm Algorithm is a step-by-step procedure or formula or set of instruction for solving a problem Its written in English language or natural language.
Creating Flowcharts Principles of Engineering
Microsoft Excel 2003 Illustrated Complete
Starter Read the Feedback Click on Add new Feedback Open Realsmart
Creating Flowcharts AIM:
Introduction to Flowcharts
Print slides for students reference
Objective: Be able to add and subtract directed numbers.
Graph Paper Programming
Creating Flowcharts Principles of Engineering
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Designing an Algorithm
Welcome to Digital Electronics using the Arduino Board
Graph Paper Programming
Selection Learning Objective: to be able to design algorithms that use selection.
Global Challenge Night Sensor Lesson 2.
Computational Thinking for KS3
Global Challenge Night Sensor Lesson 2.
Game Controller Lesson Two.
ME 142 Engineering Computation I
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Arithmetic and Decisions
Flowcharting & Algorithms
Lesson 4 Variables.
Global Challenge Night Sensor Lesson 2.
Which way does the robot have to turn to get to the charger?
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Iteration Learning Objective: to be able to design algorithms that use iteration.
Creating Flowcharts Principles of Engineering
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Objective: Be able to add and subtract directed numbers.
Lesson 1 – using the LED lights
Iteration Learning Objective: to be able to design algorithms that use iteration.
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Creating Flowcharts Principles Of Engineering
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Learning Objective: to be able to design programs that use iteration.
Presentation transcript:

Sequencing Learning Objective: to be able to design algorithms that use sequencing.

This is Bobbot, a robot that is controlled by the BBC micro:bit. You are going to be using it to help you learn key Computer Science concepts.

LeftMotor.forward(on) RightMotor.forward(on) Algorithms An algorithm is a set of steps that can be followed to solve a specific problem. Algorithms can be represented in a number of ways, these include: Flowcharts Start Stop Left Motor Forward On Right Motor Forward On Pseudocode LeftMotor.forward(on) RightMotor.forward(on)

Flowcharts Start / Stop Input / Output Decision Process Flowcharts allow us to design algorithms using symbols. These are the main symbols used in flowcharts: Start / Stop Input / Output Decision Process

Predict what this algorithm will do: Right Motor Forward Off Activity 1 The simplest type of algorithm takes the form of a sequence. Start Left Motor Forward On A sequence is a set of instructions that are carried out once in the order they appear. Right Motor Forward On This is an example of a sequence: Delay 2 Predict what this algorithm will do: Left Motor Forward Off Prediction: Right Motor Forward Off Stop

Fill in the blanks to complete the algorithm: Activity 2 This is the design for an algorithm that makes the Bobbot go forward for 5 seconds, then backward for 5 seconds before stopping. Fill in the blanks to complete the algorithm: Start Left Motor Backward On Left Motor Forward On Right Motor Forward On Delay 2 Delay 2 Stop

Right Motor Forward Off Activity 3 An algorithm is turned into a computer program by writing it in program code. Match the lines of program code to the algorithm: Start Left Motor Forward On Right Motor Forward On Delay 2 Left Motor Forward Off Right Motor Forward Off Stop

Mu Editor You are going to use the Mu editor to program your micro:bit. Click this button to load your program onto your micro:bit You always need this line at the start of every program. You also need these lines, they assign easy to remember names to each of the micro:bit pins that control Bobbot.

Place a screenshot of your code here: Activity 4 Use the Mu editor to create the program you designed in activity 3 and test it on Bobbot. Place a screenshot of your code here:

Activity 5 Here is part of the program code for the algorithm from activity 2. You need to complete it by adding the missing code. Place a screenshot of your code here: Add code here to move forward for 2 seconds and stop. Add code here to stop moving backwards.

Right Motor Forward Off Turning You can turn Bobbot by making only one of the motors go forward. For example if you want to turn left then you can make only the right motor move forward. Start Stop Right Motor Forward On Delay 1 Right Motor Forward Off

Right Motor Forward Off Activity 6 Complete this algorithm for Bobbot that is designed to make it move forward, turn left and move forward again before stopping. Start Left Motor Forward On Right Motor Forward On Delay 2 Right Motor Forward Off Stop Delay 1

Place a screenshot of your code here: Activity 7 Turn the algorithm you designed in activity 6 into a program and test it on Bobbot. Place a screenshot of your code here:

Place a screenshot of your code here: Extension Adapt your program from activity 7 to make Bobbot move to form a square pattern. Place a screenshot of your code here: