Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
PREFACE
CHAPTER 4 CODING
REFERENCE
TABLE OF CONTENTS
1.1 INTRODUCTION
2.1 INTRODUCTION
2.2 FEASIBILITY STUDY
2.3 EXISTING SYSTEM
2.4 PROPOSED SYSTEM
CHAPTER 3:
CHAPTER 4: TECHNOLOGY
4.7 TESTING
CHAPETR 5: CONCLUSION
CHAPTER 6: BIBLIOGRAPHY
PREFACE
We are now living in the Computer age. Now the computer is controlling all
the important works in our routine life. Man has invented many electronic devices
but out of these computers has made the greatest impact on society.
This software manages the records of the entire Employee, makes work efficient,
removes redundancy, and removes inconsistency.
SYNOPSIS
As to use this Pet Shop Management System all its user will have a valid
user id and password associated with it. Admin will responsible to provide their
user id and password by creating it. Admin can grant special permission to any
particular working employee. Admin can add new user, delete user, modify user,
generate bills, and get information on cash inflow and outflow. Check stock, get
reports on sales and purchase of products from suppliers and get information on
their regular customers to provide special discounts.
Valid user or working employee will be able to enter product details, their
code, and price and categorize products according to their size and price. This user
can also search any particular product using price and size options as well as using
product code options to check whether it is available in the pet Shop Management
System or not.
Bill section of pet Shop Management System will generate bill details such
as bill number which will be unique for each customer and supplier. If the bill is
for customer, then it will include product type, size, number of items purchased,
tax rate, total rate along with customer name and address.
It the bill is prepared for supplier then it will include supplier name, address,
type of product supplied, and date of receiving, total number of items, total price,
and date of payments, how much is left to be given for that particular supplier.
Admin will also able to prepare balance sheet for their business transactions
for a particular date, between given period, weekly basis or monthly basis or as per
user requirement.
1. INTRODUCTION
Purpose:
This project is compulsory as it is part of the college syllabus and as core
subject. VB came across my mine when choosing the suitable development for the
project as it is my system required offline module. The reason behind this system is
that I’ve developed a new system that can help to reduce the paper work of a pet
shop.
So I decided develop a Pet shop system as my final year project.
Scope:
I am responsible to back-end part of the system. Allowing administrator do
all the maintenance in the system. Allowing all users to register and use our
system. And design the basic function to reduce the workload of the users such as
sales module.
Methodology:
VB is great for developing offline system. Most of the back-end class is built by
VB. For the database that used to store data of the system, I use Ms Access and as
for the connection.
Assessment criteria used:
I have to keep the layout as simple and as direct as possible so users can
easily understand the purpose of my system. Design and develop a special search
engine for search and assign.
Development phases:
Firstly, I discuss the project scope with Employee. After the proposal
being approved by Employee, I have to come out with the function of the system
for all the different parties of users such as customer, Cash in, Employee.
MODULE
This module is the main module which performs all the main operations
in the system. The major operations in the system are:
Admin login
Add/Delete/Update/View/Save Employee
Add/Delete/Update/View/Save Member
Product module
Employee module
Supplier module
Cash In module
Employee Report module
ORGANISATION PROFILE
I. About Us
Performance
Pioneering efforts
Client satisfaction
Innovative concepts
Constant Evaluations
Improvisation
Cost Effectiveness
“To help our stock holders by regularly reviewing and improving our
process.”
IV. Infrastructure
Nested in an area with built-in area of 2,400 sq.ft. The park has encountered
itself with computing resources that include from IBM. Besides, it also houses
HP/9000, Sun Sparch, DEC Alpha System and over 500 IBM PS/VP nodes over a
Heterogeneous Fiber Optic Network. Microsoft certified Operating system is used
varied from MVS and Aix through OS/400 and OS/2 to SOLARIS, UNIX and
Windows with range of RDBMS, Languages and Case tools.
Only a few years ago, the World Wide Web was a very design unfriendly
place. But with the advent of Images, Web Pages have become Interactive. This
inter-activity is still limited. In its endeavor to make the Internet more Interactive
Exciting, iApple InfoTech Technologies has set up the Internet Team.
iApple Web Portals:
Functions keys
.
2.2 FEASIBILITY STUDY
This feasibility test asks if the system will work when it is developed
and installed.
Existing system refers to the system that is being followed till now. The
existing system requires more computational time, more manual calculations, and
the complexity involved in Selection of features is high. The other disadvantages
are lack of security of data, Deficiency of Data accuracy, Time consuming etc. To
avoid all these limitations and make the working more accurately the system needs
to be computerized. Here in the Electronic bus ticketing, a detailed study of
existing system is carried along with all the steps in system analysis.
The system is very simple in design and to implement. The system requires
very low system resources and the system will work in almost all configurations. It
Greater efficiency
Better Service
Microsoft Visual Basic development system is the most productive tool for
creating fast business solutions for Windows and the Web. A comprehensive, rapid
application development environment helps development environment help
developers quickly create and deploy client /server applications, plus easily
program for the Internet using familiar Visual Basic programming tools and
techniques.
With the introduction of Visual Basic 6.0, Microsoft builds upon its critically
acclaimed RAD enterprise development platform with the features that extended
and enhance the currently robust development environment. These features are
based on five design themes, in turn derived from these customer requirements.
The goal of any development tool is to facilitate the developer's need for
quick and efficient creation and deployment of high performance, scalable
applications. Visual Basic 6.0 works to address these needs through the delivery of
a quick-executing, native-code environment. Tens of millions of Visual Basic
based applications in use today stand as a testament to the success of Visual Basic
in this area. With Visual Basic 6.0, Microsoft made improvements in the following
areas:
Deliver native-code compiled performance
Accelerated Microsoft Win 32 API based forms.
Provide scalable solutions.
Facilitate the development of thread-safe, persist able components.
Data-Centric Application Development
Microsoft access delivers powerful tools for managing and analyzing data.
With XML support, developers can create highly sophisticated
Enterprise - wide database solutions that integrate easily with the web. One can
find comprehensive tools that make building databases more intuitive Features like
Microsoft Pivot table and the Microsoft Pivot chart greatly improve data analysis
capabilities. Microsoft Access is one of the most versatile applications. This
versatility is evidenced by the rich set of tools that even the Most experienced
database user can take advantage of, offering the same level of simplicity for first
time database user. Access extends this versatility by giving developers and more
experienced user’s new functionality, enabling them to access and analyze their
important data as well as build powerful new data base solution. At same time,
access makes it easy for beginning users to discover and use more of the existing
application.
Project Information
In this project Microsoft Visual Basic has been used as Front End and Microsoft
Access as the back end.
A model basically specifies all the steps to be followed during the system
development. This makes the task of the engineer quite simple and helps him build
software, which is less error prone.
Define the processes that serve the needs of the view under consideration.
Represent the behavior of the processes and the assumptions on which
behavior is based.
Explicitly define both exogenous and endogenous input to the model.
Represent all linkages that will enable the engineer to better understand the
view.
The model used is shown below:
Is the successful implementation of the new system design? Implementation includes all
those activities that take place to convert from the old system to the new one. The new
system may be completely new, replacing an existing manual or automated system or it
may be major modification to an existing system. In either case, proper implementation
becomes necessary so that a reliable system based on the requirements of the
organization can be provided.
Data flow oriented techniques advocate that the major data items
handled by a system must be first identified and then the processing required
on these data items to produce the desired outputs should be determined. The
DFD (also called as bubble chart) is a simple graphical formalism that can
be used to represent a system in terms of input data to the system, various
processing carried out on these data, and the output generated by the system.
It was introduced by De Macro (1978), Gane and Sarson (1979).The
primitive symbols used for constructing DFD’s are:
Design of
System
PROC-
OUTPUT
INPUT
ESS
DESIGN
DESIGN
DESIGN
Coding of
Design
Testing of
Software
Debugging of
Software
Data Flow Diagram
4.4 DATABASE DESIGN
an effective and efficient manner. The data is the purpose of any database
The database design is a two level process. In the first step, user
design for the specific DBMS that will be used to implement the system in
question. This step is called Physical Level Design, concerned with the
runs parallel with the system design. The organization of the data in the
Data Integrity
Data independence
4.4(i) INPUT DESIGN
Out of which the most common ones are CRT displays and print out.
End
End Sub
Private Sub Label14_Click()
Load Form2
Form2.Show
End Sub
Load Form3
Form3.Show
End Sub
Load Form4
Form4.Show
End Sub
Load Form5
Form5.Show
End Sub
Load DataReport2
DataReport2.Show
End Sub
Private Sub Label26_Click()
Load DataReport3
DataReport3.Show
End Sub
Load DataReport1
DataReport1.Show
End Sub
Employee Coding:
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
rs.AddNew
rs!eid = Val(TextBox1.Text)
rs!fname = TextBox2.Text
rs!mname = TextBox3.Text
rs!lname = TextBox4.Text
rs!fathername = TextBox5.Text
rs!address = TextBox6.Text
rs!State = TextBox7.Text
rs!pno = Val(TextBox8.Text)
rs!pno1 = Val(TextBox13.Text)
rs!emailid = TextBox9.Text
rs!maritalstatus = OptionButton1.Caption
Else
rs!maritalstatus = OptionButton2.Caption
End If
rs!sex = Combo1.Text
rs!dob = TextBox10.Text
rs!dept = TextBox11.Text
rs!salary = Val(TextBox12.Text)
rs.Update
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
Combo1.Text = ""
OptionButton1.Value = False
OptionButton2.Value = False
End Sub
cn.CursorLocation = adUseClient
cn.Open
End Sub
rs.MoveFirst
TextBox2.Text = rs!fname
TextBox3.Text = rs!mname
TextBox4.Text = rs!lname
TextBox5.Text = rs!fathername
TextBox6.Text = rs!address
TextBox7.Text = rs!State
TextBox8.Text = rs!pno
TextBox13.Text = rs!pno1
TextBox9.Text = rs!emailid
OptionButton1.Caption = rs!maritalstatus
Else
OptionButton2.Caption = rs!maritalstatus
End If
Combo1.Text = rs!sex
TextBox10.Text = rs!dob
TextBox11.Text = rs!dept
TextBox12.Text = rs!salary
rs.Update
rs.MoveNext
Loop
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox13.Text = "'"
Combo1.Text = ""
OptionButton1.Value = False
OptionButton2.Value = False
End Sub
Unload Me
End Sub
Load Form1
Form1.Show
Unload Me
End Sub
Unload Me
End Sub
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox13.Text = ""
Combo1.Text = ""
OptionButton1.Value = False
OptionButton2.Value = False
End Sub
Dim c
rs.MoveFirst
rs.Delete
c=1
End If
rs.MoveNext
Loop
If c <> 1 Then
End If
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox13.Text = ""
Combo1.Text = ""
OptionButton1.Value = False
OptionButton2.Value = False
End Sub
Dim c
rs.MoveFirst
TextBox1.Text = rs!eid
TextBox2.Text = rs!fname
TextBox3.Text = rs!mname
TextBox4.Text = rs!lname
TextBox5.Text = rs!fathername
TextBox6.Text = rs!address
TextBox7.Text = rs!State
TextBox8.Text = rs!pno
TextBox13.Text = rs!pno1
TextBox9.Text = rs!emailid
OptionButton1.Value = True
Else
OptionButton2.Value = False
End If
Combo1.Text = rs!sex
TextBox10.Text = rs!dob
TextBox11.Text = rs!dept
TextBox12.Text = rs!salary
c=1
End If
rs.MoveNext
Loop
If c <> 1 Then
End If
End Sub
rs.MoveFirst
TextBox2.Text = rs!fname
TextBox3.Text = rs!mname
TextBox4.Text = rs!lname
TextBox5.Text = rs!fathername
TextBox6.Text = rs!address
TextBox7.Text = rs!State
TextBox8.Text = rs!pno
TextBox13.Text = rs!pno1
TextBox9.Text = rs!emailid
OptionButton1.Caption = rs!maritalstatus
Else
OptionButton2.Caption = rs!maritalstatus
End If
Combo1.Text = rs!sex
TextBox10.Text = rs!dob
TextBox11.Text = rs!dept
TextBox12.Text = rs!salary
rs.Update
End If
rs.MoveNext
Loop
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox13.Text = "'"
Combo1.Text = ""
OptionButton1.Value = False
OptionButton2.Value = False
End Sub
Load Form1
Form1.Show
Unload Me
End Sub
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox13.Text = ""
Combo1.Text = ""
OptionButton1.Value = False
OptionButton2.Value = False
End Sub
Dim c
rs.MoveFirst
TextBox1.Text = rs!eid
TextBox2.Text = rs!fname
TextBox3.Text = rs!mname
TextBox4.Text = rs!lname
TextBox5.Text = rs!fathername
TextBox6.Text = rs!address
TextBox7.Text = rs!State
TextBox8.Text = rs!pno
TextBox13.Text = rs!pno1
TextBox9.Text = rs!emailid
OptionButton1.Value = True
Else
OptionButton2.Value = False
End If
Combo1.Text = rs!sex
TextBox10.Text = rs!dob
TextBox11.Text = rs!dept
TextBox12.Text = rs!salary
c=1
End If
rs.MoveNext
Loop
If c <> 1 Then
End If
End Sub
Private Sub Label9_Click()
Dim c
rs.MoveFirst
rs.Delete
c=1
End If
rs.MoveNext
Loop
If c <> 1 Then
End If
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox13.Text = ""
Combo1.Text = ""
OptionButton1.Value = False
OptionButton2.Value = False
End Sub
Supplier coding:
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
rs!sid = Val(TextBox1.Text)
rs!sname = TextBox2.Text
rs!cname = TextBox3.Text
rs!caddress = TextBox4.Text
rs!fnumber = Val(TextBox5.Text)
rs!pno = Val(TextBox6.Text)
rs!pno1 = Val(TextBox13.Text)
rs!cellno = Val(TextBox7.Text)
rs!cellno1 = Val(TextBox14.Text)
rs!emailid = TextBox8.Text
rs!issuedate = TextBox9.Text
rs!qty = Val(TextBox10.Text)
rs!Rate = Val(TextBox11.Text)
rs!amount = Val(TextBox12.Text)
rs.Update
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox13.Text = ""
TextBox14.Text = ""
End Sub
cn.CursorLocation = adUseClient
cn.Open
End Sub
rs.MoveFirst
TextBox2.Text = rs!sname
TextBox3.Text = rs!cname
TextBox4.Text = rs!caddress
TextBox5.Text = rs!fnumber
TextBox6.Text = rs!pno
TextBox13.Text = rs!pno1
TextBox7.Text = rs!cellno
TextBox14.Text = rs!cellno1
TextBox8.Text = rs!emailid
TextBox9.Text = rs!issuedate
TextBox10.Text = rs!qty
TextBox11.Text = rs!Rate
TextBox12.Text = rs!amount
rs.Update
End If
rs.MoveNext
Loop
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox13.Text = ""
TextBox14.Text = ""
End Sub
Unload Me
End Sub
Load Form1
Form1.Show
Unload Me
End Sub
Private Sub Label7_Click()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox13.Text = ""
TextBox14.Text = ""
End Sub
Private Sub Label8_Click()
Dim c
rs.MoveFirst
TextBox1.Text = rs!sid
TextBox2.Text = rs!sname
TextBox3.Text = rs!cname
TextBox4.Text = rs!caddress
TextBox5.Text = rs!fnumber
TextBox6.Text = rs!pno
TextBox13.Text = rs!pno1
TextBox7.Text = rs!cellno
TextBox14.Text = rs!cellno1
TextBox8.Text = rs!emailid
TextBox9.Text = rs!issuedate
TextBox10.Text = rs!qty
TextBox11.Text = rs!Rate
TextBox12.Text = rs!amount
c=1
End If
rs.MoveNext
Loop
If c <> 1 Then
End If
End Sub
Dim c
rs.MoveFirst
rs.Delete
c=1
End If
rs.MoveNext
Loop
If c <> 1 Then
End If
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox13.Text = ""
TextBox14.Text = ""
End Sub
4.7 TESTING
an error. A good test is one that has high probability of finding the yet
1. Unit Testing
During unit testing some errors were raised and all of them
were rectified and handled well. The result was quiet satisfactory and
it worked well.
2. Integration Testing
Integration testing is a system technique for constructing the
program structure while at the same time conducting tests to uncover
errors associated with interfacing. The objective is to take unit tested
modules and build a program structure that has been dictated by
design. Bottom-up integration is the traditional strategy used to
integrate the components of a software system into functioning whole.
The system was done the integration testing. All the modules were tested
for their compatibility with other modules .They test was almost successful.
All the modules coexisted very well, with almost no bugs. All the modules
were encapsulated very well so as to not hamper the execution of other
modules.
3. Validation Testing
After validation testing, software is completely assembled as a package,
interfacing errors that have been uncovered and corrected and the final series
of software test; the validation test begins. Steps taken during software
design and testing can greatly improve the probability of successful
integration in the larger system. System testing is actually a series of
different tests whose primary purpose is to fully exercise the compute –
based system.
4. Recovery Testing
It is a system that forces the software to fail in a variety of ways and
verifies that the recovery is properly performed.
5. Security Testing
It attempts to verify that protection mechanisms built into a system will
in fact protect it from improper penetration. The system’s security must of
course be tested from in vulnerability form frontal attack.
6. Stress Testing
Stress tools are designed to confront programs with abnormal
situations. Stress testing executes a system in a manner that demands
resources in abnormal quantity and volume.
7. Black Box Testing
Black box testing is done to find out the following information as shown
in below:
1. Incorrect or missing functions.
2. Interface errors.
3. Errors or database access.
4. Performance error.
5. Termination error.
The mentioned testing is carried out successfully for this
application according to the user’s requirement specification.
The project Pet shop is completed, satisfying the required design specifications.
The system provides a user-friendly interface. The software is developed with
modular approach. All modules in the system have been tested with valid data and
invalid data and everything work successfully. Thus the system has fulfilled all the
objectives identified and is able to replace the existing system. The constraints are
met and overcome successfully. The system is designed as like it was decided in
the design phase. This software has a user-friendly screen that enables the user to
use without any inconvenience. This would help the corporation prepare and
organize its schedules more efficiently on the basis of traffic demand. Besides, it
would provide data on concessions given to various sections.
6. BIBLIOGRAPHY
BOOKS:
ONLINE REFERENCE:
www.w3schools.com
www.theserverside.com
www.visual.com