Lab 05 - Methods
Assignments
Using the graphics classes explored thus far in class and the control structures we learned about in the last two chapters, draw a picture of the Washington D.C. Temple.
Be sure to include a blue sky in the background and green grass and trees in the foreground. Use methods and control structures to decompose the problem and create the drawing with a minimum number of programming statements (i.e. use loops and methods whenever possible).
Restrictions:
-
Your drawing code must use loops.
-
Your drawing code should use variables instead of "magic numbers" as much as possible.
-
Your drawing code must use at least one method aside from
main
andrun
.
Submission
To submit your assignment, follow the instructions for code submission.