Presentation is loading. Please wait.

Presentation is loading. Please wait.

Writing my algorithm ? Name Symbol Flowchart use Oval

Similar presentations


Presentation on theme: "Writing my algorithm ? Name Symbol Flowchart use Oval"— Presentation transcript:

1 Writing my algorithm ? Name 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) ? NO YES

2 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

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

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

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

6 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? Print:the first team won! YES Stop Print: the second team won! NO

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

8 Write an algorithm to… Know when to ask for help Start Do the task
Ask a some one who does understand the task on the same table as you. Know when to ask for help Can I do the task on my own? Start YES Can I do the task on my own? Listen carefully to what my teacher wants me to do YES 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 Do I understand what I have got to do? NO NO Ask the teacher or the TA for help Can I do the task on my own? YES NO Do the task YES Stop


Download ppt "Writing my algorithm ? Name Symbol Flowchart use Oval"

Similar presentations


Ads by Google