Assessment Tool

Lecture 12:  Functions and Design

Content Tested:  Top down and Bottom up Design

Lecture Content:

Goals:

Assessment Technique:  Documented Problem Solutions

Purpose:

Instructors can find out how students design graphics drawing functions in terms of simple drawing functions like line, triangle, rectangle, and circle.

Activity:

Today we saw the process of functional decomposition in creating functions to draw a picture of a house.  Today you have the opportunity to let your creativity shine.

Assume we have the primitive drawing functions of Triangle, Rectangle, Circle, and Line.  Design your own picture using these shapes and draw it below.  Suppose you want to draw this same picture using C functions.  Draw the static call graph or calling tree of your functional decomposition.  Describe your process as you determined the functional decomposition.  Was the process top down, bottom up, or both?

Note:  The activity does not require writing C code.
 
 
 
 
 
 
 
 

Possible Solution

Figures will vary from student to student.  One such picture and decomposition might be the following.  The process will probably be bottom up and top down since one needs to do the drawing using primitive shapes and also design larger regions of the picture such as the eyes.


 
 

Possible Uses of Activity: