Bug Session Two. Session description In this session the use of algorithms is reinforced to help pupils plan out what they will need to program on their.

Slides:



Advertisements
Similar presentations
The Daily 5 in Kindergarten
Advertisements

Visual Lists By Chris Brown under Prof. Susan Rodger Duke University July 2012.
Bug Session One. Session description In this session, pupils are introduced to a programming sequence which will make a light pattern on their Bug. Objectives.
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
An intro to programming concepts with Scratch Session 2 of 10 sessions I/O, variables, simple computing.
Sequencing Miss Regan. Blood Hound  Does anyone know what the Bloodhound project is?  Video 1 Video 1  Video 2 Video 2  Link to website Link to website.
Bug Session Three. Session description In this session, pupils will discover how the Bug software makes drawing shapes easier (this is based on the use.
Type your project title here Your name Your teacher’s name Your school
Learning to program using Minecraft. Learning Objective Know what Minecraft is and to explain some of it’s uses Build a simple house in creative mode.
Bug Session One. Session description In this session, pupils are introduced to a programming sequence which will make a light pattern on their Bug. Objectives.
Unit 1 – Improving Productivity Ryan Wetton Instructions ~ 100 words per box.
Understanding the Properties SD Counts. Ground Rules  Honor private think time  Be prepared for sessions, everyone should have something to contribute.
Making a Timer in Alice.
Code Club Session 2 Dance Party. What will we learn ?  How to change the background  How to create animations  How to make objects talk to each other.
Introduction to Scratch!
Se Over the past decade, there has been an increased interest in providing new environments for teaching children about computer programming. This has.
Introduction to Arrays. definitions and things to consider… This presentation is designed to give a simple demonstration of array and object visualizations.
Bug Session Four. Session description Objectives Session activities summary Resources Prior knowledge of sequencing instructions using Bug Bug website.
By the end of this session you should be able to...
Bug Session Three. Session description In this session, pupils will discover how the Bug software makes drawing shapes easier (this is based on the use.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
Animating Objects in Groups: Using Arrays and Lists By Ruthie Tucker under the direction of Professor Susan Rodger Summer 2008.
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
Unit 1 – Improving Productivity Instructions ~ 100 words per box.
Introduction to Video Game Programming (VGP) Mr. Shultz.
Spreadsheets Lesson 2 Introduction to basic formula and spreadsheet.
Friday 14 th September 2012 In todays lesson we were introduced to our new coursework. We looked at the DIDA Wildcare project. I then made a new folder.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
Using Lists Games Programming in Scratch. Games Programming in Scratch Extension – Using Lists Learning Objectives Create a temporary data store (list)
M1G Introduction to Programming 2 3. Creating Classes: Room and Item.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
I have used Scratch, to program a guide to internet safety. This is done by using QR codes to make it more interactive and interesting for people playing.
ICT/COMPUTING RULES Only use software allowed by the teacher
Creating your own Handheld Games Console
Objective of the lesson Use Blockly to make a dice for Snakes and Ladders All of you will: – Make an image which displays when you press a button Most.
You will be able to describe the term textual programming. You will be able to demonstrate a basic level of textual programming skills by creating a simple.
Learning to use a ‘For Loop’ and a ‘Variable’. Learning Objective To use a ‘For’ loop to build shapes within your program Use a variable to detect input.
By Melissa Dalis Professor Susan Rodger Duke University June 2011
IL Marking Get out your CPU / Memory answers Swap with someone else
Broadcasting (Adding a new level)
An Introduction to VEX IQ Programming with Modkit
Games Programming in Scratch
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
Starter Activity Instructions: Complete the starter sheet Planner
9.1 Fifteen-Game (Board Game)
Module 1: Investigation 4 Defining your own Pattern Blocks
Mr. Haduch’s Guide to Angle Fluency
Control Structures
Learning to Program in Python
Print slides for students reference
Doing some Boolean: On/Off
LESSON 11 – WHILE LOOPS UNIT 5 – 1/10/17.
Creativity in Algorithms
Using Objects in Alice.
Explain what touch develop is to your students:
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
BBC Microbit.
An Introduction to VEX IQ Programming with Modkit
Personalize Practice with Accelerated Math
Coding Concepts (Basics)
An Introduction to VEX IQ Programming with Modkit
An intro to programming concepts with Scratch
Game Over Module 4 Lesson 2.
An Introduction to VEX IQ Programming with Modkit
Game development using Scratch
Primary School Computing
Scratch 7B IT 1.
Presentation transcript:

Bug Session Two

Session description In this session the use of algorithms is reinforced to help pupils plan out what they will need to program on their Bug. They are introduced to the idea of a variable and discover how variables can be used in a program. Objectives The students will: Use an algorithm to plan a sequence Use an algorithm to plan a sequence using a variable Use a variable in a program Use variables to create patterns Debug any errors in their program Session activities summary Reinforce use of an algorithm to be implemented as a program Discover how a variable can be used to make lines on a Bug Resources Bug website Bug software Bug Bug cables Bug: Session Two 1

Activities Planning an algorithm What is an algorithm? (check understanding from previous session) A set of instructions to achieve a set objective. Make sure pupils understand it is 'planning' what will happen and that the coding or programming is actually 'making it' happen. Can you write the algorithm to turn an LED on and off? Accept any way of recording this; numbered instructions, a flow chart or other way of recording. Make sure pupils are not actually describing the blocks they used but are listing the sequence of what happens. In lesson 1 we have seen that using a repeat block makes our programming easier. We are now going to find a way to light up a whole row without having to program each LED light individually. What does variable mean? - something that changes. A lot of games keep a 'score' to show you how well you are doing. 'Score' is a variable. When you have a spelling test what happens each time you spell a word correctly? -Your score goes up by one -Show score as a box -I’ve got another spelling right what happens to my score? -Add one to the score (repeat as necessary). Write this as an algorithm. Time 5 minutes 2 Spelling test algorithm Set score to 0 Repeat for the number of words in the test Listen to spelling Write spelling If spelling is correct add 1 to score Did you know? There is a Bitesize computing guide called: What is an algorithm? z3whpv4#orb-banner

Bug: Session Two We are going to use a variable to make any LED in a row light up. Teacher demonstrates using set item block (Click on Variables to see these blocks). 5 minutes 3 Use drop down menu next to item to rename it as 'x'. Our variable that will change is the 'x'. What happens when I run this bit of program? What happens when I change the value of x? – show changing it to any number between 1 and 4. Ask the children to create a variable for ' x' and see if they can change it. Can they find out how to set a variable for y and change it? 10 minutes Drag both the 'set item' and 'item' blocks from the Variable menu to the script area together with the ‘plot’ block from the LED menu. Drag the ‘0’ value block from the Basic menu to put in set item block.

Bug: Session Two We can get our Bug to change the variable itself by counting. As it counts the x variable from 0 to 4 this will light up each LED moving across the row. Show pupils ‘count with’ block under Loop menu. We have already used the repeat loop. This is a special kind of repeat loop. Challenge: Can you use these blocks to get the top row of LEDs to light up? It is counting from 0 to 4 going up in 1s. Each time the count is increased by 1 it repeats the loop but changes the value of the variable. What variable do we need to change? The value of the 'x' coordinate. Note: Pupils will need to rename item to be 'x'. They can set the 'x' value to '0' – as they did earlier in the lesson. Encourage pupils to keep testing what they have done to see if it works. Provide guidance as needed. 10 minutes 4

Bug: Session Two 15 minutes 5 minutes 5. Download your pattern to your Bug. What do you need to do to make different columns light up? You will need to make a variable for 'y' and change the value of 'y'. What patterns can you create on your Bug? Pupils will be able to rename the variable 'x' to change it to 'y'. If they want to have rows and columns drawn in the same pattern, they will need to add a new variable. Go to Variables. Get a ‘set item’ block and choose new variable from the drop down menu. Encourage pupils to look at each others’ patterns and ask for help from their peers. See session one.