For this chapter's assignment you will add searching capabilities to the addaook, lookUpBook, editBoolc, and deleteBook functions.
Modify the addBook Function
When a new book is added to the inventoty, the program will search the bookTitle array for a row whose first column is set to zero, or the null terminator. If the first column of a row contains a null terminator, it means there isn't a string stored there. (Because the arrays are global, all their elements will be automatically initialized to zero.)
Once an empty row is found in the bookTitle array, the book's data may be stored in each of the other arrays by using the same subscript. For instance, if the title of the book is stored in bookTitle ( 7 ), its ISBN number will be stored in isbn [7 ], its author's name will be stored in author [71, its publisher's name will be stored in publisher[7 1, the date the book was added to the inventory will be stored in dateAdded( 7), the quantity of books on hand will be stored in qty0nBand[7], the book's wholesale price will be stored in wholesale 7 ], and the book's retail price will be stored in retail '7).
The addBook function is currently a stub function. Modify it so it performs the fol-lowing steps:
• First the function should search the bookTitle array for an empty row. As described above, the function should look for a row whose first column is set to zero, or the null terminator. If no empty row is found, it means the array is full. In that case, the function should display a message indicating that no more books may be added to the inventory, and then terminate
. • Once an empty row is found in bookTitle, the function should ask the user to enter the following items:
Book title
ISBN number
Author's name
Publisher's name
The date the book is added to the inventory
The quantity of this book being added
The wholesale cost of the book
The retail price of the book
Each item above should be added to the appropriate array. Note that the whok, cost and retail price is for a single copy of the book. Also, remember that the ck should be entered in the form MM-DD-YYYY, where MM is the month, DD is the day, and 'YYYY is the year.
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.