Download
sequencing miss regan n.
Skip this Video
Loading SlideShow in 5 Seconds..
Sequencing Miss Regan PowerPoint Presentation
Download Presentation
Sequencing Miss Regan

Sequencing Miss Regan

112 Views Download Presentation
Download Presentation

Sequencing Miss Regan

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. SequencingMiss Regan

  2. Blood Hound • Does anyone know what the Bloodhound project is? • Video 1 • Video 2 • Link to website

  3. Keyword Descriptions • Throughout this session we will be learning new keywords. • Use the hand out to record the different meanings and examples for each of the words.

  4. Control Keywords • Control – Making something do something using technology. • Variable – Something that can be changed to change the outcome. • Prediction – A guess or an estimation of what you think will happen. • Simulation – A computer representation of the real world. • Rule – Set of instructions that must be followed. • Test – Checking if the predictions were correct.

  5. Understand how sequences work • By the end of the lesson; • You must have used a flow chart to show the correct order of a sequence. • You should understand that different symbols in a flow chart represent different types of events. • You could write your own sequence of code to control a character in a game.

  6. Sequence • A sequence is the order that events follow each other to carry out a task. • A flow chart can be used to show the sequence of events. • This could show the order of events to get ready in the morning, or the order of events for a character in a game depending on the controls that have been pressed

  7. Input, Process, Output • In all control systems there must be an Input, Process and Output. • Input – A user action or data input in to the system. • Process – The system processes the data in some way. • Output – The outcome of the process.

  8. Input, Process, Output Example 1 • When playing a computer game; • Input – The user presses the right arrow button on the game controller. • Process – The games console recognises which button has been pressed and finds the event attached to that button. • Output – The character on the screen moves right.

  9. Input, Process, Output Example 2 • When using a spread sheet; • Input – The user enters numbers in to two cells. • Process – A function calculates the sum of the two numbers. • Output – The answer is output on the screen.

  10. Input, Process, Output Example 3 • When using a supermarket barcode scanner; • Input – The barcode is scanned with the scanner. • Process – The barcode is compared to all barcodes in the database and matched to the correct product. • Output – The product details are displayed on the cashiers monitor.

  11. Symbol • Different symbols are used within flow charts to show the different types of events that may take place; • Input/Output • Process • Decision • Now try to complete Tasks 1& 2 on the Interactive website.

  12. Lesson Tasks • Task 1 – Drag and drop the sequence into order • Task 2 – Drag and drop the symbols

  13. Code • In order for the computer to process the tasks we want it to carry out, the events must be written in the correct code for it to understand. • When we are clicking the mouse or typing something on the keyboard there are pieces of code being processed in the background to tell the computer to select an object or display a letter on the screen. • Different types of code are called programming languages and there are lots of them for different software just like there are lots of languages spoken in different countries. • Try to work out what the different code is to complete tasks 3 & 4.

  14. Lesson Tasks • Task 3 – Dock the block • Task 4 – Drag and drop the symbols

  15. Functions • Often within code there are tasks that need to be repeated. • Selecting a piece of text or selecting an image on a PowerPoint slide uses the same function, as both things are objects that can be selected by clicking on them using the mouse. • The same button on a controller can be pressed to accelerate in a Mario Cart game for different characters. • Without using functions we would have to keep repeating the same lines of code. • When using functions we can just refer to the name such as “function 1” or “function 2”, or even better naming would be “Select object” or “Accelerate”, using functions saves a lot of time. • Try to complete task 5, when you get to level 6 you will need to use functions.

  16. Lesson Tasks • Task 5 – Lightbot This game is quite difficult so it is very important to read all of the instructions!