Adaptable Procedures By Phil Bagge HIAS Computing Inspector / Advisor

Slides:



Advertisements
Similar presentations
Introduction to C Programming
Advertisements

Love Lifted Me Click here to play The slides advance automatically with the words.
BY TAMEKA And Sharee. Eating the apple Eating the apple Firstly the food goes in the mouth; it is chewed in to little pieces.
My name is Charlie Crocodile
How our brains work And how it ties in to programming and arrays Storage Sorting Algorithms Etc…
Working with Variables code-it.co.uk By Phil Bagge.
1. Stand with your legs apart.2. Put your left hand on your side.3. Put your right arm straight up in the air.4. Bend over to the left, keep your.
Click on the arrow to learn more! Our Body Systems!
Introduction to Algorithms Engineering 1D04, Teaching Session 1.
Digestive systems Life Process? Nutrition Transport When is food “in you”? Autotrophic vs. heterotrophic Eat other things for fuel Raw materials for synthesis.
Classroom games Hum Tag 1)All players get into groups of three. 2)Define the boundaries of the playing field. Players spread out within the boundaries.
Responsibility Content by: Pam Mason Template Design by: Mark Geary Assemblies Bike & Bus Cafeteria Media Center Computers Q $100 Q $200 Q $300 Q $400.
When I Eat Lunch at School By: Rachel Lutz Setting: MOD Elementary Class.
Digestive System Hannah McGoldrick 3-2. Overview How the system works and its it’s purpose is to turn the food you eat into something useful for your.
Libby and Holly. Eating the apple The food goes in the mouth it is chewed into little pieces by the teeth and is mixed with saliva.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
Core Muscles Strengthening Exercises By Dr.Hardik Patel Head Of Department(Physiotherapy) Fortis Hiranandani Hospital.
1 ©2006 INSciTE Lab Three Task: Move forward for 2 feet, turn right 90º repeat to complete a square path. End up exactly where you started.
Jonathon Kuo Under the Direction of Dr. Susan Rodger
Lesson Objectives Aims Key Words
3.1 Fundamentals of algorithms
Excuse me, are these your teeth?
Add and Subtract Negative Numbers
Activity 2: What am I communicating?
My name is Charlie Crocodile
Lesson one LO: To order numbers from smallest to biggest.
Expectations for Cafeteria
information in black might be on the Safety Quiz!!
Writing times in digital
Gaming with conditionals
Expectations by Location
Frog Anatomy & Dissection
Graph Paper Programming
Unit 2 Part 1.
Drama At Cornwallis Academy
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Line Following Behavior
Prepared by D. Ruth Viola.
Recap the basics Lesson 1.
Expectations for Cafeteria
Development Laboratory
Today we face the dreaded heads and legs mathematical pickles!
Hundreds board counting
Computer Science Sorting.
Procedure A set of instructions grouped together to carry out a task
Mindful Eating.
Flow Diagrams Start End
My name is Charlie Crocodile
Gaming with conditionals
Algorithms with variables that are assigned a number
Everyday sequence algorithms that develop movement
Introduction to Repetition
Recap the basics Lesson 1.
The structure of programming
Introduction to Repetition
© A+ Computer Science -
CODING.
Quick Review and Warm-Up You can copy for notes if needed.
Table Manners.
Thinking procedurally
Remember Procedures A set of instructions grouped together to carry out a task. Run a procedure by using its name. Procedures can be run/used lots of.
Best Friends App By Phil Bagge HIAS Computing Inspector / Advisor
Stem and Leaf Diagrams How to construct a Stem and Leaf Diagram, and use it to find the median and range Adapted from MrBartonMaths.com.
Put todays date next to these learning objectives
Iteration Learning Objective: to be able to design algorithms that use iteration.
Statistics Stem and Leaf Diagrams.
Lecture 20 – Practice Exercises 4
Basic Procedures By Phil Bagge HIAS Computing Inspector / Advisor
Condition Switches between actions
Presentation transcript:

Adaptable Procedures By Phil Bagge HIAS Computing Inspector / Advisor CAS Community Leader Author of the code-it resources Supported by

You may remember these basic procedures walk, eat and breathe Define breathe Breathe in Wait Breathe out wait Define walk Move right leg forward Wait Move left leg forward wait Main Algorithm Loop always breathe if need to go somewhere walk if hungry AND food near eat Procedures Define eat Put food in hand Lift hand to mouth Put food into mouth Loop until a paste chew swallow

Adaptable procedures are ones where we can add information to the procedure every time we run it. Define walk (wait time) Move right leg forward Wait (wait time) Move left leg forward Walk (2 seconds)

Adaptable procedures are ones where we can add information to the procedure every time we run it. Which will cause the procedure to walk faster walk (1 second) or walk (2 seconds) ? Define walk (wait time) Move right leg forward Wait (wait time) Move left leg forward Walk (2 seconds) Walk (1 second)

Adaptable procedures are ones where we can add information to the procedure every time we run it. Which will cause the procedure to walk faster walk (1 second) or walk (2 seconds) ? Define walk (wait time) Move right leg forward Wait (wait time) Move left leg forward Walk (2 seconds) Walk (1 second)

We call the changeable part of a procedure a parameter Walk (2 seconds) Define walk (wait time) Move right leg forward Wait (wait time) Move left leg forward

Here is another everyday example Define breathe (wait time) Breathe in Wait (wait time) Breathe out Loop always breathe (0.5 seconds)

Adaptable procedures can be used alongside basic ones Define walk (wait time) Move right leg forward Wait (wait time) Move left leg forward Define breathe (wait time) Breathe in Wait (wait time) Breathe out Main Algorithm Loop always breathe (1 second) if need to go somewhere walk (1.5 seconds) if hungry AND food near eat Define eat Put food in hand Lift hand to mouth Put food into mouth Loop until a paste chew swallow

Here is another everyday example Define tongue_out (wait time) Poke tongue out Wait (wait time) Hide tongue tongue_out ( ) On your whiteboard change the parameter and see if your partner can act it out

Here is another everyday example tongue_out ( ) Define tongue_out (wait time) Poke tongue out Wait (wait time) Hide tongue Can you use this adaptable procedure within a count controlled loop? Write one for your partner to act out