In completing this assignment you MAY use/access the following resources:
You may NOT use/access:
- Resources not expressly listed above, including, but not limited to,
the following ...
- Source code not provided as part of this assignment. (Obviously, this
includes, but is not limited to, source code written by other students
whether current or in the past).
- Code-generating tools (of which ChatGPT is one example).
- Any web sites not directly linked to from the homework assignment.
Failure to abide by these guidelines will result in a zero for the assignment
and the incident will be reported to the university provost as a violation of
the university academic integrity policy. A second incident of academic
dishonesty (whether from this course or another computer science course) will
result in an F in the course.
On lab day you created a linked list of integer data values. For this assignment
you will create a linked list of Word objects. For this assignment you
need only to implement the insert and display methods. Your driver will read
words from a data file and build the list by calling the insert method.
This assignment will take less time than most in order to accommodate our exam
this week.
Suggested steps:
- Work in the hw10 directory.
- Study the provided Word.java.
- In the driver create a couple of Word objects and verify the
code works as you expect.
- Copy IntNode.java to WordNode.java and modify it to replace
int with Word.
- Test WordNode in the driver. Commit changes.
- Copy IntList.java to WordList.java and modify it to replace
int with Word. Comment out remove() and search().
- Test WordList in the driver. Commit changes.
- Create a sample text document called words.txt with 10–15 words
(one word per line) in it.
- In the driver use a BufferedReader to open and read the file,
inserting words from the file into your linked list.
- Close the file and then call the display() method for your list.
- When everything is working, commit and push.
The assignment will be graded according to the following criteria:
Correctness |
16 |
pts |
Documentation |
2 |
pts |
Conventions |
2 |
pts |
Version Control |
2 |
pts |
Total |
22 |
pts |
Your program should be completely working and should follow all of the
programming conventions named in class and explained in
http://josephus.hsutx.edu/classes/all/javaconventions/ (including the use
of comments that conform to the JavaDoc guidelines).
The instructor will grade your work based on what you have pushed to the hosted
homework repository you have shared. For all assignments the program is due
before the beginning of class on the due date. Repositories that show a commit
time after that time will be graded as late.