10:43 AM
C++ programming for Book store automation system


1.                 Introduction

2.                 Proposed system

i.                   Description

ii.                 System requirements

3.                 Requirement Analysis

4.                 System Design

5.                 Source code

6.                 Testing

7.                 Future scope of project


In the existing system, most of the records are maintained on paper. It becomes very inconvenient to modify the data. In the existing system, here is a possibility that the same data in different registers may have different values which means the entries of the same data do not match. This inconsistent state does not supply the concrete information which poses a problem in the case information related to particular search record.

Our project is very useful. User is no longer required to check his register in search of records, as now it can be searched over the software by choosing some options. The user need not to type in most of the information. He/she is just required to enter the desired options. On the whole it liberates the user from keeping lengthy manual records. In a nutshell, it abates the work load of an organization.

In today’s world, no one likes to perform calculations on calculator or manually when computer is there. Every one wants his/her work to be done by computer automatically and displaying the result for further manipulations.

A book shop uses a personal computer to maintain the inventory of books that are being sold at the shop. The list includes details such as author, title, price, publisher, stock position,etc. Whenever a customer wants a book, the shopkeeper inputs the title and author of the book and the system replies whether it is in the list or not. If it is not, an appropriate message s displayed. If book is in the list, then the system displays the book details and asks for number of copies. If the requested copies are available the, total cost of the books is displayed; otherwise the message "Required copies not in stock” is displayed.


The following documentation is a project the "Book store automation system”. It is a detailed summary of all the drawbacks of the old system and how the new proposed system overcomes these shortcomings. The new system takes into account the various factors while designing a new system. It keeps into the account the Economical bandwidth available for the new system. The foremost thing that is taken care of is the Need and Requirements of the User.


Before developing software we keep following things in mind that we can develop powerful and quality software


Problem statement was to design a module:
Which is user friendly
Which will restrict the user from accessing other user’s data.
Which will help user in viewing his data and privileges.
Which will help the administrator to handle all the changes.

The system will be user friendly and completely menu driven so that the users shall have no problem in using all options.

The system will be efficient and fast in response.
The system will be customized according to needs.
 Name of title
Name of author


Operating system:       MS Windows XP or Windows Vista

Language:                   C Language

Processor:                    Pentium IV Processor

RAM:                          512 MB

Hard disk:                    5 GB


This process is adopted when management of the system development, Personnel decide that the particular system needs improvement. The system development life cycle is the set of activities, carried out by the analyst, designers and users to develop and implement a system. The systems that are present in the nature follow common life cycle pattern. For example consider the raining system. Initially the rain falls into the river, river flows into sea, the sea water evaporates to form vapors, the vapors form clouds which again bring rain. Similarly consider a man made system initially a system is analyzed, designed and made operational by the efforts of system analysis. After successful operation or a number of users, the system becomes less and less effective by change in the environment. So these changes have to be incorporated in to the system by minor modifications. So the general activities from the life cycle of the system are given below:

Select ion and identification of the system to be studied
Preliminary study
Defining the system
Design and development of the system
Implementation of the system

Then we began with the design phase of the system. System design is a solution, a "HOW TO” approach to the creation of a new system. It translates system requirements into ways by which they can be made operational. It is a translational from a user oriented document to a document oriented programmers. For that, it provides the understanding and procedural details necessary for the implementation. Here we use Flowchart to supplement the working of the new system. The system thus made should be reliable, durable and above all should have least possible maintenance costs. It should overcome all the drawbacks of the Old existing system and most important of all meet the user requirements.





struct record


     char author[20];

     char title[30];

     float price;



     char month[10];

     int year;



    char publisher[10];

    int quantity;


     int look_up(struct record table[],char s1[],char s2[],int m);

     void get(char string [ ]);



     char title[30],author[20];

     int index,no_of_records;

     char response[10], quantity[10];

     struct record book[]=     {

      { "Ritche","C language",45.00,"May",1977,"PHI",10},

      { "Kotchan","Programming in C",75.50,"July",1983,"Hayden",5},

      { "Balagurusamy","BASIC",30.00,"January",1984,"TMH",0},

      { "Balagurusamy","COBOL",60.00,"December",1988,"Macmillan",25}


       no_of_records=sizeof(book)/sizeof(struct record);



     printf("Enter title and author name as per the list\n");

     printf("\n Title:");








     printf("\n %s %s %.2f %s %d %s\n\n",



     book [index].price,




     printf("Enter number of copies");


     if(atoi(quantity) < book[index].quantity)

     printf("cost of %d copies=%.2f\n",atoi(quantity),



     printf("\n required copies not in stock\n\n");



      printf("\n Book not in list \n\n");

      printf("\n Do you want any other book?(YES/NO):");



      while(response[0]=='Y'|| response[0]=='y');

      printf("\n\nthank you.good bye!\n");


   void get(char string [])


     char c;

     int i=0;






       while(c !='\n');



     int look_up(struct record table[],char s1[],char s2[],int m)


     int i;


     if(strcmp(s1,table[i].title)==0   &&





Testing is the major control measure used during software development. Its basic function is to detect errors in the software. During requirement analysis and design, the output is a document that is usually textual and no executable. After the coding phase, computer programs are available that can be executed for testing purpose. This implies that testing not only, has to uncover errors introduced during coding, but also errors introduced during previous phase. Thus the goal of testing is to uncover the requirements, design and coding errors in the programs. So after testing the outputs of my project are as follows:

Views: 110 | Added by: vijoriya | Tags: programming, automation system, Book Store, c++ | Rating: 0.0/0
Total comments: 0