0% found this document useful (0 votes)
15 views71 pages

Computerization of Publishing House Database

The document outlines a project focused on the computerization of a publishing house database, aimed at improving management efficiency by replacing manual ledger systems. It details system analysis, design, implementation, and the required hardware and software specifications, including the use of Microsoft Access and Visual Basic. The project includes modules for managing book details, author information, and transaction records to streamline operations within the publishing house.

Uploaded by

khsheth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views71 pages

Computerization of Publishing House Database

The document outlines a project focused on the computerization of a publishing house database, aimed at improving management efficiency by replacing manual ledger systems. It details system analysis, design, implementation, and the required hardware and software specifications, including the use of Microsoft Access and Visual Basic. The project includes modules for managing book details, author information, and transaction records to streamline operations within the publishing house.

Uploaded by

khsheth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 71

“Computerization of Publishing House Database”

CONTENTS
SL.NO TITLE PAGE NO.

1. Introduction 2
1.1 Introduction

2. System Analysis 4
2.1 Introduction
2.2 Problem Definition
2.3 Existing System
2.4 Proposed System
2.5 Modules
2.6 Feasibility Analysis

3. System Design 8
3.1 Introduction
3.2 Hardware & Software Requirements
3.3 Data Flow Diagram
3.4 Table Design
3.5 Form Design

4. System Implementation 23
4.1 Introduction
4.2 Microsoft Access
4.3 Microsoft Visual Basic.NET
4.4 Runtime Forms

5. Sample Coding 31

6. Sample Screen 63

7. Conclusion 66

8. Bibliography 67

SUBHAM Degree College, Yadgir 1


“Computerization of Publishing House Database”

1.INTRODUCTION TO PROJECT

PROJECT OVERVIEW:

The project deals with the computerization of publishing house

database. Main aim of the software is to provide ease of maintenance to

the management of the publishing house written by different authors

and also selling the books.

Before achievement of the project the publishing house used to

maintain the ledgers to keep a description of details of publishing books.

The project consists of the following main modules.

1) Book details

2) Author details

3) Transaction details

SUBHAM Degree College, Yadgir 2


“Computerization of Publishing House Database”

1.1 Book details:

The project maintains all the details of the book such as boo

name, author, price etc.

1.2 Author Details:

This module consists of the author details such as his name,

address etc.

1.3 Transaction details:

This module deals with the selling of books to the book stalls and

maintaining the account details.

SUBHAM Degree College, Yadgir 3


“Computerization of Publishing House Database”

2. SYSTEM SPECIFICATION

Following will be the development/test environment in terms of

Hardware/Software.

2.1 SYSTEM REQUIREMENT

1. SOFTWARE SPECIFICATION

PLATFORM : Windows XP

FRONT END : Microsoft Visual Basic 6.0

BACK END : Microsoft Access

2. HARDWARE SPECIFICATION:

PROCESSOR : Pentium IV

RAM : 128 MB

HARD DISK : 40 GB.

SUBHAM Degree College, Yadgir 4


“Computerization of Publishing House Database”

2.2. SOFTWARE REQUIRMENT

The SRS is the starting point of the software activity. It is

produced at the Culmination of the analysis task. The function of

performance allocated to the software as a part of description, detailed

functional constraints description, appropriate validation criteria and

other data requirement specification consists of the basic activities, they

are:

1. Production analysis

2. System Requirement Specification.

The purpose of the SRS is to bridge the communication gap

between the user & the programmers. SRS is the medium, through

which the client & the user needs are accurately & unambiguously

specified. Indeed SRS forms the basis the software development

SUBHAM Degree College, Yadgir 5


“Computerization of Publishing House Database”

Computer
System
Engineering Software
Requiremen
t Software
Analysis Design

Fig: -Development of Analysis task.

2.3 PROBLEM ANALYSIS:

Problem analysis involves the client & the end user .One of

major activities during problem analysis is how to organize the

information obtained, so that the information can be effectively

evaluated for completeness & consistency.

2.4 SYSTEM REQUIRMENT SPECIFICATION:

Before any software is developed the requirement is setup.

System requirement describes the test that must be met for the software

to be accepted by the user .The purpose of the system requirement study

is to bridge the communication gap between the user & the programmer.

SUBHAM Degree College, Yadgir 6


“Computerization of Publishing House Database”

System requirement study is through which the client & the user needs

are accurately specified.

2.5 User Requirement Specification:

User requirement specification describes the relation between the

inputs & the outputs of the system. For the each requirement of the user,

a detailed description of all data & their source, the units of measure &

the range of valid input must be specified. This phase deals with

requirement of user for this system. The user is willing to participate in

conferencing; the system also requires user-friendly interfacing.

SUBHAM Degree College, Yadgir 7


“Computerization of Publishing House Database”

3.DEVELOPMENT ENVIRONMENT

3.1. OVER VIEW OF VISUAL BASIC:

Visual Basic is an ideal programming language for developing

