0% found this document useful (0 votes)
44 views

Book Shop System Abstract

1. The document describes a bookshop management system project that aims to help a bookshop owner manage the store's inventory and transactions more easily using a computerized system. 2. Key features of the system include online book issuing, requesting new titles, a digital library, student and teacher login pages, and a notice board. The system will run on Windows or Linux with at least 1GB RAM and 3GB hard disk space. 3. The system was programmed in C++ using file handling functions to add, view, update, delete and search for book records stored in a text file database. Switch cases implemented the different functions through a control panel menu.

Uploaded by

NG COMPUTER
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

Book Shop System Abstract

1. The document describes a bookshop management system project that aims to help a bookshop owner manage the store's inventory and transactions more easily using a computerized system. 2. Key features of the system include online book issuing, requesting new titles, a digital library, student and teacher login pages, and a notice board. The system will run on Windows or Linux with at least 1GB RAM and 3GB hard disk space. 3. The system was programmed in C++ using file handling functions to add, view, update, delete and search for book records stored in a text file database. Switch cases implemented the different functions through a control panel menu.

Uploaded by

NG COMPUTER
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 22

ABSTRACT

INTRODUCTION

This chapter gives an overview about the aim , objectives ,background and operation
environment of the system.

PROJECT AIMS AND OBJECTIVES


The project aims and objectives that will be achieved after completion of this
project are discussed in this subchapter. The aims and objectives are as follows:
 Online book issue
 Request column for librarian for providing new books
 A separate column for digital library
 Student login page where student can find books issued by him/her and date of
return.
 A search column to search availability of books
 A teacher login page where teacher can add any events being organized
in the college and important suggestions regarding books.
 Online notice board about the workshop.
BACKGROUND OF PROJECT

Library Management System is an application which refers to library systems


which are generally small or medium in size. It is used by librarian to manage
the library using a computerized system where he/she can record various
transactions like issue of books, return of books, addition of new books, addition
of new students etc.

Books and student maintenance modules are also included in this system which
would keep track of the students using the library and also a detailed description
about the books a library contains. With this computerized system there will be
no loss of book record or member record which generally happens when a non
computerized system is used.

In addition, report module is also included in Library Management System. If


user’s position is admin, the user is able to generate different kinds of reports
like lists of students registered, list of books, issue and return reports.

All these modules are able to help librarian to manage the library with more
convenience and in a more efficient way as compared to library systems which
are not computerized.
1.5 OPERATION ENVIRONMENT

PROCESSOR INTEL CORE PROCESSOR OR BETTER


PERFORMANCE

OPERATING SYSTEM WINDOWS VISTA ,WINDOWS7, UBUNTU

MEMORY 1GB RAM OR MORE

HARD DISK SPACE MINIMUM 3 GB FOR DATABASE USAGE FOR


FUTURE
DATABASE MY SQL
BOOK SHOP IN C++
Objective:
Under any particular book shop, there are various number and types of books available and it is
sometimes even difficult for the book shop owner to remember the details of any particular book. With
this new book shop system, book shopkeeper will find easier to perform all the operations which are
needed for their daily business transactions. As there will be a common system and screen for all types
of users but to perform operations related to admin part, that person should have a valid login id and
password.
If any customers have purchase any book, then they have to just the correct option and enter the
name of the book which they want to book along with total number of books. If the book will be
available in the shop, it will generate the final bill which is to be paid by the customers at the cash
counter and receive that particular book. If no such book will be available, then appropriate message
will be displayed for the users and expected date by which this book will be available within the shop.
Admin will have the responsibility to add, delete and modify records related to book such as book
name, quantity available, price per book etc.
Existing System:
Under the existing system, customers do not have the freedom to use the system within their shop.
Only shopkeeper has the facility to use the computer to get information on the basis of customer’s
requirements and as per the business requirement. In this system searching medium was not available,
by which admin have to get details of book by viewing each book record one by one. As there was
sequential method to use any particular records, so making any operations was time consuming and
confirmation was not given upon processing any particular task., by which admin have to check
manually whether the task has been processed or not.

