Lesson Objective: Understand how to make and use Algorithms Learning Outcome: Design your own algorithms and flowcharts. Algorithms and Flowcharts
Question What’s the point of today’s lesson?
What is an Algorithm? A list of simple commands to perform a task or solve a problem. 1Open the curtains 2Is it raining? If not go to step 4 3Pick up the umbrella 4Go outside Algorithm to decide to take umbrella outside.
Task 1 Write out an algorithm for making a cup of tea.
Task 2: Draw a flowchart to add up the first 50 numbers. Assign the following Variables: SUM = total amount N = A counter
Solution
Task Write out an algorithm for sorting out a deck of cards into the four suits. At the end you need to have a complete deck of cards sorted into the order Spades, Hearts, Clubs and Diamonds.
Flowcharts A flowchart is a type of Algorithm. In what ways is a flowchart better than using a written algorithm?