sophisticated professional applications for Microsoft Windows; it makes

use of graphical user interface for creating robust & powerful

applications. The graphical user interface as the name suggests, user

illustrations to text, which enables user to interact with an application.

This feature makes it easier to comprehend things in a quicker & easier

way.

Coding in GUI environmental is quite a transaction to traditional,

linear path of execution & is limited to small set of operations. In GUI

environment the number of options open to the user is much greater,

allowing more freedom to the user & the developer, features such as

easier, comprehension, user-friendly, faster application development &

many other aspects such as introduction to active X technology &

internet feature make Visual Basic an interesting tool to work with.

SUBHAM Degree College, Yadgir 8


“Computerization of Publishing House Database”

Visual Basic was developed from the basic programming

language in 1970’s. Microsoft got its start by developing ROM based

interpreted basis for the early microprocessor based computer. In 1982

Microsoft quick base revolutionized basic & legitimized as a serious

development language for MS-DOS environment, later on, Microsoft

cooperation created the enhanced version of basic called Visual Basic

for Windows.

Visual Basic is not just a language it is an integrated

development environment (IDE) in which you can develop, own, test &

debug your applications. Visual basic contains many integrated tools to

make the

Applications development process simpler. The collection of tools

makes up the IDE.

MS-Visual Basic 6.0 is the newest addition to the long line of

programming languages. VB is especially designed to utilize the

Internet. This version allows us to quickly and easily develop windows

SUBHAM Degree College, Yadgir 9


“Computerization of Publishing House Database”

application for PC without being an expert in C++ or other

programming languages.

IDE is a term commonly used in the programming world to

describe the interface and environment to create the applications. It is

called integrated because we can access virtually all the development

tools we need from one screen, called an interface. The IDE is also

commonly referred to as the design environment, the program or just the

IDE.

3.2. VISUAL BASIC FEATURES:

With Visual Basic, You can create the following types of allocations.

 Menu Bar

 Form layout Window

 Tool Bar

 Tool Box

 Project Explorer

 Form Designer

SUBHAM Degree College, Yadgir 10


“Computerization of Publishing House Database”

 Property Windows

 Object Browser

3.3. A standard EXE:

The most commonly used template is standard .Exe. Most of the

application are Standard Exe Projects.

THE MAIN MENU BAR:

The main menu bar contains the commands you need to work

with Visual Basic. The basic menu’s are:

 File : Contains the commands for opening & saving

projects & creating executable files & a list of

recent projects.

 Edit : Contains editing commands (Undo, Copy, Paste, etc.) plus

a number of commands for formatting & editing your

code (Find, Replace).

 View : Contains the commands for showing or hiding

Components of the IDE.

SUBHAM Degree College, Yadgir 11


“Computerization of Publishing House Database”

 Project : Contains the command that add components to

the Current project, references to windows

Objects, & new.

 Format: Contains commands for aligning the controls on the from.

A much needed tool in previous versions of Visual

Basic.

 Debug : Contains the unusual debugging commands.

 Run : Contains the command that start, break & execution of the

current application.

 Tool : Contains the tools you need in building Active

 Controls: Contains the commands to start the menu editor & the

options command, which lets you to customize the environment.

 Add-Ins: Contains add-ins that you can add & remove as

needed. By default, only the visual data manager is installed in

this menu. Use the Add-in manager command to add, remove add-ins.

 Window: Contains the commands to arrange windows on the

screen, the standard windows menu of a window application.

 Help: Contains the information to help you as you work

SUBHAM Degree College, Yadgir 12


“Computerization of Publishing House Database”

3.4. DATA BASES & DATABASE MANAGEMENT

SYSTEMS

Nearly all business applications needs to store large volumes of

data, organized in a format that simplest retrievals. This accomplished

with a database management system (DBMS), a mechanism for

manipulating tabular data with high level commands. The database

management system hides low level details such as how are data stored

in a database, & frees the programmer to concentrate on managing

information, rather than on the specifies of manipulating rather than on

the specifies of manipulating files or maintaining links among them.

Visual Basic provides a wealth of tools for creating & accessing

databases on both individual machines & network. The two major tools

are:

 The Data Control.

 The Data Access Object.

SUBHAM Degree College, Yadgir 13


“Computerization of Publishing House Database”

The data control gives you access to databases without any

programming .You can set a few properties of the control & use regular

controls such text boxes to display values of the fields in the databases.

This is the no code approach to program, which is implemented quite

nicely in Visual Basic. But as you can guess, this approach cannot take

you far. Sooner or later, you will have to write code.

The Data Access Object is a structure of object for accessing

databases through your code .All the functionality of the data control is

also available to your code, through the data access object (DAO).

Microsoft Access is a relationship database management system

through which you can have multiple tables, all linked to each other

through a common field, each table containing a specific type of

information. For instance you can have one table containing a list of all

items that you sell, another table containing information about which

item can be procured from which supplier another table containing

orders for different items received from different customers and yet

