Name Writing my algorithm Symbol Flowchart use Oval

Name Writing my algorithm Symbol Flowchart use Oval This is used at the start and at the end of a program to start and stop the program. Flow line This shows which way the logic flows in the program. (It can go in more than one direction) Parallelogram Shows an input (key board press, mouse click, can you think of any others? ) or an output (printer, speakers, can you think of more? ) Rectangle This is something that needs to happen. (e. g. Stir the ingredients together. Spread the jam on the bread, move the sprite to the left. ) Diamond This is selection, this means the program can choose to done thing or another based on the question in the diamond. (e. g. Is the bath water too hot? (YES = add more cold water and NO = move on to the next part of the algorithm) ? YES NO

Write an algorithm to… Wash your hair…. Start Add shampoo Get in the shower Lather hair Turn shower on Rinse out shampoo Wet hair Stop

Write an algorithm to… Wash your hair…. Start Do I want condition er? NO YES Wet hair Add conditioner Get in the shower Add shampoo Rub in to hair Turn shower on Is hair dirty? NO Rub in to hair Rinse out conditioner YES Rinse out shampoo Wash the rest of me. Turn shower off Stop

Write an algorithm to… Clap my hands if I am happy and I know it Start Am I happy? YES Clap my hands twice Start NO

Write an algorithm to… Player puts a card down, face up Play Snap Start Shuffle the cards NO Does the picture match the last one? ? YES Deal them all out. Shout SNAP! Has anyone got all the cards? NO YES Stop – Game Over

Write an algorithm to… Show which team won Start Input the first teams score Input the second teams score Is the first team > second team? NO YES Print: the first team won! Print: the second team won! Stop

Write an algorithm to… Can Jonny play Call Of Duty? Start Input Jonny’s age Is Jonny’s age >17? NO YES Print: You can play Call of Duty Print: No you can not play it, you are too young! Stop

Write an algorithm to… Know when to ask for help Start Can I do the task on my own? Listen carefully to what my teacher wants me to do Do I understand what I have got to do? YES Ask a some one who does understand the task on the same table as you. YES NO NO Read any information you have been given. Have a Think about what you have to do. Spend 5 minutes trying to work it out Can I do the task on my own? YES Can I do the task on my own? NO Ask the teacher or the TA for help NO Do the task Stop
- Slides: 8