In this task, you will learn about:
- defining methods with parameters
- defining methods with return values
Acquire the learning objectives by reviewing this page from happycoding.io
Demonstrate your learning objectives by:
Take a program from a previous processing task and create a method with parameters to draw a composite object (consisting of various shapes i.e house, stick figure, etc) at various locations specified by the method parameters.
Level 2 specifications +:
- another method with parameters to draw a composite object at various locations locations specified by the method parameters.
- include additional parameters to modify the object(s) drawn in this method. i.e colour, size, etc.
Level 3 specifications +:
- demonstration of method with parameters and a return value. i.e methods such that given dimensions of an object, returns the x value or y value for the object to be drawn in the middle of the screen.
- Commit and push your code to this repository
- Take a screenshot of your work and upload it to the Google Classroom assignment post
- Use approproate styling and variable naming conventions