Dear Expert, I really need your help writing the code for this JAVA programming
ID: 3691522 • Letter: D
Question
Dear Expert,
I really need your help writing the code for this JAVA programming project.
facilitates a catalog of books for its faculty and students. Several books are available for the students and faculty members Catalog has a pool of books of different authors The faculty members and students can access two books at a time depending on the availability. Each book has a unique code * . You should provide functions to support the following operations 1. The book administrator can add new books and its information 2. The book administrator can remove and update the information of the faculty or student who borrowed the books 3. The faculty and students can inquire about the specific books including the author information 4. The faculty and students can request for a new book 5. The book administrator can update the requests or new requirements from the faculty or the students 6. The faculty and the students can raise a complain about the non-availability of the books or any other 7. The book administrator can generate the reports of the book based on a. Book title b. Book Author c. Book ISBN 8. The system should be able to handle other kinds of reports to be generated in the future You should create three classes, one for Book, the second for Administrator and the third for Users. Use the linked list and the files for databaseExplanation / Answer
}
-------------------------------------------
private void addBook(Book bookObject) {
for (int x = 0; x < books.length; x++) {
books[x] = bookObject;
if (bookObject == null) {
break;
}// end if
} // end for
} // end addBook
private void printAvailableBooks() {
int x = 0;
if (books[x] == null) {
System.out.println("No books in catalog");
}// end if
else {
for (x = 0; x < books.length; x++) {
System.out.println(books[x].title);
} // end for
} // end else
} // end printAvailableBooks
public static void main(String[] args) {
// Create two libraries
Library firstLibrary = new Library("10 Main St.");
Library secondLibrary = new Library("228 Liberty St.");
// Add four books to the first library
firstLibrary.addBook(new Book("The Da Vinci Code"));
firstLibrary.addBook(new Book("Le Petit Prince"));
firstLibrary.addBook(new Book("A Tale of Two Cities"));
firstLibrary.addBook(new Book("The Lord of the Rings"));
// Print the titles of all available books from both libraries
System.out.println("Books available in the first library:");
firstLibrary.printAvailableBooks();
System.out.println();
System.out.println("Books available in the second library:");
secondLibrary.printAvailableBooks();
System.out.println();
------------------------------------------
public class BookManager {Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.