Question: EACH COMMAND REQUIRES IT'S OWN FUNCTION Program creating book-store database. Each command requires separate function. struct Book string ISBN; string title; int quantity; int edition;

 EACH COMMAND REQUIRES IT'S OWN FUNCTION Program creating book-store database. Each

command requires separate function. struct Book string ISBN; string title; int quantity;

EACH COMMAND REQUIRES IT'S OWN FUNCTION

Program creating book-store database. Each command requires separate function. struct Book string ISBN; string title; int quantity; int edition; double price; Program needs to read and process a transaction file "storeTrans.txt". This file contains several commands such as: display, add, searchBook, delete, updatePrice, updateQuantity, sort and save. Each command requires new line Example of display: ISBN Title Edition Quantity Price 123456789 C++ForDummies 3 5 150.00 Add bookISBN bookTitle bookQuantity bookPrice Adds new book record to the database . Should read information from the transaction file Should check for duplicate book entries (same ISBN) If book doesn't exist: add new entry Should display message that the book was successfully added If book already exists, do not add. Display message use push back function to add to the end of vector 123456789 successfully added to the database 123456789 already exists. The number of copies is now 5 " . . SearchBook bookTitle Searches and returns all books with matching title. Exact title OR keyword found Display message . . . "Searching for book... 123456789 C++ForDummies 5 If no entry found ."Searching for book. Sorry, no matching book exists

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!