Assignment 1 IS going to be graded, this is an assignment to teach you the basics of submitting assignments through this semester. YOU MUST SUBMIT THIS ASSIGNMENT.
No paper submission is required for this assignment. The softcopy is REQUIRED.
We will do the following things for this assignment.
a) Set up Dr.Sahni's data structures package.
b) Learn how to jar files
c) Register for CourseWorX (use a password of 8 or fewer characters and no puntuation) and submit assignments through CourseWorX
Part I:
a) Download Dr.Sahni's data structures package from the website for the text book. The URL is
http://www.cise.ufl.edu/~sahni/dsaaj/
b) Follow the link on Programs and download either progs.zip or eprogs.zip (recommended).
c) Set up the CLASSPATH for the package you just downloaded. Follow the link on Read download and use instructions, this page has instructions to set up the CLASSPATH. Additional information can be found here. Please email the TA's or meet them during office hours if you have problems with setting this up.
d) If everything is set up properly, you should be able to go to the dataStructures folder and compile and run ArrayLinearList.java. To do this use the commands
> cd /my/path/to/code/dataStructures > javac ArrayLinearList.java > java dataStructures.ArrayLinearList
The output of your program should be
The list is empty List size is 4 The list is [1, 2, 4, 6] The index of 4 is 2 3 not found Element at 0 is 1 Element at 3 is 6 2 removed The list is [1, 4, 6] 6 removed The list is [1, 4] The list is not empty List size is 2
Please check for such an output for the program. This is confirmation that your class path is set up okay. Remember that you should get this output without modifying the code.
PartII:
a) Assignments submitted through CourseWorX must be jarred . Unjarred submission or erroneous jarring of file can cost a significant percentage of the assignment grade (can be up to 100%). Please learn how jar files.
One note - Using winzip and winrar is not the same as jarring files.
You can jar files using the command
jar cvf ARCHIVE-NAME
file1 file2 file3 ...etc.
jar cvf are key words, ARCHIVE-NAME is the
archive you want to put
he files into, and file1, file2 and file3 are the
files you want in
the package.
For example, if I wanted to put
me.java,
myself.java and irene.java into the
archive jimcarry the command would
be
jar cvf jimcarry me.java myself.java irene.java
One important thing is to run the jar command inside the directory where the files are present. If you run the command in a parent directory, it will submit the directory with your code. This of course is not good for the graders to grade. Please do not submit archives with directories. You must submit only source code( .java files ) and not the object files( .class). Submitting .class files will result in zero credit.
That is, do NOT do the following: >
jar cvf jimcarry folder/me.java folder/myself.java
folder/irene.java
> jar cvf jimcarry me.class myself.class
irene.class
The command
jar xf ARCHIVE-NAME
to unjar files, where jar and xf are keywords and ARCHIVE-NAME is the name of the archive. You should get back all the files that you jarred earlier.
Use the command and check and see if the jarring was okay. Otherwise get help from the TA's about jarring files.
b) Read assignment submission rules on the FAQ page. Copy and paste submission rules on the FAQ page into the dataStructures folder as Submission.txt. Add you name, UF ID, and the discussion section number to this file. Jar into an archive Submission.txt and Chain.java( this file should be found as a part of Dr.Sahni's package in the datStructures folder). Unjar the archive in a new folder to verify if the jarring was done properly.
Part III:
Register for CourseWorX to submit your assignments (use a password of 8 or fewer characters, do not use punctuation). Turn in your archive you just got on part II(b) through CourseWorX. Always download the file you turned in and see if the submission was okay.
Email the TA's if you have questions on this assignments