Professional Documents
Culture Documents
Roll NO Fa17m2ba01
BS Computer Science(7th)
Session 2017-2021
ii
Online shopping system
Project Brief
Project Name:
Online Shopping system
Objective:
Online Shopping System project is aimed at developing a Web application that depicts online
Shopping and purchasing using Payment Gateway. Online Shopping is one of the applications to
improve the marketing of the Brands’ products. This web application involves all the features of
the online shopping.
Undertaken BY:
Muhammad Zaib
Supervised By:
Operating System:
Windows 10 (64bit)
Source Language:
Php/Sql Server
CERTIFICATE
iii
Online shopping system
It is hereby certified that work presented by Muhammad Zaib the Project title “Online
Shopping System” has successfully presented / defended and is accepted in its present
form as satisfying the requirement for the degree of (BSCS&2017 – 2021)in the Islamia
University of Bahawalpur.
Supervisor
__________________________________
External Examiner
__________________________________
Coordinator of Department
Date: __________________
iv
Online shopping system
DEDICATION
v
Online shopping system
My Loving Parents
Whose Support
Give me Strength
And determination
To Accomplish my Goal
Acknowledgement
vi
Online shopping system
F i r s t o f a l l , m y d e e p e s t g r a t i t u d e t o a l m i g h t y
A L L A H : t h e m o s t b e n e f i c e n t , c o m p a s s i o n a t e ,
m o s t m e r c i f u l a n d m o s t g r a c i o u s w h o s e f a v o r
a n d k i n d n e s s m a d e i t p o s s i b l e f o r m e t o
c o m p l e t e t h i s p r o j e c t w o r k .
A v e r y s p e c i a l t h a n k s a n d a p p r e c i a t i o n g o e s t o
m y p a r e n t s a n d o t h e r f a m i l y m e m b e r s f o r a l w a y s
e n c o u r a g i n g m e . T h e y r e a l l y d e s e r v e m e f o r
e n d u r i n g m y p r o b l e m s w i t h g r e a t p a t i e n c e a n d
l o v e a n d w h o s e e n d l e s s p r a y e r s a r e a s o u r c e o f
d e t e r m i n a t i o n f o r m e .
I a m g r e a t l y i n d e b t e d t o m y r e s p e c t a b l e t e a c h e r
a n d G r e a t H e a d o f O u r d e p e r t m e n t Sir Dr.
Imran Sarwar Bajwa for his supervision, kind
s u p p o r t , u n f o r g e t t a b l e d e v o t i o n a n d e n c o u r a g i n g
b e h a v i o r .
I a m a l s o t h a n k f u l t o a l l s t a f f m e m b e r s o f t h e
D e p a r t m e n t o f C o m p u t e r S c i e n c e & I T f o r t h e i r
c o o r d i n a t i o n .
ABSTRACT
Online Shopping System is a web system to provide the facilities to customers to purchase all
necessary goods at one place. The purpose of organization to establish the concept of online
vii
Online shopping system
goods which customer can easily select according to his needs. The customer can book his order
from any place.
As project mainly concentrate on online Sales and Purchase so keeping the friendly user
interface the system should provide all necessary goods. A Login Form which asks the User to
browse the whole system and perform different operations step by step such as Purchase, Add to
Craft, Booking and loading records as well as providing the facility to Administrator to generate
the sequence by hiding un-necessary tasks from the user. Also the system is capable of managing
records for Purchaser. The system is also capable to generate reports according to the use.
Currently the System stores information in databases and retrieve information on the interfaces
with the help of data access.
Table of Contents
1 INTRODUCTION...............................................................................................................................................12
1.1 ORGANIZATION PROFILE:................................................................................................................................12
1.2 PROBLEM STATEMENT:...................................................................................................................................12
1.3 PROJECT/PRODUCT FEASIBILITY REPORT:......................................................................................................12
1.3.1 Technical Feasibility:...........................................................................................................................12
1.3.2 Operational Feasibility:.......................................................................................................................12
1.3.3 Economic Feasibility:...........................................................................................................................12
1.3.4 Schedule Feasibility:............................................................................................................................13
viii
Online shopping system
1.3.5 Specification Feasibility:......................................................................................................................13
1.3.6 Information Feasibility:........................................................................................................................13
1.3.7 Motivational Feasibility:......................................................................................................................13
1.3.8 Legal & Ethical Feasibility:.................................................................................................................13
1.4 PROJECT SCOPE:..............................................................................................................................................13
1.5 TOOLS AND TECHNOLOGY:.............................................................................................................................14
1.5.1 Microsoft Project:................................................................................................................................15
1.5.2 Microsoft Visio:....................................................................................................................................15
1.6 RISK LIST:.......................................................................................................................................................15
2 REQUIREMENT ANALYSIS.........................................................................................................................18
2.1 SYSTEM SPECIFICATION:.................................................................................................................................19
2.1.1 Summary of Requirements (Initial Requirements):..............................................................................19
2.2 IDENTIFYING EXTERNAL ENTITIES:................................................................................................................20
2.2.1 Refined Entities:...................................................................................................................................20
2.3 CONTEXT LEVEL DATA FLOW DIAGRAM:......................................................................................................21
2.4 USER CHARACTERISTICS:................................................................................................................................21
2.5 ALLOCATE REQUIREMENTS:...........................................................................................................................22
3 OBJECT ORIENTED ANALYSIS AND DESIGN.......................................................................................24
3.1 HIGH LEVEL USE CASE DIAGRAM:.................................................................................................................24
3.2 ANALYSIS LEVEL USE CASE DIAGRAM:.........................................................................................................25
3.3 USE CASE DESCRIPTION:.................................................................................................................................26
3.4 DOMAIN MODEL:............................................................................................................................................28
3.5 SYSTEM SEQUENCE DIAGRAM:.......................................................................................................................29
3.5.1 User Login:...........................................................................................................................................29
3.5.2 User_Logout:........................................................................................................................................30
3.5.3 User login view and report:.................................................................................................................31
3.6 COLLABORATION DIAGRAM:..........................................................................................................................32
3.6.1 Sale department_Login:.......................................................................................................................32
3.7 DESIGN CLASS DIAGRAM:..............................................................................................................................33
3.8 STATE CHART DIAGRAM:...............................................................................................................................34
3.8.1 User_Login:..........................................................................................................................................34
3.8.2 UC_Enter_Product:.............................................................................................................................34
3.8.3 UC_Sale_Voucher:...............................................................................................................................34
3.8.4 UC_Receive_DD:.................................................................................................................................34
4 DATEBASE INTERNAL &TECHNICAL DESIGN....................................................................................36
4.1 INTRODUCTION OF DATABASE:.......................................................................................................................36
4.1.1 What is database?.................................................................................................................................36
4.2 DATABASE SYSTEM:........................................................................................................................................36
4.2.1 DBMS Approach:.................................................................................................................................37
4.3 THREE-LEVEL ARCHITECTURE.......................................................................................................................37
4.4 DATA:..............................................................................................................................................................38
4.5 HARDWARE:....................................................................................................................................................38
4.6 SOFTWARE:.....................................................................................................................................................38
4.7 USERS:............................................................................................................................................................38
4.8 ADVANTAGES OF DATABASE:.........................................................................................................................39
4.9 BENEFITS OF DATABASE APPROACH:..............................................................................................................39
4.10 DATA INDEPENDENCE:...............................................................................................................................40
4.11 DATA INTEGRITY:.......................................................................................................................................40
4.11.1 Entity integrity:................................................................................................................................40
4.11.2 Referential integrity:........................................................................................................................40
4.11.3 Domain integrity:.............................................................................................................................41
4.12 IDENTIFICATION OF ENTITIES:....................................................................................................................41
ix
Online shopping system
4.13 ATTRIBUTE:................................................................................................................................................41
4.14 NORMALIZATION:.......................................................................................................................................42
4.14.1 First Normal Form:.........................................................................................................................42
4.14.2 Second Normal Form:.....................................................................................................................43
4.14.3 Third Normal Form:........................................................................................................................44
4.15 DATABASE DESIGN:....................................................................................................................................44
4.16 DATA MODELING:......................................................................................................................................45
4.17 PRODUCT TABLE:.......................................................................................................................................47
4.17.1 Product............................................................................................................................................47
4.17.2 Shopping..........................................................................................................................................48
4.17.3 User Login.......................................................................................................................................48
4.17.4 User Feedback.................................................................................................................................49
4.18 DATA MODEL SHOWING RELATIONSHIPS:.................................................................................................49
5 TESTING...........................................................................................................................................................51
5.1 TESTING:.........................................................................................................................................................51
5.2 TESTING STRATEGY:.......................................................................................................................................51
6.1 HOME PAGE.....................................................................................................................................................53
6.2 CUSTOMER RECORD FORM:............................................................................................................................54
6.3 UC_ENTER_PRODUCT:...................................................................................................................................55
6.4 UC_REGISTERUSER:.......................................................................................................................................56
6.5 UC_UPDATEUSER:.........................................................................................................................................57
6.6 USE_LOGIN:....................................................................................................................................................57
6.7 UC_VIEW_REPORTS:......................................................................................................................................58
6.8 UC_REPORTS_VIEW:......................................................................................................................................58
6.9 UC_Update:....................................................................................................................................................59
x
Project Report
Chapter 1 INTRODUCTION
11
Project Report
1 INTRODUCTION
The system which I am going to develop as my final project is the Online shopping
management system. This document is developed to serve as a starting point of the
software development process.
12
Project Report
already with the development team. This makes the development economically
feasible. Only costing and sale factor is the effort of the project members and time
that is utilized in project development. The maintenance cost and operation cost is
there.
13
Project Report
1. A SQL Server that provides interaction with the system to the users that are
physically distributed on same location.
2. A centralized database.
3. The system will have adequate redundancy to ensure fail-safe operation.
4. Tracking of all the stock whether it is in the ware-houses or in the pipeline (in
the process of inspection or delivery).
5. It will handle the production. When the online shopping system receives a
purchase order, it delivers goods to the actual customer, and he receives the
receipt (GRN) (Goods Receive Note) in return.
6. The system will be accessible to all who have a valid login; users with a valid
login can access the system virtually anywhere and do the required task where
computer and Internet facilities are available.
7. The system will deal with the financial module of sale and purchase and other
expenses and HR module.
8. It is not costly, only single computer is sufficient to keep the whole record.
9. It is not a time consuming system.
10. It needs only a single person with basic knowledge of computer.
11. It is fast and generates reports within specified time as required.
12. Insertion, Deletion and updating of the records are very easy.
13. It is easy to add or remove new records according to the requirements.
14. Redundancy problem is solved because information stored on a single place.
15. It has backup facility and recovery options and data can be stored on any
removable media.
14
Project Report
15
Project Report
16
Project Report
17
Project Report
2 REQUIREMENT ANALYSIS
In this chapter I have discussed requirements engineering process, which provides the
appropriate mechanism for understanding what the customer wants, analyzing needs,
assessing feasibility, negotiating a reasonable solution, specifying the solution
unambiguously, validating the specification and managing the requirements as they are
transformed into an operational system.
1. Requirements elicitation
2. Requirements analysis and negotiation
3. Requirements specification
4. System modeling
5. Requirements validation
6. Requirements management
18
Project Report
19
Project Report
2. A user must login to the system to be able to use the system. A user shall
be able to view different types of reports regarding the system according
to his privilege level. He must logout of the system after using the system
and no one can use the system invalid.
4. The shopping management has Bank Accounts which are used for debit
and credit.
20
Project Report
2. User
3. Purchase Rate
4. Product
5. Bank Account
6. Transaction Slip
7. Quality
8. Sale Order
21
Project Report
22
Project Report
23
Project Report
The objective of Object Oriented Analysis and Design is to develop a model that
describes computer software as it works to satisfy a set of requirements. After
understanding the current situation of the problem domain the team is ready to strive for
the solution by using OOAD approach and database of the relations.
24
Project Report
25
Project Report
UC-ID UC-01
UC-Name UC_Register
Pre-Condition: The DB Admin must login in the system with “administrator” login.
Description: This use case describes the creation of user accounts.
Basic Flow:
1. DB Admin clicks on create a new account link.
2. A Window form appears in front of him.
3. DB Admin fills in the required data (i.e. username, password of the user).
4. DB Admin clicks on the save button and exits.
Alternative Flow: The user can cancel the process at any time.
Post-Condition: DB Admin informs the desired person of his username and password.
Extensions: None.
UC-ID UC-02
UC-Name UC_Update
Pre-Condition:
The DB Admin must login the system as administrator.
Description:
This use case describes how the DB Admin updates any form of the system.
Basic Flow:
1. DB Admin double clicks on the grid view in the form button.
2. DB Admin updates the required fields.
3. DB Admin clicks on the Update Button of the foem.
4. DB Admin clicks on Exit Button.
Alternative Flow: The user can cancel the process at any time.
Extensions: None.
UC-ID UC-03
UC-Name UC_Login
Pre-Condition:
The user must have a valid username and password.
Description:
This use case describes how a user can login the system.
Basic Flow:
26
Project Report
27
Project Report
28
Project Report
The UML system sequence diagram (SSD) describes the events sequence inputs from
external source to the system. The SSD will define the system events and operations.
System sequence diagrams are a timeline drawing of an expanded use case. Events are
related by time with the top events occurring first. System events are the important items.
These are events that cause a system response.
The System Sequence Diagrams of the Online Inventory System of online shopping
management system are shown below.
SYSTEM
USER
4: Validate(U,P)
5: Invalid Login
29
Project Report
3.5.2 User_Logout:
SYSTEM
USER
30
Project Report
SYSTEM
USER
4: Prepare Report
5: Show Report
6: Select Action(action)
7: Action()
8: Action() Result
31
Project Report
A collaboration diagram describes a pattern of interaction among objects and its relations;
it shows the objects involved in the interaction by their links to each other and the
messages that they send to each other for information.
interacted diagrams are used to show how objects interact to perform the behavior of a
particular use case, or a part of a use case. Along with sequence diagrams, collaborations
are used by designers to define and clarify the roles of the objects that perform a
particular flow of events of a use case. They are the primary source of information used
to determining class responsibilities and functions.
The collaboration diagrams of the Sales and Purchase Management System of online
shopping management system are shown below:
USER
1:Login, 3:Enter(username,password)
5: Valid Input
4: Valid Input
32
Project Report
33
Project Report
3.8.1 User_Login:
Start Login
System Screen Main Form
3.8.2 UC_Enter_Product:
/ Fill Required Fields
3.8.3 UC_Sale_Voucher:
/ Fill Required Fields
3.8.4 UC_Receive_DD:
/ Fill Required Fields
34
Project Report
35
Project Report
36
Project Report
External
Leve View 1 View 2 View n
Int ern al
Internal Level Seh ema
Physical Data
Organizati on Database
37
Project Report
4.4 Data:
Data is information that has been organized and categorized for a pre determined
purpose. Data is a collection of raw fact and figure date is a unprocessed form it is
processed to get required information to achieve the result that is needed.
4.5 Hardware:
Hardware is a machine which we use to store access manipulates and manages the
data it consist of following two things
1. The secondary storage volumes typically moving head magnetic tapes.
2. The processor and associated main memory that are used to support the
execution of the database system software.
4.6 Software:
All the request form users for access to the database are handled by DBMS software
manage the use of all hardware.
4.7 Users:
a) Application programmer:
An Application programmer is someone who works in many different programming
languages to create the source code, which is responsible for creating small or large
parts of a piece of software in concert with others. Applications programming is the
meat and potatoes of programming, and requires a very creative mind, as well as
some of application software are as follows example games, music etc. the
requirements of their teammates and the code itself. An application is a program that
is use to manage and handle the hardware.
b) End user:
The second class of user is end user. End-users use the software to assist with some
task. This may be flying an aircraft managing insurance policies, writing a books etc.
The end user has no deep knowledge. The end user interact with the application to
enter data into database and keep the record.
38
Project Report
c) Database administrator:
A database administrator (DBA) is a person responsible for the design,
implementation, maintenance and repair of an organization's database. Database
administrator manages the database and performs the all necessary operations.
Data Independence
Consistency of Data
Integrity of Data
39
Project Report
Increased Productivity
Data Sharing
Enforcement of standards
Data independence is the type of data transparency that matters for a centralized DBMS.
The application should not be involved with these issues, since there is no difference in
the operation carried out against the data. The data independence and operation
independence together gives the feature of data abstraction. Data independent fulfill all
the rule of normalization that value of one attribute do not depend on the value of other
attribute.
Data integrity is data that has a complete or whole structure. All characteristics of the
data including business rules, rules for how pieces of data relate dates, definitions and
lineage must be correct for data to be complete. Data integrity is the accuracy and the
reliability of the data. It provides all the necessary constraints on the data. It stop the
invalid data when user enter any wrong input in the required field.
40
Project Report
Entity integrity concerns the concept of a primary key. An entity is a person, place
or anything. Entity can obtain the value form the range 0 to 9. Entity integrity is
the constraint on the entity value that is entered to specify the value.
Referential integrity concerns the concept of a foreign key. It refer the primary
key of the other table in the database.
A domain is a set of all possible values that is entered in the database to provide
the integrity and accuracy and reliability of the data. The data in the domain remain the
consistent.
Entity is a basic data object in database modeling. Entity can be person, a place, an event
or a thing about which we have to save data in the database. Database is a collection of
entities. The first step in database modeling is to identify entities of database. This is of
the major parts in conceptual database modeling. Each entity should be significant.
a) Significant:
List only user is the most important entities for the database to keep the rescored of
the different organization.
Generic:
e) Weak entity:
41
Project Report
An entity that depends on the other entity is known is weak entity it depend on the
other entity. For example if class does not exist than student cannot get admission its
mean that student depends on the class.
4.13 Attribute:
Entity contains a set of attributes. We can call attributes as properties, features or quality
of the entity. Attributes are the characteristic of an entity. While defining attributes, we
should consider following points.
4.14 Normalization:
Normalization is a process to organize the data in an efficient manner. There are two
basic results which we expect from normalization. The process of purifying the data is
known as normalization. In normalization errors are removed from the relations.
a) Redundant Data:
Redundancy mean duplication of the data in normalization redundancy of the data should
be removed the duplication of data should be removed from the relations.
b) Modification Anomaly:
Modification anomaly is the error during the update of data.
c) Deletion Anomaly:
The error during deletion of the data. This error during the deletion of the record from the
relation or database.
d) Insertion Anomaly:
42
Project Report
The error of insertion during insert of the data into the database. This error occur when
we insert the data into the database.
43
Project Report
1 C++ X/Y/Z
2 Java X/Y/Z
Some time, it can make things too complex while implementing these normal form so
best way is to find a balance as when it gets too complex then many DBMS requires
more resource or it can decrease the performance.
A carefully thought-out database design forms the foundation for future success. These
links will help you plan your database designs to maintain performance and integrity
through future growth. Ddatabase design is the process of producing a detailed data
model of a database. This logical data model contains all the needed logical and physical
design choices and physical storage parameters needed to generate a design in a Data
44
Project Report
Definition Language, which can then be used to create a database. A fully attributed data
model contains detailed attributes for each entity.
Identify Entities
Define relationships
a) Basic Objects:
- ---- --- --- ---- --- --- ---- --- - U se to represent for eign key attri butes
_______________
Us e to mention pr im ar y key attr ibute
45
Project Report
Attributes of User:
Login
User(Login) Password
Attributes of Product:
ProductId ProductName
Product
PK ProductId
Product
ProductName
Attributes of BankAccount:
AccountNo
AcccountType AccountHolder
AccountType
BankAccount
Bank
Bank
46
Project Report
47
Project Report
4.17.2 Shopping
48
Project Report
49
Project Report
Chapter 5 TESTING
5.1. Testing
5.2. Testing Strategy
50
Project Report
5 TESTING
5.1 Testing:
It is the process used to help identify the correctness, completeness, security, and quality
of developed computer software. Testing is a process of investigation, performed on
behalf of performance, that is used to check the quality-related information about the
product.
System:
Expected Result:
Message will appear that please enter correct user name and password.
Actual Result:
Error occur with the following message “Please enter correct username and password
51
Project Report
52
Project Report
53
Project Report
54
Project Report
6.3 UC_Enter_Product:
55
Project Report
6.4 UC_RegisterUser:
56
Project Report
6.5 UC_UpdateUser:
6.6 Use_login:
57
Project Report
6.7 UC_View_Reports:
6.8 UC_Reports_View:
58
Project Report
6.9 UC_Update:
59