Retrieved de https://studentshare.org/information-technology/1595492-introduction-to-java-programming
https://studentshare.org/information-technology/1595492-introduction-to-java-programming.
Java Program: Library Application (Section) Due) Introduction It involves the development of a library application which forms part of an upgrade initiative with two main users as the borrowers and the employee with employees interacting with the application more than the borrowers. The first step in the development of the application is the design; in this case it involves the design of the case diagrams, sequence diagram and class diagram.Class Diagram There are four major entities involved in the development of this application including: the library itself, books, employees and the borrowers.
Documentation of the Class DiagramThe library lends books to the borrowers and at the same time catalogues the books besides making purchase of new books. The borrowers are registered in the system and they can borrow books from the library through the system. Books are bought and catalogued in many copies by the library. The outdated books or those in bad condition are given away. A book may be reserved for a borrower if needed. Works at Class Diagram DocumentationThe library lends books to the borrowers, at the same time catalogues the books besides making purchase of new books.
The first row in the library class diagram contains the attribute name (library) followed by the attributes in the second row and, finally, the methods of the class library.The borrowers are registered in the system and they can borrow books from the library through the system. Likewise, the borrower is represented in the first row as the class name of the borrower entity followed by its attributes and, lastly, the methods in the borrower class. The same criteria applies to the book and the employee classesBooks are bought and catalogued in many copies by the library.
The outdated books or those in bad condition are given away. A book may be reserved for a borrower if needed.Use CasesThe library main functions are to purchase, store, catalogue, as well as lend books to its users, especially the borrowers, including its employees. It also registers and stores the information regarding its employees and borrowers presenting each party with a unique identification number. The borrowers are involved with such activities as borrowing books and returning books while the library lends books, updates and makes addition of new borrows.
The following use case diagram shows all the above named activities involving the borrower and the library. There are two main actors in this system, including the employee and the borrower.Use case diagram:a) Lending a bookLibraryEmployee(Librarian) For the lending case, the employee (librarian) should be on the right hand side of the system, since it’s the main actor. He checks the library card to verify the borrower identity before lending out the book.b) returning a bookLibraryBorrower c) Removing a book d) Adding a customer Employee (Librarian)e) Updating/removing customer’s entry` ReferencesBehrens, L.
, & Rosen, L. J. (2008). Writing and reading across the curriculum (10th ed.). New York: Pearson Longman.Ambler, S. W. (2005). The elements of UML 2.0 style. New York: Cambridge University Press.
Read More