Sarah Hobson▸ Understanding Functions (Task 1)


My example of a daily activity consisting of multiple steps that could be replaced by a function:

Pouring a glass of water

FunctionName = GlassWater
Go to the drawer that holds drinking glasses.
Open the drawer.
Take out a glass.
Close the drawer.
Carry the glass to the filtered water tap.
Using one hand, place glass under tap.
Using the other hand turn on the tap lever.
While glass is not full, leave glass under tap.
When glass is full, turn off tap lever.
Remove glass from under tap.

#cserApps1


G+ Comments

no plus ones, 0 comments

    + There are no comments

    Add yours

    Leave a Reply