The task is to build the bookshop management system using file handling in C++ that
helps to keep track of all the book records in a file. Below are the features to be
implemented:
 Add new book and the details of the book are:
 Book ID
 Name of book
 Name of Author
 Number of books
 Delete a book
 Update a book
 View all the books
 Exit
Approach:
 All the functions will be provided under switch cases.
 The concept of file handling will be used to write the data in a text file and
read the written data as well.
 The required function will be written under the switch cases which will be
executed as per the input of the user.
 Simple file handling concepts like opening a file, closing a file, writing in a file
and reading the file, etc. are used to develop the code.
 An IDE for compiling C++ language code.
Below is the implementation of the above approach:
CODING
// C++ program to illustrate bookshop
// management system using File Handling
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;

// Bookshop Class
class bookshope {
public:
void control_panel();
void add_book();
void show_book();
void check_book();
void update_book();
void del_book();
};

// Function to display the menus


void bookshope::control_panel()
{
system("cls");
cout << "\n\n\t\t\t\tCONTROL PANEL";
cout << "\n\n1. ADD BOOK";
cout << "\n2. DISPLAY BOOKS";
cout << "\n3. CHECK PARTICULAR BOOK";
cout << "\n4. UPDATE BOOK";
cout << "\n5. DELETE BOOK";
cout << "\n6. EXIT";
}

// Function to add book


void bookshope::add_book()
{
system("cls");
fstream file;
int no_copy;
string b_name, a_name, b_id;
cout << "\n\n\t\t\t\tADD BOOKS";
cout << "\n\nBook ID : ";
cin >> b_id;
cout << "\nBook Name : ";
cin >> b_name;
cout << "\nAuthor Name : ";
cin >> a_name;
cout << "\nNo. of Books : ";
cin >> no_copy;

// Open file in append or


// output mode
file.open("D:// book.txt",
ios::out | ios::app);
file << " " << b_id << " "
<< b_name << " " << a_name
<< " " << no_copy << "\n";
file.close();
}
// Function to display book
void bookshope::show_book()
{
system("cls");
fstream file;
int no_copy;
string b_name, b_id, a_name;
cout << "\n\n\t\t\t\t\tAll BOOKS";

// Open the file in input mode


file.open("D:// book.txt", ios::in);
if (!file)
cout << "\n\nFile Opening Error!";
else {

cout << "\n\n\nBook ID\t\tBook"


<< "\t\tAuthor\t\tNo. of "
"Books\n\n";
file >> b_id >> b_name;
file >> a_name >> no_copy;

// Till end of file is reached


while (!file.eof()) {

cout << " " << b_id


<< "\t\t" << b_name
<< "\t\t" << a_name
<< "\t\t" << no_copy
<< "\n\n";
file >> b_id >> b_name;
file >> a_name >> no_copy;
}

system("pause");

// Close the file


file.close();
}
}

// Function to check the book


void bookshope::check_book()
{
system("cls");
fstream file;
int no_copy, count = 0;
string b_id, b_name, a_name, b_idd;

cout << "\n\n\t\t\t\tCheck "


<< "Particular Book";

// Open the file in input mode


file.open("D:// book.txt", ios::in);
if (!file)
cout << "\n\nFile Opening Error!";
else {

cout << "\n\nBook ID : ";


cin >> b_idd;
file >> b_id >> b_name;
file >> a_name >> no_copy;

while (!file.eof()) {

if (b_idd == b_id) {

system("cls");
cout << "\n\n\t\t\t\t"
<< "Check Particular Book";
cout << "\n\nBook ID : "
<< b_id;
cout << "\nName : "
<< b_name;
cout << "\nAuthor : "
<< a_name;
cout << "\nNo. of Books : "
<< no_copy;
cout << endl
<< endl;
count++;
break;
}
file >> b_id >> b_name;
file >> a_name >> no_copy;
}
system("pause");
file.close();
if (count == 0)
cout << "\n\nBook ID Not"
<< " Found...";
}
}

