Algorithms

Algorithms are a set of instructions to achieve an outcome

Carrot and Leak Soup

  • Melt the butter in a large pan and add vegetables

  • Cover and cook for 10 minutes

  • Add the curry powder

  • Cook for 2 minutes

  • Bring to the boil and simmer for 30 minutes

  • Season to taste and serve

Coding with Algorithms

Supermarket barcode reader

ALGORITHM

  • ENTER BARCODE

  • MATCH BARCODE TO ITEM

  • DISPLAY NAME AND COST

  • ADD ITEM COST TO TOTAL ITEM COST

  • IS THAT THE LAST ITEM?

  • PLEASE PAY

Close Menu
×
×

Cart