Book Inventory System

Create a Book class to represent books in a library inventory system. Implement methods to add a book, remove a book, and display all books.
        
       Input:-add
Hamlet
remove
Hamlet
add
Twilight
display
stop
       Input Description: Input will be taken one by one, first will be operation type "add", "remove", "display", or "stop".
Then second input "book_name" which we want to add or remove. Then again new operation until stop operation performed. Display will show all books stored and stop will terminate program. 
       Output: book added successfully
book removed successfully
book added successfully
Twilight
       Output Description: The output will consist of messages corresponding to each operation
 add: "book added successfully"
 remove: "book removed successfully"
 display: display all books one by one. if no books to display, show the message "book not found".
 stop: terminate the program execution.
 These outputs will be displayed one by one on new line depends on operations performed. 
       Constraints: Maximum number of books is 1000.
       Explanation: 

Loading...