another table containing basic information about customers themselves

and all these table can be linked together through common key fields.

SUBHAM Degree College, Yadgir 14


“Computerization of Publishing House Database”

Access also gives you the option of working with one access

table by itself or with different kinds of data base fields and records.

Database

A database management, or DBMS, gives the user access to their

data and helps them transform the data into information. Such database

management systems include dBase, paradox, IMS and Oracle. These

systems allow users to create, update and extract information from their

database.

A database is a structured collection of data. Data refers to the

characteristics of people, things and events. Oracle stores each data

items in its own fields. In Oracle, the fields relating to a particular

person, thing or event are bundled together to form a single complete

unit of data, called a record ( it can also be referred to as raw or an

occurrence). Each record is made up of a number of fields. No two

fields in a record can have the same field name.

During Ms-access Database design project, the analysis of our

business needs identifies all the fields or attributes of interest. If your

business needs change over time, you define any additional fields or

change the definition of existing fields.

SUBHAM Degree College, Yadgir 15


“Computerization of Publishing House Database”

MS-Access Tables

Ms-Access stores records relating to each other in a table.

Different tables are created for the various groups of information.

Related tables are grouped together to form a database.

Primary Key

Every table in Ms-Access has a fields or a combination of

fields that uniquely identifies each record in the table. The unique

identifier is called the Primary Key, or simply the Key. The primary key

provides the means to distinguish one record from all other in a table. It

allows the user and the database system to identify, locate and refer to

one particular record in the database.

Relational Database

Sometimes all the information of interest to a business operation

can be stored in one table. MS-Access makes it very easy to link the

data in multiple tables. Matching an employee to the department in

which they work is one example. This is what makes oracle a relational

database management system, or RDBMS. It stores data in two or more

SUBHAM Degree College, Yadgir 16


“Computerization of Publishing House Database”

tables and enables you to define relationships between the tables and

enables you to define relationships between the tables.

Foreign Key

When a field is one table matches the primary key of another

field is referred to as a foreign key. A foreign key is a field or a group of

fields in one table whose values match those of the primary key of

another table.

Referential Integrity

Not only does Ms-Access allow you to link multiple tables, it

also maintains consistency between them. Ensuring that the data among

related tables is correctly matches is referred to as maintaining

referential integrity.

Data Abstraction

A major purpose of a database system is to provide users with an

abstract view of the data. This system hides certain details of how the

SUBHAM Degree College, Yadgir 17


“Computerization of Publishing House Database”

data is stored and maintained. Data abstraction is divided into three

levels.

Physical level: This is the lowest level of abstraction at which

one describes how the data are actually stored.

Conceptual Level: At this level database abstraction all the

attributed and what data are actually stored is described and entries and

relationship among them.

View Level: This is the highest level of abstraction at which one

describes only part of the database.

Advantages of DBMS

a) Redundancy can be avoided.

b) Inconsistency can be eliminated.

c) Data can be shared.

d) Standards can be enforced.

SUBHAM Degree College, Yadgir 18


“Computerization of Publishing House Database”

e) Security restrictions can be applied.

f) Integrity can be maintained.

g) Conflicting requirements can be balanced.

h) Data independence can be achieved.

Disadvantages of DBMS

A significant disadvantage of the DBMS system is cost. In

addition to the cost of purchasing of developing the software has to be

upgraded to allow for the extensive programs and the workspace

required for their execution and stored. While centralization reduces

duplication, the lack of duplication requires that the database be

adequately backed up so that in case of failure the data can be

recovered.

A modern relational database management system can perform a

wide array of tasks. In general it acts as a transparent interface between

the physical storage and the logical and the logical presentation of data.

In practice, it provides a set of more or less flexible and sophisticated

tools for handling information; you can use these tools to

SUBHAM Degree College, Yadgir 19


“Computerization of Publishing House Database”

1) Define a database.

2) Query the database.

3) Add, edit and delete data.

4) Modify the structure of the database.

5) Secure data form public access.

6) Export and Import data.

Because it gives you so much control over your data, a relational

DBMS can also serve as the foundation for product that generate,

applications and extract data.

Which of these abilities you consider most improved depends on the

job that you need to do you might be in charge of creating and

maintaining a database, you might be a casual user who primarily works

with existing applications to accomplish specific tasks, or you might be

a system developer who creates such applications.

SUBHAM Degree College, Yadgir 20


“Computerization of Publishing House Database”

Just what is a Database? In its basic sense, a database is simply a

grouping of related in formations, organized for easy processing &

retrievals. The actual data in a database is stored in tables, which are

similar to random access files. Data in a table is made up of columns &

rows. The rows contain identically structured pieces of in formations,

which are equivalent to the records of random access file. A record is

collection of values (called fields).

3.5. RECORD SET:

Record sets are objects that represent collection of records from

one or more tables. In database programming, record sets are the

equivalent of the regular programming. You cannot access the tables of

database directly. The only way to view or manipulate records is via,

