CST 8284 Object Oriented Programming (JAVA)
ASSIGNMENT 3
Important Instructions
• This assignment is designed to be completed and submitted by you individually. Your code must be yours alone.
• You must ensure your work is NOT replicated by any other student.
• You are both equally responsible if your code shows up into someone’scode.
The due date for submission of this assignment is posted on BrightSpace (no extensions will be granted, late assignments receive a mark of zero).
The final DEMO date for this assignment is your lab session in week #14.
SUBMISSION INFORMATION
1. You must submit your solutions on Brightspace or before the due date.
2. Generate and submit Javadoc file showing all the comments in your code (doc folder).
3. Submit your work to the portal provided.
4. Name your solution file appropriately. For example, if you are in Lab Section 30X name your package using the convention: FirstName_LastName_SectXXX_Assignment3.
Scenario
A collection is referred to as a data structure (object) that can hold references to other objects. Collections contain references to object types which has an is-a-relationship. Its framework interface states the operations to be performed generically on different types of collections.
An advantage of collection is that it provides API consistency such that the classes that implement its set of interfaces such as Set, List or Map all have some common set of methods.
In this assignment, you are to modify your “Assignment 2” code to replace the array’sfor both “Deliverable” items and “FoodItems” with LinkedList and ArrayList collection objects. You must use a “List” and/or “Collection” interface as your main object reference variable and use an “Iterator” to traverse the collections.
All code must be structured and documented according to the Oracle “CODE CONVENTIONS” for Java. (All attributes must be documented using “Javadoc” comments)
The output from your program/application must be exactly the same as the output provided for Assignment 2.