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.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter2: Basic Elements Of C++
Section: Chapter Questions
Problem 14PE: 14. (Hard drive storage capacity) If you buy a 40 GB hard drive, then chances are that the actual...
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning