Procedures Within Procedures
To draw a house in MSW Logo using the 'procedure' approach you would divide the large task of drawing the house into several smaller tasks. Each procedure would draw a small part of the house.
You could create a procedure called "walls" to construct the main body of the house and a procedure called "roof" and one called "glass" and one called "door". To draw the complete house you would create a procedure called "house" that calls each of the procedures.
eg
to house walls door roof glass end |
To see a listing of the individual procedures used in this example click here.