Professional Documents
Culture Documents
Defne: An algorithm is a well-ordered collection of unambiguous and effectively computable operations that when
executed produces a result and halts in a finite amount of time [Schneider and Gersting 1995].
Do you do different things based on conditions? How might you use the words “if” or “otherwise” in
your instructions? (For example: if the water is the correct temperature rinse mouth, otherwise adjust
temperature.)
Use the word “repeat” in your instructions. For example: Move the brush up and down on tooth.
Repeat 5 times.
Hint: You must break the problem into chunks. Order the chunks and then describe in detail what
happens in each chunk.
Note we are starting with step #0. In programming, we often like to count starting from 0 so it is good
for us to get used to this idea.
Chunk 0. Entering
Step 1: Using your dominant hand, pick up your toothbrush that you use every day.
Step 2: Lightly bring the toothbrush below the tap water in front of you.
Step 3: For 10 seconds, move the toothbrush backwards and forwards slightly to moisten the
toothbrush.
Step 0: Pick up the toothpaste you use daily from the bathroom with your non-dominant
hand while holding your toothbrush in your dominant hand.
Step 1: Holding the toothbrush with the other three fingers of your dominant, remove the lid
from the toothpaste using your thumb and forefinger.
Step 5: Holding the toothbrush and toothpaste in your non-dominant hand, lift the lid from the
right side of the sink with your dominant hand.
Step 6: With your dominant hand, Put the lid on the toothpaste.
Step 8: Switch the toothbrush between your non-dominant into your dominant hand.
Step 3: While the upper and lower teeth are still joined, open your mouth.
Step 0: Start moving the brush on the center of your teeth 5 times in a clockwise motion
Step 1: Move your brush clockwise to the top right of your outer surface teeth and move the
brush 5 times in a small clockwise motion.
Step 3: Move your brush clockwise to the top right of your biting surface teeth and move the
brush 5 times in a small clockwise motion.
Step 4: Move your brush clockwise to the top right of your inner surface teeth and move the
brush 5 times in a small clockwise motion.
Step 0: Move your brush to the bottom right of your outer surface.
Step 1: Close your upper and lower teeth and make them joined
Step 4: Move your brush clockwise to the bottom right of your biting surface teeth and move
the brush 5 times in a small clockwise motion.
Step 5: Move your brush clockwise to the bottom right of your inner surface teeth and move the
brush 5 times in a small clockwise motion.
Chunk 6. Brushing the top center of your teeth
Step 0: Move your brush to the top center of your outer surface.
Step 1: Close your upper and lower teeth and make them joined
Step 4: Move your brush clockwise to the top center of your biting surface teeth and move
the brush 5 times in a small clockwise motion.
Step 5: Move your brush clockwise to the top center of your inner surface teeth and move the
brush 5 times in a small clockwise motion.
Step 0: Move your brush to the bottom center of your outer surface.
Step 1: Close your upper and lower teeth and make them joined
Step 4: Move your brush clockwise to the bottom center of your biting surface teeth and move
the brush 5 times in a small clockwise motion.
Step 5: Move your brush clockwise to the bottom center of your inner surface teeth and move
the brush 5 times in a small clockwise motion.
Step 0: Move your brush to the top center of your outer surface.
Step 1: Close your upper and lower teeth and make them joined
Step 3: Move your brush clockwise to the top left of your outer surface teeth and move the
brush 5 times in a small clockwise motion.
Step 5: Move your brush clockwise to the top left of your biting surface teeth and move the
brush 5 times in a small clockwise motion.
Step 6: Move your brush clockwise to the top left of your inner surface teeth and move the
brush 5 times in a small clockwise motion.
Step 0: Move your brush to the bottom left of your outer surface.
Step 1: Close your upper and lower teeth and make them joined
Step 4: Move your brush clockwise to the bottom left of your biting surface teeth and move
the brush 5 times in a small clockwise motion.
Step 5: Move your brush clockwise to the bottom left of your inner surface teeth and move
the brush 5 times in a small clockwise motion.
Step 0: Get the toothbrush out of your teeth and make it face the sky.
Step 3: For 10 seconds, move the toothbrush backwards and forwards to wash it.
Step 5: For 5 seconds, shake the toothbrush in an upward-backward motion to remove any
remaining water.
Step 0: Put your hands under the tap water with the water turned on to 30%.
Step 1: Lift your right hand, and on your lips, make three quick forward-backward motions.
Step 2: bring your right hand back under the tap water.
Step 3: For 10 seconds, move the right hand in a forward-backward motion while moving the
left hand in a backward-forward motion.
CS20-CP1
Apply various problem-solving strategies to solve programming problems throughout Computer Science 20.
a) Explore the computational thinking concepts of decomposition, pattern recognition, abstraction and algorithm design.
d) Design algorithms that allow computers and humans to solve problems effectively.
CS30-CP2