8A

Complete the class XGrid. An XGrid has a x,y location of the upper left hand corner. It represents a grid of X's with 4 rows and 5 columns in random colors

You are given a class X which represents a graphical X and that can draw itself at a specified location in a specified color. You can look at its documentation to see the details.

Provide a constructor that takes the x, y coordinates of the upper left hand corner as parameters. Do not draw in the constructor

Provide the method

Other instructions

Your output for the final will look like this.

output for 8a

For the draft, provide the instance variables and complete the constructor. Implement the draw method to draw the first row all in red. You must use a loop.

8A draft:
8A final:

8B

Complete the class Vocab which has an arraylist of strings as an instance variable and methods to act on the array list. Call the instance variable words

Provide a constructor that takes a ArrayList<String> as a parameter and assigns it to the instance variable

Provide methods:

Note: There is a second version of the remove method that will be helpf ul: to remove a specific object named target

words.remove(target);

Provide Javadoc

For the draft, provide the instance variable and the constructor. Implement the other methods as stubs (including Javadoc)

8B draft:
8B final:

8C

Complete the class PhotoAlbum which manages an ArrayList of Pictures. This is a little different than the videos because we are encapsulating the ArrayList in a class and providing methods to process the list

Provide a constructor that initializes the instance variable with an empty array list. Call the instance variable photos so that the draw method will work

Provide methods

Provide Javadoc

For the draft, provide the instance variable, the constructor, and the add method. Implement the other methods as stubs

The pictures are in this zip, oliver_pics.zip. Download, unzip, and put the pictures in the Bluej project folder

8C draft:
8C final: