Get Coding with Logic

Get Coding with Logic — page 3
Following Instructions A computer can only do what it is told to do Code is how we to tell the computer to do things Coders write a set of instructions known as an algorithm The computer is then asked to perform the algorithm What does an algorithm look like An algorithm is just a simple step-by-step list that shows how to do something Feeding the Dog It is important that an algorithm’s steps are in the right order Can you see what is wrong with the order of the code below Can you sort the instructions into the correct order 1 Get can 2 Get can opener 3 Open can 4 Spoon out dog food on 5 Put bowl on kitchen floor kitchen floor Answers are on page 32 6