record set objects. A record set is constructed of columns & rows & is

similar to a table, but it can contain data from multiple tables. The

contents of the grid come from a single table, & they form a record set.

SUBHAM Degree College, Yadgir 21


“Computerization of Publishing House Database”

Such records are the result of the queries, such as all the

customers & the total of their invoice in a given month. A record set,

therefore, is a view of some of the data in the databases, selected from

the databases according to user specified criteria. The three types of

record sets are:

 Dynasets

 Snapshots

 Tables

Dynaset:- The Dynaset type record set object is a set of records that

represents a table, or attached tables, or the results of queries containing

fields from one or more tables. A Dynaset enable us to update data from

more than one table.

Snapshot:- The snapshots type record set can refer any

table ,attached table or query. A snapshot cannot be updated & does

reflect changes to data made by the user.

Dynasets & Snapshots are usually created with SQL

(Structured Query Language) statements. We will look at SQL

SUBHAM Degree College, Yadgir 22


“Computerization of Publishing House Database”

statements shortly but all you need to specify criteria for recalling data

from a database. Dynasets are updated every time users change the

database, & changes you have made to the corresponding record set are

reflected in the underlying tables Snapshots are static views of the same

data.

A snapshot contains the records requested the moment the

snapshot was generated changes made to the underlying tables are not

reflected in the snapshots, & you cannot update snapshots.

The Dynaset is the most flexible & powerful type of records &

powerful type of record set, although a few operations (search as

searches) may be faster with the table type of record set. The table type,

however, requires a lot of overhead. The least flexible record set type,

the snapshot, is the most efficient in terms of overhead. If you do not

need to update the database & simply want to view record, prefer the

snapshot type.

SUBHAM Degree College, Yadgir 23


“Computerization of Publishing House Database”

There is also a variation of snapshots type, the forward only

snapshot, which is even more limited than snapshot type, but is faster.

Forward only snapshots let you forward only.

You can use them in programming situations in which you want

to scan a number records & process them sequentially (use their value in

table, & so on). By not providing any record set type requires the least

overhead of all.

The table type of record set is reference to table in the database.

The table is faster than the other types of the record set, which is always

in sync with the table’s data, & it can be used to update the database.

But the table is limited to a single table. In addition, when accessing a

table through a table type of record set, you can take advantage of the

table’s indices to perform very fast search.

The Data Controls Properties: -

The most important properties of the data control are:

1. Database Name, which specifies the database to be used

SUBHAM Degree College, Yadgir 24


“Computerization of Publishing House Database”

2. Record Source, which specifies the part of the database seen by the

control.

The text boxes see a field in the current row. Each time the data

control is repositioned in its record set, the text boxes are updated. If the

data in a text box changes, the new value is written to the database when

the data control is repositioned.

The text box controls are connected to a field of the record set

through the data control & they are called Data Bound. (They have been

bound to a field in the record set).

The most important properties of a database control are:

 Data source,

which is the name of a data control through which they are bound to

a data control.

 Data field,

which is the name of field in the record set that the control displays

updates.

SUBHAM Degree College, Yadgir 25


“Computerization of Publishing House Database”

You can set the following properties of the data control from the

properties windows, or you can use them from within your code to

manipulate the control.

EOF:- The EOF (End Of File) property returns a value true of

false that indicates whether the current record position is after the last

record in a record set object.

BOF:- The BOF (Beginning Of File) property returns a value

true or false value that indicates whether the current record position is

before the first record in a record set object.

Data environment designer is a powerful, sophisticated interface,

which provides an interactive design time environment for creating

programmed run time access to data.

The following actions can be performed using data manager:

 Define the database connection.

 Create commands (SQL) for accessing the data.

 Build complex queries.

 Specify sort order of the result set of a query.

SUBHAM Degree College, Yadgir 26


“Computerization of Publishing House Database”

 Define aggregate functions.

4. SOFTWARE DEVELOPMENT STRATEGY

As the information system requirement were predictable it


was decided to follow the classical life cycle model, which is
sometimes, call the “waterfall model”. It demands the sequential
approach to software development as that begins at the system level and
progress through analysis. This model, which is explained in the
following, is used in the developing the projects.

4.1 THE CLASSICAL LIFE CYCLE

The Classical life cycle encompasses the following


activities.
 System Engineering and Analysis.
 Software requirement analysis
 Design
 Coding
 Testing
 Maintenance

System Engineering & Analysis:

Software is always is a part of larger system, work


begin by establishing requirements to software. The system view is
essential when software is interface with the other elements like

SUBHAM Degree College, Yadgir 27


“Computerization of Publishing House Database”

hardware, manpower and database. System Engineering and analysis


encompasses requirements
gathering at the system level with small amount of top level design and
analysis.

Software Requirement Analysis:


The requirement gathering process is intensified and
focused specifically on software. To understand the nature of the
program to be built, the software engineer must understand the
information domain for the software, as well as the required function,
performance and interfacing requirements for both the system and the
software are documented and reviewed.

Design:
Software design is actually a multi-step process that focuses
on four distinct attributes of the program: data structure, software
architecture, procedural details and interface characterization. The
design process translates requirements into a representation of the
software that can be accessed for quality before coding begins like
requirements, the design is documented and become the part of the
software configuration.

Coding:
The design must be translated into a machine-readable form
coding. This task is performed by coding step.
Testing:

SUBHAM Degree College, Yadgir 28


“Computerization of Publishing House Database”

The testing process focuses on the logical internals of the


software, ensuring that all statements has been tested and on the
functional externals, that is, conducting tests to uncover errors and
ensure that defined input will produce actual results that agree with
expanded results.

Maintenance:
This is concerned with the defect fixing and providing
software enhancements. The basic idea of Software Development Life
Cycle method is that ,there is always defined process by which an
application is conceived, developed and implemented. IT gives structure
to a basis for management and control because they define segments of
the flow of work, which can be identified for managerial purpose and
specify the document to be procured in each phase.

4.2. PROBLEM ANALYSIS:

Problem analysis involves the client & the end user .One of

major activities during problem analysis is how to organize the

information obtained, so that the information can be effectively

evaluated for completeness & consistency.

SUBHAM Degree College, Yadgir 29


“Computerization of Publishing House Database”

4.3. EXISTING SYSTEM:

Before developing this concept, the maintains of every record


was made manually which would consume a lot of time. The book
details, author details and transaction details was made manually which
was difficult to maintains the very long series of records. So to make the
work easy within a few time, this concept of “Computerization Of
Publishing House Database”. Is developed, by which one can save the
time and energy.

4.4. PROPOSED SYSTEM:

This project has been developed for maintaining and record


keeping of management of publishing house. As it is developed to keep
records of an various books, it provides a detailed report of books and
authors of published books.

SUBHAM Degree College, Yadgir 30


“Computerization of Publishing House Database”

5. SYSTEM DESIGN & STUDY

5.1. CONCEPTS

System design is a multistep process that focuses on data

structure. Software architecture procedural detail and interface between

the modules. The design process also translates the requirement into the

representation of the software that can be accessed for quality before

coding begins.

Design is the only way that we can accurately translate a

subscribers requirement into the finished software product or system

without design, risk of building an unstable system exist one that will

fail when small changes are made: one that may be difficult to test.

Thus the system design includes the following three steps

of design:

SUBHAM Degree College, Yadgir 31


“Computerization of Publishing House Database”

DATA DESIGN:

The data design transforms the information domain model

created during analysis into the data structure that will be required to

implement the software.

ARCHITECTURAL DESIGN:

The architecture design defines the relationship among

major structural components of the program.

5.2. PROCEDURAL DESIGN

The procedural design transforms structural components

into a procedural description of the software. Source code is generated

and testing is conducted to integrate and validate the software.

Thus the system design is a solution a “how to”

approach to the creation of the new system.

SUBHAM Degree College, Yadgir 32


“Computerization of Publishing House Database”

6. DATA FLOW DIAGRAMS

A data flow diagram is a graphical representation that depicts

information flow and the transforms that are applied as data moved from

input to output.

The convention used in the analysis of the existing system and Data

Flow Diagrams are.

1.

Rectangle -Represents External Entity

2. Circle -Represents Process

3.

Double Line -Represents Data stored.

4. Arrow -Represents direction of Data flow

5. Parallelogram-Represents print /display

symbol.

SUBHAM Degree College, Yadgir 33


“Computerization of Publishing House Database”

6.1 CONTEXT FLOW DIAGRAM:

MAIN MENU
PROCESS

FORMAT SELL SEARCH STOCK

SUBHAM Degree College, Yadgir 34


“Computerization of Publishing House Database”

FORMAT

NEW RECORD DELETE RECORD

DATA BASE

SUBHAM Degree College, Yadgir 35


“Computerization of Publishing House Database”

SELL

BY CODE

DATA BASE

SUBHAM Degree College, Yadgir 36


“Computerization of Publishing House Database”

SEARCH

BY CODE BY NAME BY BOOK

DATA BASE

SUBHAM Degree College, Yadgir 37


“Computerization of Publishing House Database”

STOCK

ADD RECORD DELETE RECORD

DATA BASE

SUBHAM Degree College, Yadgir 38


“Computerization of Publishing House Database”

REPORTS

PUBLISHING DETAILS

SUBHAM Degree College, Yadgir 39


“Computerization of Publishing House Database”

6.2. DATA BASE TABLES:

1. Data base table for Publishing House:

Description: Holds the whole details of publishing house

Sl.No Field name Data type Constraints Description

1 Code Number Primary key Code

2 Author_Name Text Not null Author Name

3 Address Text Not null Address

4 Book_Name Text Not null Book Name

5 Date_Of_Pub Text Not null Date Of Publishing

6 Qty_Printed Number Not null Quantity Printed

7 Price Number Not null Price

