Question: Using C++ Question 5 Referring to Sample of Program at last page, complete the following questions: 1. Complete a function named deleteBook(). This function should

Using C++

Using C++ Question 5 Referring to Sample of Program at last page,complete the following questions: 1. Complete a function named deleteBook(). This function

Question 5 Referring to Sample of Program at last page, complete the following questions: 1. Complete a function named deleteBook(). This function should delete selected data based on book ID entered by user. 2. Complete a function named updateBookl). User will enter book ID as search input and the function should be able to update details of book based on following options: Option 1 (bookName): function will update the book name based on input entered by user. Option 2 (bookPrice): function will update the book price based on input entered by user. Option 3 (bookQty): function will update the book quantity based on input entered by user. . Sample of Program 1/Question 4(1) I/Question 4(2) int menu() { int choice; cout > choice; return choice; void registerBoak[/* suitable variable")) { 1/Question 4(3) void delataBook /* suitable variable"/) { 1/Question 4(4) 3 void displaybook(/* suitable variable"/) { 1/Question 5(1) void updatebookl/* suitable variable) { I/Question 5(2) } int main() { vectorRecord; Book data; int choice; do choice - menu(); switch (choice) { Case 1: //call function cegistergoak and push the data to vector. case 2: //call function delateBook) case 3: //call function displayBook) case 4: //call function updateBook) } while (choice != 5)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!