Provide the missing definitions for the declared procedures of the given
program. The program should produce a picture similar to the displayed
figure.
Notes.
Submit your source file ‘turtle.cpp’ with the ‘submit c230aa lab3turtle.cpp’ command.
Suggestions. Build your program incrementally. For instance, as described
below.
Comment out the calls to ‘drawHouse’ and ‘drawPerson’ in ‘main’, and
provide empty-body definitions to the procedure declarations that are
provided without definitions.
Uncomment the call to ‘drawHouse’ in ‘main’, and comment out the call
to ‘drawRoof’ in ‘drawHouse’
Uncomment the call to ‘drawRoof’ in ‘drawHouse’.
Note. The drawing of a line of length
at direction
can be digitized to a painting of the coordinates