You are on page 1of 3

Teacher: Mrs.

Valli Number of pupils: 30

Class/Set: 9N2

Date: 07/03/12

Time/Period: 3&4

Room: CC Level:5/6

Subject: Progranimate Control Structures & Iteration Scheme of Work:

Learning Objectives (WALT): Able to understand the importance of writing algorithm using control structures & iteration. Able to describe the stages involved in designing algorithm using control structures & iteration

- Able to solve complex algorithm using combination of control structures and iteration loops. Intended Learning Outcomes (WILF): All must be able to: understand how to design algorithm using control structures & iteration. Most should be able to: differentiate the purpose of each control structure and iteration loops. Some could: use combination of both control structures and iteration loops to solve a problem.
Keywords: Progranimate, programming, algorithm, program, read, write, print, assign, variable, run, terminate, variable status, flow chart, control structures, iteration, loops, if..else, do..while, for..next, Boolean, true, false, skip. Reference to cross-curriculum issues (Literacy, Numeracy, Citizenship, PSHE, ECM..): Entry ( 2.5 mins) Starter (5 mins): GameMaker/ BYOB Self & Peer Evaluation Homework Comments (Discussion) Include more than 1 screenshots to explain the game sequence Differentiate between questions and answers; e.g. Use bold for questions You should be able to come out with a solution to solve any problem. It's good to add more features, but please don't have a negative thoughts that it is going to burden you. By correcting the program, you will learn from the mistakes and gather prolonged experience. You should include more explanations when you self-evaluate. It will generate more ideas, identify problems and used for your future reference. Resources GameTesting.pptx Evaluation.doc

I appreciate that you have work individually and take the full responsibility, but you should know that when you enter the office in 'future', it is going to be teamwork. Therefore, practise to exchange ideas and share responsibilities (reduce your workload). Main ( 55 mins): Explain WILF The If & Structure It allows decisions to be made within a program. It must contain a Boolean expression. When program runs, If the argument evaluates to true, the flow of code is directed inside the Ifs structure. If the argument evaluates to false, the flow of execution is directed to skip over the Ifs structure.

Progranimate_It eration.pptx

The If..Else Structure It has two possible paths of execution. Components can be placed on both the true or false paths of this structure It takes a Boolean expression during its definition. At run time, if the result is true, control is passed down the true left side path of the If structure. If the result is false, control is passed down the false side of the If_Elses structure.

The Do While Loop It allows looping within programs. If its expression evaluates to true, then the flow of execution is directed downwards within the Whiles structure. The components and sub structures inside the While loop are then executed in order until the End_While is reached.

The For..Next Loop It behaves like a while loop except it increments a variable without the need for an additional assignment statement. With each loop the value of the control variable is incremented by the amount specified by the step value. If no step value is specified this value is assumed to be one. Algorithm in right is for loop 100 times during which the value of variable i will be printed. Demo: Find the largest number among 4 numbers

Task of the day: Progranimate Extension Task Write the algorithm for the following programs and use the progranimate software to produce them Do While To keep asking for a number less than 5 and stop when a number less than 5 is given. To keep asking for a password and to give the message "accepted" when the correct password is given. To ask for the length of one side of a square, then keep asking for guesses for the area of the square until the correct area is given (think about stepping and looping). For Loop To print the 9 times table from 1 x 9 to 12 x 9. To print a message of your choice 4 times. To print a table giving the price of petrol from 1 litre to 25 litres, given that the price of petrol is 69.5p per litre. To print the values of a number squared from 2 to 20. To print a table showing the area of circles with radii from 10cm to 20cm (ask if you are not sure how to find the area of a circle).

Exit ( 2.5 mins) Plenary ( 10 mins): AFL Differentiation (related to Learning Outcomes) - G & T: Progranimate Extension: Combination of both (Do while & For loop) 1) To print the smallest number in a large set of numbers. 2) To print the average of a large set of numbers. 3) To check a list of job applicants and reject all those who either smoke or drink. 4) To ask for a number, less than 50, and then keep adding 1 to it until 50 is reached. 5) To ask for the length of all the walls in a room, ask for the height of the room, calculate and then display the total area of the room. 6) To calculate an employees wages using these conditions Homework : Algorithms to be completed and uploaded to VLE for marking. Assessment including WILF: Questioning & Discussion (AfL) 1) Progranimate experience - feedback? Good points / Improvements? 2) What have you learnt from using Progranimate today? Evaluation of the lesson: Use real-life example to explain programming terms Informal observations made by curriculum mentor [x]: Good

You might also like