Learning IntentionsTo draw Flow charts & pseudocode to solve a range of programming issues
Success CriteriaYour flow charts will solve all possible problems that might arise

Keywords

Task 1  Whole class
1. Draw a flow chart to solve the problem a lamp that is not working.
2. Draw a flow chart to show the process of taking two input values for height and base of a triangle and outputting the area of the triangle.
3. Write the pseudocode for each of the above situations.
Task 2  Group Activity
Green Team  Pizza order
Write a very simple algorithm for taking a pizza order. The program must get the pizza size first and then one or more toppings.
There is a loop to get more than one topping. This loop is controlled by the decision box that asks “Enough toppings?”. If the answer is “Yes” to this question the program stops, otherwise it keeps asking for the next topping The line that loops around joins the middle of a line, it does not come into a box. Now write the pseudocode for each line of the Pizza order 
Blue Team  The workers
A local Company sometimes give their workers a bonus of £50 Here is the algorithm to calculate if the worker is entitled to the bonus. Limit = 200 INPUT WagesEarned IF WagesEarned < Limit THEN PAY = WagesEarned ELSE PAY = WagesEarned + 50 END IF 1. Sate the value of pay after this code is executed for each of the following values of WagesEarned a) WagesEarned = 50 PAY = b) WagesEarned = 200 PAY = 2. The wages earned by each worker is either £2 for each Teddy Bear or £5 for each hour they have worked, whichever is the larger. Write the algorithm that allows the user to 1.) input the number of Teddy Bears made and number of hours worked 2.) calculate the wages for the number of Teddy Bears made 3.) calculate the wages for the number of hours worked 4.) outputs the larger of the two results 
Extension task
Explain what each of the follow are and how they are used by the computer:
a) machine code
b) assembly language
c) translator
a) machine code
b) assembly language
c) translator