Due at the start of the first class in the second week of the semester: Monday January 31 or Tuesday February 1.
In this first assignment you will
TrainSet
, Train
and Layout
, with
main
in class TrainSet
. All should be in
package trainset
. Compile your program and create a jar
file for the classes so that the program can be run this way with
trainset.jar
in the current directory:
> java -classpath trainset.jar trainset.TrainSet Ethan Bolker's TrainSet Jan 22, 2005 7:30:14 PM Train trainset.Train@35ce36 running on Layout trainset.Layout@757aefOf course your output should have your name and the date when the program was run (the date format need not be exactly the one above). The actual values from the invocations of the default
toString
methods may differ too - they are
determined by the JVM.
Write a memo discussing your development process. What system did you work on? What tools did you use (editors, IDEs)? Did you encounter any problems? How did you solve them?
You may illustrate your story with pictures if you like, but do not spend lots of time trying to create them on a computer. Sketches are fine.
You may work on any machine with any operating system and development environment you choose, but the programs you deliver must compile and run on the Department's unix system.
Your memo should be pure ascii text, with no markup (no html, no MS Word). When printed on the Department printers no text should be lost at the ends of lines. If you want to submit some hard copy of possible screens, you may bring them to class when the assignment is due.
We will look for the following files: