Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

public class Planner The Planner class implements an abstract data type for a li

ID: 3745646 • Letter: P

Question

public class Planner The Planner class implements an abstract data type for a list of courses supporting some common operations public Planner Constructs an instance of the Planner with no Course objects in it. Postcondition: This Planner has been initialized to an empty list of Courses. public int size ) Determines the number of courses currently in the list. Preconditions: This Planner has been instatiated. Returns: The number of Courses in this Planner. ,public void addCourse (Course newcourse, int position) Parameters: newCourse the new course to add to the list position - the position (preference) of this course on the list Preconditions: This Course object has been instantiated and 1sposition s items currently in list +1. The nun MAX COURSES Postconditions: The new Course is now listed in the correct preference on the list. All Courses that were originally (e.g. If there are 5 Courses in a Planner, positioned 1-5, and you insert a Course in position 4, the n position 4 will be moved to position 5, and the Course that was in position 5 will be moved to positi Throws: IllegalArgumentException Indicates that position is not within the valid range. FullPlannerExpcetion Indicates that there is no more room in the Planner to record an additional Course. Note 1: position refers to the position in the Planner and not the position in the array. Note 2: Inserting an item in position (items currently_in list+1) is effectively the same as adding the ite

Explanation / Answer

please do upvote.If you have any problem do comment and i shall be happy to help you.Thanks for using chegg.

-----------------------------------

Adt(Abstract data type)-------> Is a data type in which we focus on what it does ,rather then how it does.

for e.g Queue is an adt which will have methods like enqueue()//to add an element in front of queue, dequeue()//to remove an element from bck of queue, size(); isEmpty(), isFull() and all of these can be implemented using array or linkedlist. Both implementations will perform same kind of operations. Since Queue can be implemented in multiple ways it is an adt

Similary There is an ADT called as LIST in programming language java which have various methods

namely add(Object o),add(int index,Object o),size(), etc

The planner class which is nothing but a LIST of courses is MEANT to Implement LIST adt ,not practically BUT only logically

Hence,You just have to implement the methods for PLanner class specified in the image you have posted and Planner class shall be implementing ADT List automatically