Here's a README file for the bookstore clerk program:
This program is designed for use by a bookstore clerk to manage an inventory of books.
The program allows the clerk to add new books to the database, update book
information, delete books from the database, and search the database to find specific books.
The program interacts with a database called ebookstore
and manages a table named book
with the following structure:
ID | Title | Author | Quantity |
---|---|---|---|
3001 | A Tale of Two Cities | Charles Dickens | 30 |
3002 | Harry Potter and the Philosopher's Stone | J.K. Rowling | 40 |
3003 | The Lion, the Witch, and the Wardrobe | C.S. Lewis | 25 |
3004 | The Lord of the Rings | J.R.R. Tolkien | 37 |
3005 | Alice in Wonderland | Lewis Carroll | 12 |
You may also add additional values to the table as needed.
The program offers the following functionalities:
The program will present the user with a menu to select the desired action, and it will perform the function based on the user's choice.
Database Setup:
Create a database named ebookstore
.
Create a table named book
with the following structure:
CREATE TABLE book (
id INT PRIMARY KEY,
title VARCHAR(255),
author VARCHAR(255),
qty INT
);
Populate the table with the following data:
INSERT INTO book (id, title, author, qty) VALUES
(3001, 'A Tale of Two Cities', 'Charles Dickens', 30),
(3002, 'Harry Potter and the Philosopher\'s Stone', 'J.K. Rowling', 40),
(3003, 'The Lion, the Witch and the Wardrobe', 'C.S. Lewis', 25),
(3004, 'The Lord of the Rings', 'J.R.R. Tolkien', 37),
(3005, 'Alice in Wonderland', 'Lewis Carroll', 12);
Running the Program:
Usage:
This project is licensed under the MIT License.
Feel free to fork this repository and submit pull requests if you would like to contribute to the development of this program.
This README file provides an overview of the program, instructions on how to set up and run it, and details about its features.