Problem

For this chapter's assignment you will add searching capabilities to the addaook, lo...

For this chapter's assignment you will add searching capabilities to the addaook, lookUpBook, editBoolc, and deleteBook functions.

Modify the deleteBook Function

The deleteBook function is currently a stub function. Modify it so it performs the following tasks:

• It should ask the user for the title of a book. This is a book that is to be deleted from the inventory database.

• The function should search the bookTitle array for a title that matches the one entered by the user. If no match is found, the function should display a message indicating that the book is not in inventory, and terminate. If the book is found, the function should call bookinfo, passing the correct data as arguments.

• The function should ask the user if they are sure the book's data are to be deleted from the inventory. If so, the first character of the book's title (stored in the bookTitle array) is to be set to the null terminator. The first character of the ISBN number (stored in the isbn array) should be set to the null terminator as well.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT