Question: please do this java program and send the answer by 13th feb. it is very urgent. please help write a simple java program for a
please do this java program and send the answer by 13th feb. it is very urgent. please help
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
Book Class
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
Members Class
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)Stocks
Stocks class
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.
Staff class
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
How to calculate Salary
1.assign a base/original salary to the librarian and staff
(Librarians Salary should be more than that of other staff)
2.Assign the maximum no of leave that can be taken in an year without any reduction salary
3.for each extra leave taken, a fixed % of amount must be reduced from the original salary(can use loop condition)
5.orginal Salary must be increased by a fixed amount in each consecutive years...
Issued Books
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)
Returned Books
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.
LATE FEE, DAMAGE/LOSE Fine Calculator
Return period is calculated in issued books() class
if the member returns the book on or before the return period set fine == 0
else impose fine for each late day by a fixed amount
eg : for first late day fine =10 RS
For Second late day fine = 20 RS and so on....
if Damage is made for the book/Lost the book
member should be fined an amount equal to the price of the book + fine for each late day
(price of the book mentioned in Book class)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
