You are on page 1of 1

Algorithmic Thinking: Making a Cup of Tea

Algorithm Pseudocode Algorithm Flow Diagram


Choose type of tea to drink
Collect tea ingredients
Find tea in pantry
Choose Tea Type Is tea the correct
Yes Put tea container Find milk in
Find Tea in Pantry
If tea is correct type, then put tea container on type? on table refrigerator
table else put tea back and repeat this step
to choose another tea until correct one is
found No
Find milk in refrigerator
Put tea container
Put milk container on table back Put milk container
Find cup in pantry on table
If cup is correct type, then put cup on table
else put cup back and repeat this step
to choose another cup until correct one
is found
Prepare hot water for tea
Yes
Fill tea kettle with Is cup the correct
Find tea kettle Put cup on table Find cup in pantry
Find tea kettle water type?
Fill tea kettle with 0.5 litre of water
If tea kettle has < 0.5 litre of water,
continue to fill No
else stop filling
Put cup back
Place kettle on stove and turn on heat
If water in kettle is < 100C, Yes No Place kettle on
continue to heat Water less than
stove and turn on Water less than
else stop heating 0.5 litre? 100C?
heat
Prepare tea No Pour hot water
Add tea bag to hot
into cup to 1cm
Pour hot water into cup to 1cm below cup rim water in cup
Add tea bag to hot water in cup Yes below rim

Wait 5 minutes for tea to brew


Remove tea bag
Pour 5ml of milk into tea cup Put milk container
Clean up into refrigerator Pour 5ml of milk Remove tea bag Wait 5 minutes for
Enjoy cup of tea! and tea back in into cup from cup tea to brew
Put milk container back into refrigerator
pantry
Put tea back into pantry
Enjoy drinking cup of tea

You might also like