Choose two of the essential classes in your design of the library system and briefly explain why they are essential. For each of these two classes, say what public methods those classes should have. Each method should have a very brief description of its function.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Choose two of the essential classes in your design of the library system and briefly explain why they are essential.

For each of these two classes, say what public methods those classes should have. Each method should have a very brief description of its function.

A university library has a stock of books and video DVDS which can be lent to lecturers, postgraduate students and
undergraduate students. Books can be lent to lecturers for up to eight weeks, to postgraduate students for four weeks
and to undergraduate students for two weeks. DVDS can be lent to lecturers for up to four weeks, to postgraduate
students for two weeks and to undergraduate students for one week.
A lecturer who is late returning an item is fined €1 per day, postgraduate students are fined 50c per day and
undergraduate students are fined 25c.
The library wants a software system to be able to monitor the loans and the fines.
You are asked to produce such a system using an object oriented design.
Fill up the table below to indicate which classes are important to the design. For example, if you think a Book class would
be essential in a good 00 design, then put it in the Essential column. If it is non essential, put it in the Non Essential
column.
Note that this will be a relatively basic implementation. We just want a design that will allow the library to record details
about the Books and DVDS which are borrowed and to whom and which fines are due.
Hint: the "Essential" column means that any reasonable design would include such a class. The "Non-Essential" column
means that any reasonable design would not include such a class.
Transcribed Image Text:A university library has a stock of books and video DVDS which can be lent to lecturers, postgraduate students and undergraduate students. Books can be lent to lecturers for up to eight weeks, to postgraduate students for four weeks and to undergraduate students for two weeks. DVDS can be lent to lecturers for up to four weeks, to postgraduate students for two weeks and to undergraduate students for one week. A lecturer who is late returning an item is fined €1 per day, postgraduate students are fined 50c per day and undergraduate students are fined 25c. The library wants a software system to be able to monitor the loans and the fines. You are asked to produce such a system using an object oriented design. Fill up the table below to indicate which classes are important to the design. For example, if you think a Book class would be essential in a good 00 design, then put it in the Essential column. If it is non essential, put it in the Non Essential column. Note that this will be a relatively basic implementation. We just want a design that will allow the library to record details about the Books and DVDS which are borrowed and to whom and which fines are due. Hint: the "Essential" column means that any reasonable design would include such a class. The "Non-Essential" column means that any reasonable design would not include such a class.
Essential NonEssential
IDCard
LateFee
Fine
Loan
StudyRoom
Returns
Euro
Lecturer
PostGraduate
Collection
Reference
Librarian
Вook
DVD
Libraryltem
Shelf
UnderGraduate
Borrower
Transcribed Image Text:Essential NonEssential IDCard LateFee Fine Loan StudyRoom Returns Euro Lecturer PostGraduate Collection Reference Librarian Вook DVD Libraryltem Shelf UnderGraduate Borrower
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Introduction to Interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education