Control Procedures
Starter You have 2 minutes START Take left earring out Place on table Pick up new earring Put it on Take right earring out...
Starter A procedure can be created to avoid repetition of instructions. Take left earring out PROC earring Take right earr...
Lesson Objectives <ul><li>Identify  procedures  within a system </li></ul><ul><li>Understand how to  store  and  edit comm...
Learning Outcomes <ul><li>Starter –  Identify procedures </li></ul><ul><li>Task 1 –  Build & Edit a procedure to create a ...
<ul><li>Advantages:  </li></ul><ul><li>Saves a lot of work </li></ul><ul><li>Building program is very easy </li></ul><ul><...
<ul><li>Square Procedure : </li></ul><ul><li>Activate a procedure by clicking on  EDALL  or type  Edit “Square </li></ul><...
<ul><li>Load LOGO and build and edit a procedure </li></ul>Task 1 You have 10 minutes <ul><li>Build a procedure to create ...
<ul><li>E.g. To build a house: </li></ul><ul><li>PROC 1 – Square </li></ul><ul><li>PROC 2 – Triangle </li></ul><ul><li>PRO...
<ul><li>Using procedures within procedures  </li></ul>Task 2 <ul><li>Create procedures to draw a house </li></ul><ul><li>C...
<ul><li>Recursions enables you to do continuous repeats by using shapes within shapes </li></ul>Task 3 <ul><li>Create proc...
<ul><li>Lists of commands can be used to create  Procedures . </li></ul><ul><li>Procedures are  easy  to build and  saves ...
<ul><li>A  procedure  is a  program  that is created and used in a bigger program. </li></ul><ul><li>A procedure can be us...
Upcoming SlideShare
Loading in …5
×

Control lesson 4

250
-1

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
250
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Control lesson 4

  1. 1. Control Procedures
  2. 2. Starter You have 2 minutes START Take left earring out Place on table Pick up new earring Put it on Take right earring out Place on table Pick up new earring Put it on STOP Which instructions are repeated?
  3. 3. Starter A procedure can be created to avoid repetition of instructions. Take left earring out PROC earring Take right earring out PROC earring STOP PROC earring Place on table Pick up new earring Put it on
  4. 4. Lesson Objectives <ul><li>Identify procedures within a system </li></ul><ul><li>Understand how to store and edit commands in procedures </li></ul><ul><li>Recognize the advantages of storing commands for writing programs </li></ul>
  5. 5. Learning Outcomes <ul><li>Starter – Identify procedures </li></ul><ul><li>Task 1 – Build & Edit a procedure to create a square </li></ul><ul><li>Task 2 – Create a procedure to draw a house </li></ul><ul><li>Task 3 – Create a procedure to create a street </li></ul>
  6. 6. <ul><li>Advantages: </li></ul><ul><li>Saves a lot of work </li></ul><ul><li>Building program is very easy </li></ul><ul><li>Quick to edit a procedure </li></ul><ul><li>Procedures can be tested and used again </li></ul>Procedures Computers are given instructions with a list of Commands. This group of commands is used to build a procedure
  7. 7. <ul><li>Square Procedure : </li></ul><ul><li>Activate a procedure by clicking on EDALL or type Edit “Square </li></ul><ul><li>Actions need to be between To and End </li></ul><ul><li>e.g. To Square </li></ul><ul><li>Repeat 4 [FD 100 RT] </li></ul><ul><li>End </li></ul><ul><li>3. Test by highlighting the commands - Repeat 4 [FD 100 RT] and clicking on TEST </li></ul><ul><li>4. To save your procedures go FILE and Save & EXIT </li></ul>How?
  8. 8. <ul><li>Load LOGO and build and edit a procedure </li></ul>Task 1 You have 10 minutes <ul><li>Build a procedure to create a Square </li></ul><ul><li>Edit the procedure to make the square smaller </li></ul>
  9. 9. <ul><li>E.g. To build a house: </li></ul><ul><li>PROC 1 – Square </li></ul><ul><li>PROC 2 – Triangle </li></ul><ul><li>PROC 3 – House </li></ul>Multiple Procedures Computers can be programmed to include procedures within procedures to create special effects
  10. 10. <ul><li>Using procedures within procedures </li></ul>Task 2 <ul><li>Create procedures to draw a house </li></ul><ul><li>Create a procedure called street to draw a row of house </li></ul>You have 10 minutes
  11. 11. <ul><li>Recursions enables you to do continuous repeats by using shapes within shapes </li></ul>Task 3 <ul><li>Create procedures to draw complicated and impressive pictures </li></ul>You have 10 minutes
  12. 12. <ul><li>Lists of commands can be used to create Procedures . </li></ul><ul><li>Procedures are easy to build and saves a lot of work </li></ul><ul><li>Procedures can be stored, tested and used again . </li></ul><ul><li>Impressive pictures can be programmed using procedures within procedures. </li></ul>What can I remember? Plenary
  13. 13. <ul><li>A procedure is a program that is created and used in a bigger program. </li></ul><ul><li>A procedure can be used a number of times. </li></ul><ul><li>There is a special symbol for a procedure. </li></ul><ul><li>A procedure is also called a subroutine . </li></ul><ul><li>Testing a program can be made easier by creating procedure for the various stages and testing them separately first. </li></ul><ul><li>It also helps to organize the way a program looks. </li></ul>

×