8 Qty_Sold Number Not null Quantity Sold

9 Stock_in_hand Number Not null Stock in hand

10 Revenue_earned Number Not null Revenue earned

SUBHAM Degree College, Yadgir 40


“Computerization of Publishing House Database”

7. SYSTEM IMPLEMENTATION

Implementation is the status of the project when the

theoretical design turned into working system. To run those software

windows operating system must be there in your computer. It involves

careful planning to avoid chaos. The efforts spend on developing any

result in success only when the system is implemented properly.

Organizational Input:

The manual system that was in use requires a lot of time

and regular monitoring of related records. The new system avoids this

daily checkup of the records. It also has a cost advantage over the

existing system that is a lot of time and effort are saved.

SUBHAM Degree College, Yadgir 41


“Computerization of Publishing House Database”

8. TESTING & IMPLEMENTATION

8.1. Objective of Testing:

Testing is the process which produces the strength and

weakness of the product. IT is also to evaluate the function of the

product including the case of response time, suitability of information

formats, level of utilization and overall reliability. Also testing is the

process of execution the program with explicit intention of finding error,

verification all validation are done. The testing phase involves the

testing of the developed system using various test data. Preparation of

the test data plays a vital role in the system testing. After preparing the

test. Data the system understudy was tested using those test data. While

testing the system by using test data error were found and corrected by

using following testing steps and correction are also noted for future

use. Thus, a series of testing was performed for the proposed system

before the system was ready for the implementation. The various testing

done on the system are:

 Unit/module testing.

 Integration testing.

SUBHAM Degree College, Yadgir 42


“Computerization of Publishing House Database”

 Validation testing.

 Acceptance testing.

 Output testing.

The rules that can serve well as testing objectives are:

 Testing is the process of executing a program with the

intent to finding an error.

 A good test case is one that has high probability of

finding an as-yet undiscovered error.

 A successful test is that uncovers an as-yet

undiscovered error

The above objective imply a dramatic change in view point. They move

counter to commonly held view that a successful test is one in which no error

are found.

8.2. Testing Principles

Before applying methods to design effective test cases, a

software engineer must understand the basic principles that guide the

software testing.

 All tests should traceable to customer requirements. As we

have seen the objective software testing is to uncover error. It

SUBHAM Degree College, Yadgir 43


“Computerization of Publishing House Database”

follows that the most server defects (from customers point of

view) are those that cause the program to fail to meet its

requirements.

 Test should be planned long before testing begins. Test

planning can begins as soon as the requirements model is

complete. Detail definition of test cases can begin as soon as

the design model has been solidified. Therefore, all tests can be

planned and designed before any code has been generated.

 The Pareto principle applies to software testing. Stated simply,

the Pareto principle implies that 80% of all the errors

uncovered during testing will likely be traceable to 20% of all

program modules. The problem, of course, is to isolate these

suspect modules & to thoroughly test them.

 Testing should begin “in the small” & process towards the

testing “in the large“. The first test planned & executed

generally focused on individual program modules. As the

testing progresses, testing shifts focus in an attempt to find

errors in integrated cluster of modules & ultimately in the entire

system.

SUBHAM Degree College, Yadgir 44


“Computerization of Publishing House Database”

 Exhaustive testing is not possible. The number of path

permutations for even a moderately sized program is

exceptionally large. For this reason, it is impossible to execute

every combination of paths during testing. It is

possible ,however ,to adequate cover program logic & to ensure

that all conditions in the procedural design have been exercised

 To be most effective, testing should be conducted by an

independent third party. By “most effective,” we mean testing

that has highest probability of finding errors.

8.3. Testing Principles:

This software product consists of five modules named as

Account, Bills, Tools, View and Report. For all the modules they have

finite numbers of interrelated functions. For the entire module unit test

was carried out. This followed system testing specific sets of test data

were selected for the testing.

The testing process focuses on the logical internals of the

software, ensuring that all statements have been tested, and on the

functional externals, that is conducting tests to uncover errors and

SUBHAM Degree College, Yadgir 45


“Computerization of Publishing House Database”

ensure that defined input will produce actual results that agree with

required result.

Software testing is a criterion of software qualities

assurance and represents the ultimate review of specified design and

coding system testing reveals the presence of errors in the software

developed.

8.4. UNIT TESTING:

There are several major functions in the Setup module and

Report module. Different modules were considered separately and

tested with valid & as well as invalid test data.

Appropriate messages were displayed for invalid tests and

results are produced for the valid once. After this, the invalid functions

were put together and found to behave properly producing proper

results. Some errors detected in the functional units were removed in a

similar manner the functions of other modules

9. SAMPLE CODING

SUBHAM Degree College, Yadgir 46


“Computerization of Publishing House Database”

By using the coding format, it is helpful for the programmer to

understand the program and also it will be helpful for further

modifications in the programs. There are various places where the

coding standards have been used. There are naming, commenting and

code layouts.

The comments have been extensively used to present a better

