A bookshop (PRIMER BOOKSHOP) wants to maintain the inventory of books that are being sold at the shop. The list includes details such as author, title, price, publisher, and stock position. Whenever a customer wants a book, the sales personnel inputs the title and author, and the system searches the list and displays whether it is available or not. - If it is not, an appropriate message is displayed. - If it is, then the system displays the book details and requests for the number of copies required. - If it is requested, copies of the book details and requests for the number of copies required are available, the total cost of the requested copies is displayed and your system needs to update the database. - Sales personnel, from time to time are allowed to update the latest stock and price to the created database. Design a system using a C++ called books inventory with suitable member functions, array, data structure, and pointers. Use suitable pointers, arrays, and data structures to allocate and handle your memory space required dynamically. Users can also save their searching process data which can be opened soon by a certain ID/key to index their previous searching process data.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

C++ Project ( Build the requested system 100% into a C++ environment, excluding Class framework & All defined variables must be represented as pointer type, int, char etc)
Scenario:
A bookshop (PRIMER BOOKSHOP) wants to maintain the inventory of books that are being sold at the shop. The list includes details such as author, title, price, publisher, and stock position. Whenever a customer wants a book, the sales personnel inputs the title and author, and the system searches the list and displays whether it is available or not.
- If it is not, an appropriate message is displayed.
- If it is, then the system displays the book details and requests for the number of copies required.
- If it is requested, copies of the book details and requests for the number of copies required are available, the total cost of the requested copies is displayed and your system needs to update the database.
- Sales personnel, from time to time are allowed to update the latest stock and price to the created database.

Design a system using a C++ called books inventory with suitable member functions, array, data
structure, and pointers. Use suitable pointers, arrays, and data structures to allocate and handle your
memory space required dynamically. Users can also save their searching process data which can be
opened soon by a certain ID/key to index their previous searching process data. 

For the menu, at least you could come out with the following menu system. Subject to your
creativity, you may add as many functions as you could to ensure that your system maintains very
good interactivity. (Refer to the pictures attached)

*Help me solve this question & give good comments for every single function, loop, and statement. Thank you in advance.

MENU
1. Entry of New Book
2. Display All Available Books
3. Buy Book
4. Search For Book
5. Edit Details Of Book
6. Save your search
7. Open your previous Search
8. Help
9. Exit
Enter your Choice: 1
Enter Author Name: Test Author
Enter Title Name: Test Title
Enter Publisher Name: Test Pub 1
Enter Price: 100
Enter Stock Position: 2
Transcribed Image Text:MENU 1. Entry of New Book 2. Display All Available Books 3. Buy Book 4. Search For Book 5. Edit Details Of Book 6. Save your search 7. Open your previous Search 8. Help 9. Exit Enter your Choice: 1 Enter Author Name: Test Author Enter Title Name: Test Title Enter Publisher Name: Test Pub 1 Enter Price: 100 Enter Stock Position: 2
Expert Solution
steps

Step by step

Solved in 3 steps with 7 images

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education