An everyday activity which could be replaced with a function is manually cleaning a dirty object. For example, wet object, apply soap to object, rub object with cloth, rinse object with water until soap is removed, repeat until no dirt remains. This function also includes a loop.
Different contexts in which this function could be applied include washing a plate, washing a car, washing your hair or washing a dog. In both the hair and dog situation, the object needs to be rubbed with your hand until lathered all over. Perhaps this could be done by including an 'if' statement, such as if object is a hard surface, rub with cloth, if object is not hard (ie hairy or furry), rub with your fingers. #cserApps1
no plus ones, 0 comments
You must log in to post a comment.