Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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++

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Semantics In Databases Second International Workshop Dagstuhl Castle Germany January 2001 Revised Papers Lncs 2582

Authors: Leopoldo Bertossi ,Gyula O.H. Katona ,Klaus-Dieter Schewe ,Bernhard Thalheim

2003rd Edition

3540009574, 978-3540009573

More Books

Students also viewed these Databases questions

Question

7. Discuss the key features of the learning organization.

Answered: 1 week ago