The preferred product perceived age for each sector peaks at…

Questions

The preferred prоduct perceived аge fоr eаch sectоr peаks at:

Cоding Prоblem: Librаry Mаnаgement System Hоw to start: In Eclipse or IDE of your choice, make a package named 'Exam3'. Download LibraryItem.java and LibraryDemo.java and save it in the package. Create 3 different classes as asked for in the problem statement. Save the code and test it. How to submit: Once code is written, click 'Add a File' button and attach Book.java, DVD.java and Library.java codes to this question's response section Problem Statement: You have been given two codes: [1] LibraryItem.java which is the base class to store different library items [2] LibraryDemo.java which is the driver code to test the different classes. Complete the program by designing additional classes: Class Book: This class is the subclass of LibraryItem class. It has a private field named author of type String. It has a constructor which receives parameters for initializing fields title, itemId and author. The class also has a method named getDescription() which overrides the base class method. This method returns a string that includes the book's title, itemId and author. Class DVD: This class is the subclass of LibraryItem class. It has a private field named duration of type int. It has a constructor which receives parameters for initializing fields title, itemId and duration. The class also has a method named getDescription() which overrides the base class method. This method returns a string that includes the DVD's title, itemId and duration. Class Library: This class manages the collection of library items. It has a private field named items which is an ArrayList of type LibraryItem. It has a constructor which initializes this ArrayList to an empty list. The class has a method named addItem() that receives one parameter of type LibraryItem and adds the received parameter to the ArrayList. Finally, the class has a method named displayItems() that goes through the ArrayList and display the description of each item by calling the getDescription() method. When all three classes are written, run the LibraryDemo.java code. It should print the output as shown below: Library Items: Title: Java Programming, ID: B101, Author: John Smith Title: Data Structures, ID: B102, Author: Jane Doe Title: Inception, ID: D201, Duration: 148 minutes Title: Interstellar, ID: D202, Duration: 169 minutes Grading Rubric: Criteria Description Points File Naming & Comments All required files are appropriately named and include clear, meaningful comments 3 Book Class Structure Correctly defines the Book class as a subclass of LibraryItem class and includes the required additional data field and constructor 3 Book Behavior Implementation getDescription() method that includes all required details for a book 2 DVD Class Structure Correctly defines the DVD class as a subclass of LibraryItem class and includes the required additional data field and constructor 3 DVD Behavior Implementation getDescription() method that includes all required details for a DVD 2 Library Class Design (Aggregation) Defines the Library class that maintains an ArrayList and properly initializes it 3 Adding Items to Collection Correct implementation of addItem() method 1 Displaying Items Correctly iterates through the ArrayList and displays details for each item 3 Total 20