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

1 Expert Approved Answer
Step: 1 Unlock

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

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!