[Solved]Java Simple Library Checkout System Used Librarian Need Following Classes Patron Patron Fi Q37019536
JAVA
Simple library checkout system to be used by a librarian. Youwill need the following classes:
Patron – A patron has a first and last name,can borrow a book, return a book, and keeps track of the books theycurrently have checked out (an array or ArrayList of books). Thefirst and last names can be updated and retrieved. However, apatron can only have up to 3 books checked out at a time. If thepatron already has 3 books checked out, they should not be allowedto check out another book.
Book interface – Create an interface for abook. A book can be checked out and checked in. Remember that aJava interface can only contain method signatures (not methodimplementations). For this project, the interface helps to ensurethat anything that should be treated as a “book” has the ability tobe checked in and out. For example, maybe the way physical booksand electronic books should handle being checked in and outdifferently. You might want to have different classes to defineeach type of book. However, if they both implement the Bookinterface, you can be sure that both classes will have the abilityto check the book in and out, regardless of the implementation.
Book – Implement the Bookinterface. A book has a title, author, and due date, andcan be checked in and out. Books are due one week (7 days) afterbeing checked out. There are a number of different ways to handlestoring the due date. One option would be to use theGregorianCalendar class, as described in Section 13.4. Anotheroption might be to use the Date class together with the Calendarclass.
Library – Create a menu so that the user canadd new patrons and books, edit patron and book info, displaypatrons and books, and check out and check in books. In reality, itwouldn’t be very practical to list out all patrons and books, butin our example we will only have a few of each so the listshouldn’t be too overwhelming.
Please select from the following options:
1. Add new patron
2. Add new book
3. Edit patron
4. Edit book
5. Display all patrons
6. Display all books
7. Check out book
8. Check in book
9. Exit
Menu should repeat until the user chooses to exit theprogram.
Please note that your “Edit patron” and “Edit book” optionsshould only edit patron name, book author, and book title. Theseoptions should not be able to change the due dates of books, etc.Your “display all books” option should include whether or not thebook is checked out.
PATRON LIST:
0 – John Smith
1 – Jane Doe
2 – Ken Adams
Please enter the ID of the patron to edit:
That way, the user can enter the ID, and you can find it fairlyeasily.
Must use Javadoc comments to document each of yourclasses.
-A search feature that can search for a booktitle or author.
-A print feature that will print all thecurrently checked out books to a text file. Please be sure thatthis text file is readable (for example, not just one long line oftext).
Expert Answer
Answer to JAVA Simple library checkout system to be used by a librarian. You will need the following classes: Patron – A patron ha… . . .
OR

