Please complete this homework before next class.
Basic Review Problems
1. Create an integer variable x that starts of as 10. Multiply it by 2 and then print it.
2. Write a loop that prints every number between 0 and x.
3. Create a String "a" that is equal to "Road" and a String b that's equal to "Hog". Add the strings together and pring the result.
4. [Hard] How can we add together all of the numbers between 0 and 100.
Full Problems
1. Write a program that draws circles randomly on the screen with random colors.
2. Write a program that draws the mouse position as text on screen.
Class Problems
1. Create a class called "Position" that has two members, an integer x and an integer y.
2. Create an array of 50 Positions. Use a loop to fill them with random positions.
3. In the draw function, use a loop to draw circles at the 50 positions.
ArrayList Problems : Remember, ArrayLists are not Arrays
1. Create an ArrayList that can store Integers.
2. Add 3 random Integers to the ArrayList.
3. Print all of the Integers in the ArrayList
Image Review
1. First save your processing project. Call it "ImageTest"
2. Use the internet to download a .png image and put it your project directory.
3. Use PImage and loadImage() to draw the image in the draw function.
Final Problem
This is the most important part of the homework assignment. I gave you less
homework so that you would have time to do this. The assignment is to use all
of the information you've learned so far in class and make a game. It doesn't have
to be a big game, but your game should have a score, you should be able to lose.
I expect all of you to email me the code for your game.