Question
Create a program that does all of the following: Add, edit, delete books, and view their information Through the program, a new book can be
Create a program that does all of the following:
Add, edit, delete books, and view their information
Through the program, a new book can be stored, and the book's information includes:
Book Id.
Book Title Book Title.
Author's name.
The price of the book.
Quantity.
Help (1): To store book information, you can use Arrays, specifically 2D Arrays.
Ability to inquire about a book
Through the program, you can inquire about a book through:
Book Id number
Title of the book
Author's name
Help (2): For a query, you can use Loops to go through the entire array, and then check using conditional statements like the if statement.
Selling a book and exporting an invoice
Through the program, one or more books can be sold and an invoice issued with an alert to:
Verify that there is a sufficient quantity of the book to be sold in the store.
If there is sufficient quantity, the stock is reduced according to the quantity requested in the invoice.
Help (3): To issue an invoice you need input and then validate it. Note: The inputs are values given in the program and it is not required to request them from the user while the program is running.
The inputs are as follows:
Book Name: The title of the book to be purchased.
Quantity Required: Quantity of books.
Available balance: meaning the person's current balance.
Verification Terms:
The book is available.
The required quantity is available.
That the customer's balance is sufficient to purchase the required quantity.
Step by Step Solution
3.45 Rating (158 Votes )
There are 3 Steps involved in it
Step: 1
include include using namespace std int main Declare ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started