Question: ( DONT INSTRUCT, JUST DO IT ) Designing and implementing a simple Library Management System ( LMS ) for a small library. The goal of
DONT INSTRUCT, JUST DO IT
Designing and implementing a simple Library Management System LMS for a small
library. The goal of this assignment is for you to practice designing a system using
ObjectOriented Programming OOP principles, create the necessary UML diagrams,
and implement the system in Java.
General Requirements
You should implement inheritance, encapsulation, abstraction or polymorphism to
store the necessary information. There is no need to implement any database.
However, it will be an advantage to those who are able to connect the system to a
database
You are advised to conduct some research and understand the concepts and
implementation of composition as well as the necessary UML diagram such as Class
diagram.
System Requirements
Manage Library Books
The system must allow the librarian to:
Add new books: Each book should have attributes such as title, author,
ISBN number, and availability status whether the book is currently
available for borrowing or not
Update book information: The librarian should be able to modify the
details of existing books.
Delete a book: The system should allow the deletion of a book from the
catalog.
Search for books: The librarian should be able to search for books by
title, author, or ISBN number.
Borrowing and Returning Books
The system must support:
Borrowing books: Members should be able to borrow books from the
library. The system should check if the book is available and update the
availability status accordingly.
Returning books: Members should be able to return books. The system
should update the availability status of the returned books.
Transaction recording: The system should keep track of all borrowing
transactions, including which member borrowed which book and when
it was borrowed and returned.
GENERAL INSTRUCTION
UML Class Diagram
Before writing the code, create a UML class diagram that visually
represents the relationship between the classes in your system Book
Member, Library Your UML should include class attributes, methods,
and relationships between classes eg composition, association
Implementation
Implement the Library Management System in Java. Ensure that your
code adheres to the principles of ObjectOriented Programming such
as encapsulation, inheritance, and polymorphism.
Your program should consist of multiple classes and each class should
have clearly defined responsibilities.
Data should be stored in arrays or ArrayLists no database or GUI
is required
Main Program
Write a main method that demonstrates the functionality of your
Library Management System. The main program should allow a user
simulating the librarian to perform the following operations through
a textbased menu:
Add, update, and delete for books.
Register, update, and view book information.
Borrow and return books records accordingly.
Exit the system.
Test Plan
The goal is to verify the correctness, completeness, and reliability of
the Library Management System you implemented using Object
Oriented Programming OOP in Java. This involves testing various
functionalities, ensuring that they work as expected, and documenting
the test cases and results.
Prepare Test Cases:
o For each test scenario, write detailed test cases. Each test case
should include the following details:
Test Case ID: A unique identifier for the test case eg
TC
Test Case Description: A brief description of what is
being tested eg Add a new book to the system
Preconditions: Any conditions that must be met before
the test can be executed eg The system is running,
and the librarian is logged in
Test Steps: The specific steps that need to be followed
to perform the test.
Expected Result: The expected outcome of the test eg
The book is successfully added and available for
borrowing
Actual Result: The actual result when you run the test
to be filled in during testing
PassFail: Whether the test passed or failed.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
