Sunday, March 22, 2015

Homework 5


Part 1
https://drive.google.com/file/d/0B8ZGdT5f3eJka0gtdFkzZkY5cVk/view?usp=sharing

What language is Processing based on?
Java

In your own words, what is the difference between a global and a local variable?
A global variable can be accessed or modified anywhere in code. Local variables exist only within that scope and cannot be accessed through code outside that scope.

What data type does the draw() function return when it is called?
void. no return necessary.

In your own words, explain in detail what the code below the “//keep the circle in bounds” comment does
 if the top of the circle is above the top boundary or bottom of the circle is below the bottom boundary. reverse Y velocity.
Part 2
https://drive.google.com/file/d/0B8ZGdT5f3eJkVnJodEFnWUEzcXc/view?usp=sharing


Part 3
https://drive.google.com/file/d/0B8ZGdT5f3eJkVkFnTXpmZmgzdXM/view?usp=sharing   etchasketch

No comments:

Post a Comment