In: Computer Science
Library Management System allows the user to borrow and return the books. The book is identified by book name, accession number, item category, due date, due time, and status. Before the user proceeds to borrow or return the books, they need to register for an account. Each user can have only one account. The user can be a staff or student. Each user is identified by ID number, name, school/department name, address. The books are arranged on a shelf. The shelf can be of two categories: open shelf or red spot. The user is allowed to reserve the book, in case, if the book is already borrowed by someone. While reserving a book, the user needs to specify the user name, ID number, book name, and accession number.
##Based on the above scenario, draw a Class Diagram. Your diagram should include attributes, methods and multiplicity.
Answer:- Library Management System class diagram includes Library Management System Class, the attributes, the methods and also describes the relationships among the objects. The Library management System is the main base class that includes Students, Books, Book issue, User, Address.
Classes of the Library Management System included in Class Diagram as below:
Student Class – All the operations of Student class are managed in this class.
Books Class – All the operations related to Books are managed in this class.
Book Issue Class – All the operstion related to book issues are managed in this class
User Class – All the operations related to the user is managed in this class
Address Class- All the operations related to Address are managed in this class
Classes and the Attributes of Library management System Class Diagram are as below:
Student Attributes – student_id, student_name, student_user_name, student_password, student_address, student_college_id
Books Attributes: student_id, book_id, book_name, accession_number, item_category,due_date, due_time, status
Book Issue Attributes – issue_student_id, issue_date, issue_id, book_id, book_name, accession_number, issue_due_date,issue_due_time,issue_renewal,issue_description
User Attributes – user_id, user_name, user_role_id, user_role_password, user_address
Address Attributes - address_id, address_student_id, address_description
Classes and the Methods of Library management System Class Diagram are as below:
Student Methods – addstudents() ,editstudents() ,savestudents() , deletestudents() ,searchstudents()
Books Method - addbooks() ,editbooks() ,savebooks() ,updatebooks(), deletebooks() ,searchbooks()
Book issue Method - addbookissue() ,editbookissue() ,savebookissue() ,updatebookissue(), deletebookissue() ,searchbookissue()
User Method - addsuser() ,edituser() ,saveuser() ,updateuser(), deleteuser() ,searchuser()
Address Method - addAddress() ,editAddress() ,saveAddress() ,updateAddress(), deleteAddress() ,searchAddress()
Class Diagram of Library Management System is as below: