Question: write a simple java program for a library based of the given information. This program should contain 7 classes (book class, member class, stock class,
write a simple java program for a library based of the given information. This program should contain 7 classes (book class, member class, stock class, staff class, issued book class, returned book class).functions of each class is mentioned below.also please provide UML use case diagrams for each class
using 'Book Class' user should able to :
a. Display all the names along with the book code and names of authors
b. Searches and Displays the list of books of a specific genre
c. Request for a new book which is not available in the library
d. When given the book code, displays the number of the times the book was issued. Also displays the names of book which was issued the most
using 'Members Class' user should able to :
a. Displays the List of Names along with UID
b. Checks and returns whether an specific UID exists in the database.
c. Displays the list of books taken by a member along with issue and return date
d. Add a new member with proper details( Name, DOB ,Phone, Mail id Address , Join Date) and automatically assign a new UID and a validity period of 5 years.
e. Update the details or extend the expiry date by 5 more years retaining the UID
f. Removes the name of the member from the existing active list of members (retaining the previous data)
using 'Stocks class' user should able to :
a. Add a new book to the database with proper details (Name, Author name, Genre, Year of Publication, No.of copies, Price) and automatically assigns Unique Book Code to each copy.
b. Delete a book from the active book database.
c. Displays the list of books that is available at the library at the moment.
using 'Staff class' user should able to:
a. Display the list of librarians with your name, Staff ID, Duty Time and other relevant details.
b. Display the list of all working staff at the given time.
c. Calculate the salary in accordance with the attendance and Staff type.
d. Records and Mark attendance for a staff and update it in the database.
e. Display the list of Helper/Clerks with your name, Staff ID, Duty Time and other relevant details
using 'Issued Books class' user should able to :
a. Lets the member first check for the availability and if present lets the user withdraw the book by giving sufficient details (Member Name, UID, Book Name, Book Code, Issue date) and update the active book database. Assigns Withdraw ID automatically.
b. Displays the name of the book, Book Code, Member Name, UID, , Issue date, Return Date, Time left until return (display overtime if past return date) and other relevant info
c. Calculate and return the date to be returned. (14 days from issue)
using 'Returned Books class' user should able to :
a. Let the member return the book by providing the necessary details. Book is removed from the Issued books and made it as available books. Display Due if past initial Due date.
b. Calculates and Return the late fees based on a certain criterion
c. Calculates and Return the Damage/Loss of Book based on a certain criterion.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
