Question: I have defined and implemented the array list and list interface but I'm stuck as to how to proceed from here for the following question
I have defined and implemented the array list and list interface but I'm stuck as to how to proceed from here for the following question from Chapter 8 Lists pg. 264 Problem 2 Data Abstratcions & Problem Solving with C++ (7th edition): Creating a "nice list for children who will receive gifts. Each object in this list contains a name (a string) and a list of that person's gifts (an instance of an ADT list.) Design an ADT for the objects in the nice list. Specify each ADT operation by stating its purpose describing its parameters, and writing preconditions, postconditions, and a pseudocode version of its header. Then write a template interface for the ADT that includes javadoc-style comments.)"
Any help in writing out this program would be greatly appreciated as I have to submit my answers in 3 1/2 hours. Thank you. My nerves are getting in my way right now due to the time crunch. I look forward to hearing from you shortly. Chesley
In regards to your request for more info:
`The java.doc is just a type of C++ comment. No need to worry about that right now. Java.doc is documentation including a. an initial comment at the top of each source code file that includes file name (efile), statement of purpose, Author (@author), Date (@date), optional file version number (@version); 2. Initial comments for each class that includes: name of class and its header file (@class), statement of purpose; 3. Initial comments for each method or function that includes statement of purpose, description of each parameter (@param), precondition (3pre), postcondition @post), exceptions thrown (@throw), return value (@return); Standard C++ comments in the body of each method or function to explain important features or subtle logic.
Hope that helps to understand that the program is still in C++ with just the added java.doc comments like above. Chesley
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