documentation. The database accessing is made easy.

At various stages, programming is done according to the

programmer’s specification. Care has been taken to remove bugs at

every stage. After the completion of each module, unit testing is

conducted to fix and eliminate bugs for each module.

Sample Coding:

Private Sub Command1_Click()

Form1.Hide

Form2.Show

End Sub

SUBHAM Degree College, Yadgir 47


“Computerization of Publishing House Database”

Private Sub Book_Click()

bn = InputBox("Enter the book name", "Book Name")

Data1.RecordSource = "select * from publisher where book_name='"

+ bn + "'"

Data1.Refresh

End Sub

Private Sub Code_Click()

a = InputBox("Enter the code number", "Code")

Data1.RecordSource = "select * from publisher where code='" + a + "'"

Data1.Refresh

End Sub

Private Sub Command1_Click()

Data1.RecordSource = "Select * from publisher"

Data1.Refresh

End Sub

Private Sub Command2_Click()

SUBHAM Degree College, Yadgir 48


“Computerization of Publishing House Database”

End

End Sub

Private Sub Delete_Click()

On Error GoTo errorhandler

d = InputBox("Enter the code to delete the record", "Delete")

Data1.RecordSource = "select * from publisher where code='" + d +

"'"

Data1.Refresh

Data1.Recordset.Delete

Data1.Recordset.Close

Data1.RecordSource = "select * from publisher"

Data1.Refresh

Exit Sub

errorhandler:

MsgBox "Error Occurred!", vbInformation, "Error"

Data1.RecordSource = "Select * from publisher"

Data1.Refresh

End Sub

SUBHAM Degree College, Yadgir 49


“Computerization of Publishing House Database”

Private Sub Form_Load()

Data1.RecordSource = "Select * from publisher"

Data1.Refresh

End Sub

Private Sub Name_Click()

n = InputBox("Enter the Author Name", "Name")

Data1.RecordSource = "select * from publisher where

Author_name='" + n + "'"

Data1.Refresh

End Sub

Private Sub NRecord_Click()

Form2.Hide

Form3.Show

End Sub

Private Sub Publishermnu_Click()

DataReport1.Show

SUBHAM Degree College, Yadgir 50


“Computerization of Publishing House Database”

End Sub

Private Sub Refresh_Click()

Data1.RecordSource = "Select * from publisher"

Data1.Refresh

End Sub

Private Sub Sell_book_Click()

On Error GoTo errorhandler

a = InputBox("Enter the code number", "Code")

Data1.RecordSource = "select * from publisher where code='" + a + "'"

Data1.Refresh

s = InputBox("Enter the sell qty", Sell)

Data1.Recordset.Edit

If Val(s) > Data1.Recordset.Fields(8) Then

MsgBox "Sorry! Check your Stock", vbExclamation, "Sorry"

Data1.RecordSource = "Select * from publisher"

Data1.Refresh

Else

Data1.Recordset.Fields(7) = Data1.Recordset.Fields(7) + Val(s)

SUBHAM Degree College, Yadgir 51


“Computerization of Publishing House Database”

Data1.Recordset.Fields(8) = Data1.Recordset.Fields(8) - Val(s)

Data1.Recordset.Fields(9) = Data1.Recordset.Fields(6) *

Data1.Recordset.Fields(7)

Data1.Recordset.Update

Data1.Recordset.Close

Exit Sub

errorhandler:

MsgBox "Error Occurred!", vbInformation, "Error"

Data1.RecordSource = "Select * from publisher"

Data1.Refresh

End If

End Sub

Private Sub Stockdel_Click()

On Error GoTo errordelete

a = InputBox("Enter the code number", "Code")

Data1.RecordSource = "select * from publisher where code='" + a + "'"

Data1.Refresh

s = InputBox("Enter the qty", deletion)

Data1.Recordset.Edit

SUBHAM Degree College, Yadgir 52


“Computerization of Publishing House Database”

If Val(s) > Data1.Recordset.Fields(8) Then

MsgBox "Sorry! Check your Stock", vbExclamation, "Sorry"

Data1.RecordSource = "Select * from publisher"

Data1.Refresh

Else

Data1.Recordset.Fields(5) = Data1.Recordset.Fields(5) - Val(s)

Data1.Recordset.Fields(8) = Data1.Recordset.Fields(8) - Val(s)

Data1.Recordset.Update

Data1.Recordset.Close

Exit Sub

errordelete:

MsgBox "Error Occurred while deletion!", vbInformation, "Error"

Data1.RecordSource = "Select * from publisher"

Data1.Refresh

End If

End Sub

Private Sub Update_Click()

On Error GoTo errorupdate

a = InputBox("Enter the code number", "Code")

SUBHAM Degree College, Yadgir 53


“Computerization of Publishing House Database”

Data1.RecordSource = "select * from publisher where code='" + a + "'"

Data1.Refresh

s = InputBox("Enter the qty", Update)

Data1.Recordset.Edit

