Add the following functions to the program.
setTitle: This function accepts as arguments a pointer to a string and an inte-ger that will act as a subscript into the array of BookData structures. It copies the string to the bookTitle member of the array element specified by the subscript. Return value: void.
setISBN: This function accepts as arguments a pointer to a string and an inte-ger that will act as a subscript into the array of BookData structures. It copies the string to the ISBN member of the array element specified by the subscript. Return value: void.
setAuthor: This function accepts as arguments a pointer to a string and an ger that will act as a subscript into the array of BookData structures .It copies the string to the author member of the array Pied by the subscript. Return value: void.
setPub: This function accepts as arguments a pointer to a string and an integer that will act as a subscript into the array of sciokpt It copies the string to the publisher member of the array element specified by the subscript. Return value: void.
setDateAdded: This function accepts as arguments a pointer to a string and an in ger that will act as a subscript into the array of Bookdata structures It copies the string to the dateAdded member of the array element specified by the subscript. Return value: void.
setOty: This function accepts as arguments an integer (holding a quantity and an integer that will act as a subscript into the array of B structures. It copies the quantity parameter to the qtyOnHand member of the array element specified by the subscript. Return value: void
setwholesale: This function accepts as arguments a double and an integer that will act as a subscript into the array of BookData structures. It copies the double to the wholesale member of the array element specified by the subscript. Return value: void.
setRetail: This function accepts as arguments a double and an integer that will act as a subscript into the array of BookData structures. It copies the double to the retail member of the array element specified by the subscript. Return value: void.
isEmpty: This function accepts an integer that will act as a subscript into the array of BookData structures as its argument. The function will return an int, indicating whether the structure specified by the sub-script is empty (1 = empty, 0 = not empty). If the first character of the bookTitle member is zero (the null terminator), the function returns 1. Otherwise a 0 is returned.
removeBook: This function accepts an integer that will act as a subscript into the array of BookData. structures as its argument. The function will remove a book from inventory. It does so by simply setting the first . character of the bookTitle member to zero (the null terminator)
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.