Question: Using python Scenario: You have been tasked with developing a simple console - based application for a local library. The library wants to computerise its
Using python
Scenario: You have been tasked with developing a simple consolebased application for a local library. The
library wants to computerise its book lending system to make it more efficient for both library staff and patrons.
Your task is to create a program that allows library staff to manage book records, check book availability, and
process book loans and retums.
Assignment Tasks: Make screenshots of the source code and paste next to each question.
Design and implement a class to represent a Book: Marks
The Book class should have attributes such as title, author, ISBN, genre, and availability status.
Include methods to get and set these attributes, as well as any other methods you deem necessary.
Create a Library class to manage book records: Marks
The Library class should contain a list or dictionary to store Book objects.
Implement methods to add new books to the library, remove books, display all available books, and search for
books by title, author, or genre.
Develop a user interface for the application: Marks
Design a simple consolebased interface that allows library staff to interact with the Library class functionalities.
Provide screenshot for both source code and the interface.
Provide options for staff to add new books, remove books, display available books, search for books, and
process book loans and retums.
Implement book loan and return functionality. Marks
Add methods to the Library class to handle book loans and retums.
Ensure that the availability status of books is updated accordingly when a book is loaned out or returned.
You are advised to test the application thoroughly:
Test each functionality of the application to ensure it works as expected.
Handle potential edge cases such as attempting to loan a book that is not available or attempting to return a
book that is not on loan.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
