HW11: Histogram

25 points; due Mon 5/12 @ 11am.

Goals

To write your own array-based implementation of the List ADT and test it extensively.

Setup and Requirements

In this assignment, you will write three classes: ListTest, Histogram, and ArrayListImplementation. The first will just contain a main method that tests a chosen implementation of the List ADT. The second class is a simple application of the List ADT, which will act as an additional sanity check on your implementation. Finally, after confirming that your test code behaves correctly, you will write an array-based implementation of the List ADT and run your other two programs with it.

This is the first assignment that involves the CS201 Java Style Guide. Please read over the style guide and be prepared to follow it in your code. Your code will be partially graded based on the standards laid out in the guide.

You may choose to work individually or with a partner on this assignment. If you choose to work with a partner, email me (and CC the grader), letting us know your full names and which assignment you're doing together. Work by pair programming, and put both people's names at the top of each source-code file you write.

Do all your work for this assignment (all three parts) in a single directory.

Your Tasks

The three parts of this assignment relate to each other but can be approached entirely separately. Please do these parts in order; don't write your List implementation until you've completed the first two steps.

  1. Part 1: Your Test Suite
  2. Part 2: A Histogram Class
  3. Part 3: Your Own List Implementation

Submission and Grading

Submit your ListTest.java, Histogram.java, and ArrayListImplementation.java files in a single zip file, called hw11.zip, on Moodle. Do not include any .class files or the List.java interface file either.

Start early, ask lots of questions, and have fun!

Grading