Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 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 of tea – use functions.

2 Homework The History of Computing Research Tim Berners-Lee, find out: 1.When he lived 2.What he invented and what this did 3.What impact this had on computing Due:

3 Understand what is meant by a computational problem

4 1.Identify how a computer can meet the needs of a given scenario 2.Identify the sub-problems of a given scenario and how you will solve them

5 ALL (Level 5) Identify the sub-problems of a given scenario MOST (Level 6) Create a flowchart to show how you have met the needs of the problems and sub-problems of a given scenario SOME (Level 7) Plan your solution to the problem and sub- problems using subroutines Identify how a computer can meet the needs of a given scenario Identify the sub-problems of a given scenario and how you will solve them Scenario Computational problem Sub-problem Planning Flowchart Input Process Output

6 New Learning Scenario Computational problem Sub-problem Planning Flowchart Input Process Output What is the computational problem that this mimic is solving? Complete the following in your book. The problem: A computer can solve this by: Identify how a computer can meet the needs of a given scenario Identify the sub-problems of a given scenario and how you will solve them

7 New Learning Use the Start symbol at the beginning of the flowchart program. Use the Stop symbol at the end of a subroutine, and at the end of a program which is not recursive (repeating).Use the Sub symbol to head a subroutine. (Note: subroutines should be defined before the main program). Use the prompts to make your selection. Scenario Computational problem Sub-problem Planning Flowchart Input Process Output Identify how a computer can meet the needs of a given scenario Identify the sub-problems of a given scenario and how you will solve them

8 New Learning Use the Output symbol to turn on or turn off an output or a motor. Use the prompts to make the selection. (Note: all the outputs or all the motors can be turned on or off within one symbol). Scenario Computational problem Sub-problem Planning Flowchart Input Process Output Identify how a computer can meet the needs of a given scenario Identify the sub-problems of a given scenario and how you will solve them

9 New Learning Use the process symbol to put in a delay (e.g. how long the output needs to be switched on for). This is also used to call up a subroutine, or to set up a variable. Use the prompts to make your selection. Scenario Computational problem Sub-problem Planning Flowchart Input Process Output Identify how a computer can meet the needs of a given scenario Identify the sub-problems of a given scenario and how you will solve them

10 New Learning Use the Decision symbol to decide if ‘Yes do this’ or ‘No do that’. It is used to check for feedback from an input signal such as: is the switch on, or is the temperature value more than, less than or equal to x etc? This symbol can also be used to check the values of a variable. Use the prompts to make your selection. Scenario Computational problem Sub-problem Planning Flowchart Input Process Output Identify how a computer can meet the needs of a given scenario Identify the sub-problems of a given scenario and how you will solve them

11 New Learning Scenario Computational problem Sub-problem Planning Flowchart Input Process Output Identify how a computer can meet the needs of a given scenario Identify the sub-problems of a given scenario and how you will solve them

12 Independent Task Using your task sheet follow the instructions to create a solution for a lighthouse Scenario Computational problem Sub-problem Planning Flowchart Input Process Output Identify how a computer can meet the needs of a given scenario Identify the sub-problems of a given scenario and how you will solve them

13 Plenary How will working out the needs of a scenario help you to become a more efficient programmer? Scenario Computational problem Sub-problem Planning Flowchart Input Process Output Identify how a computer can meet the needs of a given scenario Identify the sub-problems of a given scenario and how you will solve them

14 ALL (Level 5) Be able to take a problem and divide it into its main sub- problems. Identify the sub-problems of a given scenario MOST (Level 6) Be able to take a problem and divide it into all its sub-problems and show this as a diagram. Create a flowchart to show how you have met the needs of the problems and sub- problems of a given scenario SOME (Level 7) Be able to define an outline of a solution in terms of functions and global values. Plan your solution to the problem and sub-problems using subroutines Identify how a computer can meet the needs of a given scenario Identify the sub-problems of a given scenario and how you will solve them Scenario Computational problem Sub-problem Planning Flowchart Input Process Output

15 Level 7 – Help Sheet For students attempting Level 7 work it is necessary for them to include sub-routines in their flowcharts. Sub routines can be created using the same symbol used for START and then can be added to the main flowchart using the same symbol used for adding a PROCESS. This allows the subroutine to be called as many times as required from the main program, this means you do not need to write out the routine in full each time you need it, instead you just add the subroutine symbol (see example above). Main flowchart Subroutine ONE Subroutine TWO


Download ppt "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."

Similar presentations


Ads by Google