Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assessment Details This will be done in the form of a library system that allows users to borrow various items that the library holds. You

Assessment Details This will be done in the form of a library system that allows users to borrow various items that the library holds. You will be required to create an inheritance structure to contain all the different types of items the library might hold. In this case there are five different types of items Books, Magazines, Blurays, DVDs and MusicCDs. You are required to create a library class that manages this system allowing an item to be added or removed in addition to allowing a person to borrow an item and return it. This program is supplied with an incomplete testing program, you must complete the test driver to ensure the completeness of your library system. You are also required to generate the rest of the classes to describe the items held in your library using a suitable inheritance model in your program. Description of the library system There are a number of different types of items in the library. There are Books, Magazines, MusicCDs and Movies. Movies in turn can be DVDs or Blurays. You will need to implement these items as an inheritance structure with appropriate setter and getter methods in addition to appropriate access permissions. As a starting point: All items contain an id (String), a name (String), loaned (boolean), borrower (Person), and a cost (double). All Books will have an author (String) All Magazines will have distributionCity (String) and a magazineFrequency (Frequency) based on an enumerated type which has day, week monthly, quarterly and yearly. All Movies will have an genre (Genre) based on an enumerated type Genre which has scifi, action, drama and romance All DVDs will have a region (int) All Blurays will have region (char) All MusicCD's will have composer (String) and an artist (String) In addition to the Library class described, there are also a few other classes needed for this assignment:

  • A Library contains the list of items (ArrayList of Items) currently held by the library
  • A Person has a name (String) and an address (String). Library items can be borrowed by a person.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

2. In what ways have your peers and your parents helped shape you?

Answered: 1 week ago