Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment Title: Library Management System with OOP in JAVA Instructions in this assignment, you will demonstrate your understanding of core Object-Oriented Programming (OOP) concepts,

Assignment Title: Library Management System with OOP in JAVA Instructions in this assignment, you willPart 3: Inheritance and Polymorphism (20 points) Extend the classes from Part 2 to demonstrate inheritanceAssignment Title: Library Management System with OOP in JAVA. Instructions: In this assignment, you will

Assignment Title: Library Management System with OOP in JAVA Instructions in this assignment, you will demonstrate your understanding of core Object-Oriented Programming (OOP) concepts, including objects, classes, methods, loops, and various data types, as well as more advanced concepts such as inheritance and polymorphism Additionally, you will practice creating classes based on UML diagrams and declaring functions Part 1: UML and Class Creation (30 points) Assume that you have to develop a class diagram that represents a library system with books, members, and brarians. The UML diagram will include 1. A Book class with attributes such as the author, 8N, number of available copies, and other attributes 2. A library Member class with attributes such as name, Mbrary cand number, a ist of borrowed books, and other attributes 3 Abrarian class with name, position, email, password, and other attributes & Appropriate method names for classes to perform actions For Example, the book class must check out and return book methods with parameters Other attribute that you think need to be added. Please add at least 1 attribute of your own Develop a UML diagram based on the above requirements Part 2: Declaration of Classes, Attributes & Methods (30 points) Create all the classes mentioned in the UML diagram you answered in Part 1 to simulate a library system Your program should Write all classes, attributes, and methods definitions . Write a few methods declaration Allow a user to add books to the library system Allow a user to add members to the library system Allow a user to check out booksto patrons Allow a user to return books Ensure each function has a printout as the following code. You do not need to have full functionality Book(parameter) System.out.println("Add bok authod created and ready for call) Willdelater Part 3: Inheritance and Polymorphism (20 points) Extend the classes from Part 2 to demonstrate inheritance and polymorphism. Create subclasses of the Book class, such as Fiction, Nonfiction Books, and magazines with additional attributes and methods relevant to their type. Implement at least 2 polymorphic behaviors to handle different book types in your library system. Example of Polymorphic behaviors: Think of your superclass that has a method called addBook). Subclasses of that class have their own implementation of the addBook() method Part 4: Report (20 points) The report Should have the following sections: . Introduction: Briefly introduce the purpose of the assignment. . UML Class Design (Part 1): Provide the UML diagram you created. Declaration of Classes, Attributes & Methods (Part 2): Explain different classes and their methods importance in your design. Include code snippets to highlight the key parts of your program. Inheritance and polymorphism (Part 3): Describe how you extended the classes to demonstrate inheritance. Explain how you implemented polymorphism to handle different book types. Include code examples that showcase the inheritance and polymorphism in your program. References: If you use any external resources or references, cite them appropriately Part 3: Inheritance and Polymorphism (20 points) Extend the classes from Part 2 to demonstrate inheritance and polymorphism. Create subclasses of the Book class, such as Fiction, Nonfiction Books, and magazines with additional attributes and methods relevant to their type. Implement at least 2 polymorphic behaviors to handle different book types in your library system. Example of Polymorphic behaviors: Think of your superclass that has a method called addBook(). Subclasses of that class have their own implementation of the addBook() method. Part 4: Report (20 points) The report Should have the following sections: Introduction: Briefly introduce the purpose of the assignment. UML Class Design (Part 1): Provide the UML diagram you created. Declaration of Classes, Attributes & Methods (Part 2): Explain different classes and their methods importance in your design. Include code snippets to highlight the key parts of your program. Inheritance and Polymorphism (Part 3): Describe how you extended the classes to demonstrate inheritance. Explain how you implemented polymorphism to handle different book types. Include code examples that showcase the inheritance and polymorphism in your program. References: If you use any external resources or references, cite them appropriately. . . . . Assignment Title: Library Management System with OOP in JAVA. Instructions: In this assignment, you will demonstrate your understanding of core Object-Oriented Programming (OOP) concepts, including objects, classes, methods, loops, and various data types, as well as more advanced concepts such as inheritance and polymorphism. Additionally, you will practice creating classes based on UML diagrams and declaring functions. Part 1: UML and Class Creation (30 points) Assume that you have to develop a class diagram that represents a library system with books, members, and librarians. The UML diagram will include: 1. A Book class with attributes such as title, author, ISBN, number of available copies, and other attributes. 2. A Library Member class with attributes such as name, library card number, a list of borrowed books, and other attributes. 3. 4. A librarian class with name, position, email, password, and other attributes Appropriate method names for classes to perform actions. For Example, the book class must check out and return book methods with parameters. Other attributes that you think need to be added. Please add at least 1 attribute of your own. Develop a UML diagram based on the above requirements. Part 2: Declaration of Classes, Attributes & Methods (30 points) Create all the classes mentioned in the UML diagram you answered in Part 1 to simulate a library system. Your program should: Write all classes, attributes, and methods definitions. Write a few methods declaration. . o Allow a user to add books to the library system. o Allow a user to add members to the library system. o Allow a user to check out books to patrons. o Allow a user to return books. Ensure each function has a printout as the following code. You do not need to have full functionality. add Book(parameter){ System.out.println("Add book method created and ready for call"); // Will code later

Step by Step Solution

3.28 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

To design a Library Management System based on the ObjectOriented Programming OOP principles with encapsulation and HASA relationships the classes Book LibraryMember and Library are defined with their ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting Information Systems

Authors: George H. Bodnar, William S. Hopwood

11th Edition

0132871939, 978-0132871938

More Books

Students also viewed these Programming questions

Question

Who is responsible for the management of all incident operations?

Answered: 1 week ago

Question

State two advantages of using cycle billing.

Answered: 1 week ago