

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A group assignment for developing a console-based library management system using java. The system includes classes for person (interface), librarian, academic (super class), student, lecturer, book (super class), digital, and hardcopy (sub classes). The assignment also covers creating a borrow class and implementing rules and regulations using a utils or rules class. Encapsulation, interfaces, static variables, methods, and blocks, exception handling, and input mechanisms are emphasized.
Typology: Exercises
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Ethiopian Institute of Technology – Mekelle School of Computing Software Engineering Department Group assignment Title: Console based Library Management System Write a console-based program for library management that implements the following Class ➢ Person →Interface ◦ Librarian ◦ Academic ▪ Student ▪ Lecturer ➢ Borrow ➢ Book ◦ Digital ◦ HardCopy Attributes for the classes. Book →super class Fields ✓ ID ✓ Name ✓ Number of pages ✓ Publisher ✓ Published date ✓ Author Digital →sub class Fields ✓ Size (in KB) HardCopy → sub class Fields ✓ Number of books Person →should be an interface Fields ✓ Id ✓ Name ✓ Phone ✓ Email Methods ✓ default setter and getter for all attributes Academic → super class implements Person interface Fields ✓ Department Student →sub class extends Academic class Fields ✓ Year Lecturer →sub class extends Academic class Fields ✓ Title (like GA I, GA II, Assistance Lecturer, Lecturer, Assistance Professor, Associate Professor, Professor, or any other.) Librarian → class implement Person interface Fields ✓ User name ✓ Password Borrow →class
Ethiopian Institute of Technology – Mekelle School of Computing Software Engineering Department Group assignment Fields ✓ ID ✓ Borrower Id ✓ Book Id ✓ Librarian Id ✓ Borrowed date ✓ Return date ✓ Status Have one class to set some rules or regulations. You can name it as Utils or Rule that have at least the following two constant, static, and final attributes ✓ MAX_BORROWED_BOOK which is 5 ✓ MAX_DAY_FOR_BOOK_TO_BE_RETURNED which is 3 days and add any other that you think important Notes that you should consider while developing the system