Presentation is loading. Please wait.

Presentation is loading. Please wait.

NameSymbolFlowchart use OvalThis is used at the start and at the end of a program to start and stop the program. Flow lineThis shows which way the logic.

Similar presentations


Presentation on theme: "NameSymbolFlowchart use OvalThis is used at the start and at the end of a program to start and stop the program. Flow lineThis shows which way the logic."— Presentation transcript:

1 NameSymbolFlowchart use OvalThis is used at the start and at the end of a program to start and stop the program. Flow lineThis shows which way the logic flows in the program. (It can go in more than one direction) ParallelogramShows an input (key board press, mouse click, can you think of any others?) or an output (printer, speakers, can you think of more?) RectangleThis is something that needs to happen. (e.g. Stir the ingredients together. Spread the jam on the bread, move the sprite to the left. ) DiamondThis 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) Writing my algorithm ? YES NO

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

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

4 Write an algorithm to… Clap my hands if I am happy and I know it Start YES Am I happy? Clap my hands twice NO Start Takes us one way or Takes us one way or another in the algorithm another in the algorithm IF this condition is met THEN do this ELSE do this IF this condition is met THEN do this ELSE do this Selection Am I happy?

5 Write an algorithm to… Clap my hands if I am happy and I know it Start YES Am I happy? Clap my hands twice NO Start Selection LOOPS To repeat a process. To repeat a process. When we use flow charts, a decision (selection) is needed to determine whether the loop continues. When we use flow charts, a decision (selection) is needed to determine whether the loop continues.

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

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

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

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

10

11 NameSymbolFlowchart use OvalThis is used at the start and at the end of a program to start and stop the program. Flow lineThis shows which way the logic flows in the program. (It can go in more than one direction) ParallelogramShows an input (key board press, mouse click, can you think of any others?) or an output (printer, speakers, can you think of more?) RectangleThis is something that needs to happen. (e.g. Stir the ingredients together. Spread the jam on the bread, move the sprite to the left. ) DiamondThis 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) Writing my algorithm using a flowchart ? YES NO

12 Write an Flowchart algorithm to… Show your morning routine: From, before you wake up to the time you arrive at school.


Download ppt "NameSymbolFlowchart use OvalThis is used at the start and at the end of a program to start and stop the program. Flow lineThis shows which way the logic."

Similar presentations


Ads by Google