Professional Documents
Culture Documents
Topdown Design
Topdown Design
Topdown Design
Topics
• Top-Down Design
• Top-Down Design Examples
• The Function Concept
Reading
• Sections 3.1 - 3.3
• Problem:
o We own a home improvement company.
o We do painting, roofing, and basement
waterproofing.
o A section of town has recently flooded (zip
code 21222).
o We want to send out pamphlets to our
customers in that area.
Main
Main
Draw Draw
Door Frame Knob
Main
Draw Draw
Outline . . . Windows
Main
Draw Draw
Outline . . . Windows
Draw a
Window
Main
Draw Draw
Outline . . . Windows
void
location
Draw a
Window
#include <stdio.h>
void drawAWindow( int xCoord, int yCoord);
int main( void )
{
return 0;
}
void drawAWindow( int xCoord, int yCoord)
{
}