Data1.Recordset.Fields(5) = Data1.Recordset.Fields(5) + Val(s)

Data1.Recordset.Fields(8) = Data1.Recordset.Fields(8) + Val(s)

Data1.Recordset.Update

Data1.Recordset.Close

Exit Sub

error update:

MsgBox "Error Occurred while updation!", vbInformation, "Error"

Data1.RecordSource = "Select * from publisher"

Data1.Refresh

End Sub

Form3:

Private Sub Command1_Click()

SUBHAM Degree College, Yadgir 54


“Computerization of Publishing House Database”

Data1.RecordSource = "Select * from publisher where code='" +

Text1.Text + "'"

Data1.Refresh

Data1.Recordset.AddNew

Data1.Recordset.Fields(0) = Text1.Text

Data1.Recordset.Fields(1) = Text2.Text

Data1.Recordset.Fields(2) = Text3.Text

Data1.Recordset.Fields(3) = Text4.Text

Data1.Recordset.Fields(4) = CDate(Text5.Text)

Data1.Recordset.Fields(5) = CInt(Text6.Text)

Data1.Recordset.Fields(6) = CInt(Text7.Text)

Data1.Recordset.Fields(7) = 0

Data1.Recordset.Fields(8) = CInt(Text6.Text)

Data1.Recordset.Fields(9) = Data1.Recordset.Fields(6) *

Data1.Recordset.Fields(7)

Data1.Recordset.Update

Data1.Recordset.Close

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

SUBHAM Degree College, Yadgir 55


“Computerization of Publishing House Database”

Text4.Text = ""

Text5.Text = ""

Text6.Text = ""

Text7.Text = ""

End Sub

Private Sub Command2_Click()

Form3.Hide

Form2.Show

Form2.Data1.RecordSource = "select * from publisher"

Form2.Data1.Refresh

End Sub

Private Sub Form_Load()

End Sub

Private Sub Text1_LostFocus()

On Error GoTo errorhandler

SUBHAM Degree College, Yadgir 56


“Computerization of Publishing House Database”

Data1.RecordSource = "Select * from publisher where code='" +

Text1.Text + "'"

Data1.Refresh

Do While Not Data1.Recordset.EOF

c=c+1

Data1.Recordset.MoveNext

Loop

If c <> 0 Then

MsgBox "Duplicate", vbExclamation, "Duplicate"

Text1.Text = " "

Text1.SetFocus

Else

Text2.SetFocus

End If

Exit Sub

errorhandler:

MsgBox "Error Occurred!", vbInformation, "Error"

End Sub

10. SAMPLE SCREENS

SUBHAM Degree College, Yadgir 57


“Computerization of Publishing House Database”

Splash Form

Login Form

SUBHAM Degree College, Yadgir 58


“Computerization of Publishing House Database”

SUBHAM Degree College, Yadgir 59


“Computerization of Publishing House Database”

Starting Form

SUBHAM Degree College, Yadgir 60


“Computerization of Publishing House Database”

Adding New Entry

SUBHAM Degree College, Yadgir 61


“Computerization of Publishing House Database”

New Record Entry

SUBHAM Degree College, Yadgir 62


“Computerization of Publishing House Database”

Form for New Accounts:

SUBHAM Degree College, Yadgir 63


“Computerization of Publishing House Database”

Updating Form

SUBHAM Degree College, Yadgir 64


“Computerization of Publishing House Database”

Coding Form

SUBHAM Degree College, Yadgir 65


“Computerization of Publishing House Database”

Quantity Form

SUBHAM Degree College, Yadgir 66


“Computerization of Publishing House Database”

Report Form

SUBHAM Degree College, Yadgir 67


“Computerization of Publishing House Database”

Directories Form

SUBHAM Degree College, Yadgir 68


“Computerization of Publishing House Database”

REPORT FOR PRINT RECORD

11. CONCLUSION

SUBHAM Degree College, Yadgir 69


“Computerization of Publishing House Database”

This project has been developed for maintaining and record

keeping of management of publishing house. As it is developed to keep

records of an various books, it provides a detailed report of books and

authors of published books.

The software “Publishing House” has been implemented and is

working in good condition. The software is flexible and further

enhancement will not pose any problem.

12. BIBLOGRAPHY

REFERENCES:

SUBHAM Degree College, Yadgir 70


“Computerization of Publishing House Database”

1. Microsoft Access users guide.

2. Learn VB in 21 Days, Tech media Publications.

3. Software Engineering By Roger S.Pressman, McGraw-

Hill Publications.

4. Microsoft Visual Basic 6.0 Programming guide, Keonics

Publications.

5. A programming guide for Visual Basic by Peter Norton.

6. Microsoft Visual Basic handbook.

7. A programming guide to Visual Basic 6.0.

8. Visual Basic by Rajendra Prasad, Sapna Publications.

9. System Analysis & Design, Prentice-Hall India

Publications.

SUBHAM Degree College, Yadgir 71

You might also like