Question: Implement a library stock system using your singly linked list from LAB 05: Exercise # 1 1. Add a book should input from user all

Implement a library stock system using your singly linked list from LAB 05: Exercise # 1 1. Add a book should input from user all the required data for a book and add the book in front of linked list using the method addTo Head(). 2. Remove a book should input bookID from user and delete it from the list using the method delete(bookID), if present. 3. Show list of books should display the books in list using the method printAllo. 4. Exit should close the program (running in infinite loop) using return or break statement. Books in Library 1. Add a book 2. Remove a book 3. Show list of books 4. Exit Your choice? A node in this list should contain following information about books: dass Book { public long bookID, public String title public String author; public int addition public String publisher; public int year public Node next; public Nodelong ID String tit, String aut, int ed. Sting pub, int y){ bookID=ID; title=tit, author aut; adition=at publisher pub;year=y
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