// Function to update the book


void bookshope::update_book()
{
system("cls");
fstream file, file1;
int no_copy, no_co, count = 0;
string b_name, b_na, a_name;
string a_na, b_idd, b_id;

cout << "\n\n\t\t\t\tUpdate Book Record";


file1.open("D:// book1.txt",
ios::app | ios::out);
file.open("D:// book.txt", ios::in);

if (!file)
cout << "\n\nFile Opening Error!";
else {

cout << "\n\nBook ID : ";


cin >> b_id;
file >> b_idd >> b_name;
file >> a_name >> no_copy;

// Till end of file is reached


while (!file.eof()) {
if (b_id == b_idd) {
system("cls");
cout << "\t\t\t\t"
<< "Update Book Record";
cout << "\n\nNew Book Name : ";
cin >> b_na;
cout << "\nAuthor Name : ";
cin >> a_na;
cout << "\nNo. of Books : ";
cin >> no_co;
file1 << " " << b_id << " "
<< b_na << " "
<< a_na << " " << no_co
<< "\n\n";
count++;
}
else
file1 << " " << b_idd
<< " " << b_name
<< " " << a_name
<< " " << no_copy
<< "\n\n";
file >> b_idd >> b_name;
file >> a_name >> no_copy;
}
if (count == 0)
cout << "\n\nBook ID"
<< " Not Found...";
}
cout << endl;
system("pause");
// Close the files
file.close();
file1.close();
remove("D:// book.txt");
rename("D:// book1.txt",
"D:// book.txt");
}

// Function to delete book


void bookshope::del_book()
{
system("cls");
fstream file, file1;
int no_copy, count = 0;
string b_id, b_idd, b_name, a_name;
cout << "\n\n\t\t\t\tDelete a Book";

// Append file in output mode


file1.open("D:// book1.txt",
ios::app | ios::out);
file.open("D:// book.txt",
ios::in);

if (!file)
cout << "\n\nFile Opening Error...";
else {

cout << "\n\nBook ID : ";


cin >> b_id;
file >> b_idd >> b_name;
file >> a_name >> no_copy;
while (!file.eof()) {

if (b_id == b_idd) {

system("cls");
cout << "\n\n\t\t\t\t"
<< "Delete a Book";
cout << "\n\nBook is Deleted "
"Successfully...\n\n";
count++;
}
else
file1 << " " << b_idd
<< " " << b_name
<< " " << a_name
<< " " << no_copy
<< "\n\n";
file >> b_idd >> b_name;
file >> a_name >> no_copy;
}
if (count == 0)
cout << "\n\nBook ID "
<< "Not Found...";
}
system("pause");

// Close the file


file.close();
file1.close();
remove("D:// book.txt");
rename("D:// book1.txt",
"D:// book.txt");
}

// Function for book shop record


void bookShopRecord()
{
int choice;
char x;
bookshope b;

while (1) {

b.control_panel();
cout << "\n\nEnter your choice : ";
cin >> choice;
switch (choice) {

case 1:
do {

b.add_book();
cout << "\n\nWant to add"
<< " another book? "
"(y/n) : ";
cin >> x;
} while (x == 'y');
break;
case 2:
b.show_book();
break;

case 3:
b.check_book();
break;
case 4:
b.update_book();
break;

case 5:
b.del_book();
break;

case 6:
exit(0);
break;

default:
cout << "\n\nINVALID CHOICE\n";
}
}
}

// Driver Code
int main()
{
// Function Call
bookShopRecord();
return 0;
}
Proposed System:
The new system uses the concept of binary search method to make searching process faster and
provide results within short interval of time. As each modules has been divided into class and
functions, so the execution time of this system is optimized as compared to the previous system. To
make data secure and maintain data integrity proper mechanism has been used to perform validation
process at the client side before saving any data and information to a particular file. Users will be
provided with friendly screen, whether they have to just few information’s regarding their query and
all processing work will be done at the back side.

You might also like