Question: Create a new function called delete_book delete_book should ask for the book's ID and call the Bookstore delete_book function. Display an error message saying Error:
Create a new function called delete_book
delete_book should ask for the book's ID and call the Bookstore delete_book function.
Display an error message saying "Error: Book Not Found" if the user tries to delete a book that doesn't exist.
Add a new menu option with the action delete_book.
Don't ask the user for any confirmation - just delete the book.
Step by Step Solution
3.31 Rating (148 Votes )
There are 3 Steps involved in it
Below is the explanation and code for creating a new function called deletebook as per your requirements Assuming you have a Bookstore class with a de... View full answer
Get step-by-step solutions from verified subject matter experts
