P1 README

P1 README - Programming Assignment

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
11/7/11 5:28 PM P1 README Page 1 of 5 http://ieng6.ucsd.edu/~cs12f/Assignments/P1/README.html Programming assignment #1: CSE 12 Fall 2011 Here's a description of the first programming assignment for CSE 12, Fall 2011. In this assignment, you will develop a test plan for a class that implements the Java Collections interface List<E> , and implement the test plan using the JUnit framework. >>> Due deadline: Due Fri Oct 07 12:00 noon >>> Required solution files: List12Tester.java This means that the file that contains your solution to the assignment must be turned in by the due deadline by using the bundleP1 script while logged into your cs12 account on ieng6. If your file is turned in 24 hours or more before the deadline, you will get 1 additional point added to your programming assignment score. The turnin procedure is described below in the section "Turning in your assignment" . It's a good idea to plan to do the assignment well before the deadlines; terminals and tutors can get very busy at the last minute. In doing this assignment, it's your responsibility to understand the course rules for integrity of scholarship. Getting started Review chapters 0, 1, sections 2.1, 2.2, 5.2 and 5.3 of the textbook. This assignment uses material introduced and discussed there. You will also find online documentation of the java.util.List<E> interface and the java.util.LinkedList<E> class useful; see http://java.sun.com/javase/6/docs/api/java/util/List.html and http://java.sun.com/javase/6/docs/api/java/util/LinkedList.html . Next, create a directory named "P1" under your cs12 home directory. Your solution to this assignment should be turned in from that directory by the due date and time. You will use the bundleP1 script to do that; see below . The List<E> interface In a later assignment, you will define a class named List12 that implements the java.util.List<E> interface. How will it implement that interface? There are many possible ways to implement any one interface, and we will consider some of them in detail later. But first it is important to understand what that interface requires of any implementation. One good way to make sure that you understand what an interface requires is to develop a test plan which can test any implementation of the interface to make sure it meets the requirements. In this assignment you will do that, and implement the test plan using the JUnit framework. This is an example of the strategy of test- driven development . The List<E> interface in the java.util package requires 25 different public instance methods. A full test plan
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
11/7/11 5:28 PM P1 README Page 2 of 5 http://ieng6.ucsd.edu/~cs12f/Assignments/P1/README.html should test all of them. However, for this assignment you need only to test these 13 methods: public boolean add(E o); public void add(int index, E element); public void clear(); public boolean contains(Object o); public boolean equals(Object o); public E get(int index); public int hashCode(); public int indexOf(Object o);
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/27/2012 for the course CSE 12 taught by Professor Gary during the Fall '08 term at UCSD.

Page1 / 5

P1 README - Programming Assignment

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online