Algorithms
Teacher Lead Activity What is an algorithm? Homework Recap!
Algorithm: - A detailed set of instructions to be followed by the computer system. Bottom Line – Computers are stupid! They will only do what they’re told Homework Recap!
Mini Task: - Put the tasks below in the correct order. They’re in the wrong order, can you guess which type of error it’s likely to give? stop wait Turn on hot or cold Is there enough water start Turn off hot and cold taps Is it too hot or too cold Adjust hot and cold taps Algorithms
Did you have something similar to this? What can you notice? Algorithms
We’re learning to build flow charts using our knowledge of algorithms. Objective
When planning out an algorithm, or programming it is important to plan it out. We can do this in more than one way, to start with we’re going to focus on Flow Charts. You’re now going to work with your teacher to create a simple flow chart for making tea and coffee. When planning….
Build an algorithm to make a cup of coffee: With your teacher….
Task 1 : - Produce a flow chart for making and drinking a glass of blackcurrant squash. This should be done using Word. These are not in any order. Pour measure of juice into glass Fill up the glass to the top with water Take the juice out of the cupboard Drink juice Extension: - Include input / output shapes * Your teacher will explain what these shapes look like. Tasks: -
Task 2 : - Produce a flow chart to show the steps for ‘stopping working on a computer and shutting it down’ This should be done using Word. These are not in any order. Quit the program Switch off the machine Finish working on your document Start a new document Check your electronic mail Turn on the computer Select ‘shutdown’ Save your work on a disk Tasks: -
Task 3 : - Produce a chart to show the steps to crossing the road safely. This should be done using Word. These are not in any order. This task will require a decision. Cross the road carefully Look left and right Stop at the curb Is the road clear both ways Tasks: -
Task 4: - Produce a flow chart to show the steps for making a move in snakes and ladders. This should be done using Word. These are not in any order. This task will require a decision. Climb up ladder Landed on a snakes head? Throw dice At the bottom of a ladder? Move the counter Slide down snake Tasks: -
Teacher Lead Activity