Sample Billing Market

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 40

ADICHUNCHANAGIRI UNIVERSITY

BG Nagara - 571448, KARNATAKA.

AMini Project Report


On
“CAPTCHA GENERATOR”
Submitted in partial fulfillment for the academic year 2023-
24

Bachelor of Engineering
In
Computer Science and Engineering
Submitted by,
POOJA S G 22CSE112
POORNA CHANDRA TEJASWI L 22CSE113

Under the guidance of:


Mrs. SWETHA K R
Asst. Professor, Dept. of CSE
BGSIT, B G Nagara

DEPARTMENT OF COMPUTER SCIENCE


AND ENGINEERING
B G S INSTITUTE OF
TECHNOLOGY B G
NAGARA-571448
2023-24
ADICHUNCHANAGIRI UNIVERSITY
B G S INSTITUTE OF TECHNOLOGY,
BG Nagara-571448, MANDYA

Department of Computer Science and Engineering


CERTIFICATE

This is to certify that the mini project entitled “CAPTCHA

GENERATOR” is a Bonafide work carried by Ms. POOJA S G, bearing


USN: 22CSE112, and Mr. POORNA CHANDRA TEJASWI L, bearing USN:
22CSE113 the students of B G S INSTITUTE OF TECHNOLOGY, B G
Nagar in partial fulfillment of Bachelor of Engineering in Computer Science and
Engineering, of Adichunchanagiri University, B G Nagar during the academic
year 2023 - 2024. It is certified that all correction / suggestionsindicated for
internal assessment have been incorporated in the report deposited in the
department library.

Signature of Guide: Signature of HOD:

Mrs. SWETHA K R Dr. SHASHIKALA S V


Asst. Professor, Professor & HOD,
Dept., of CSE Dept., of CSE
BGSIT, B G Nagar BGSIT, B G Nagar

External Viva

Name of the Examiners Signature of Examiners

1.
1.

2. 2.
ACKNOWLEDGEMENT

We sincerely convey our regards and thanks to Dr. B N Shobha, Principal, BGSIT,
BG Nagar, Mandya, for giving us a chance to carry out and present our mini project
work.

Our sincere thanks to Dr. Shashikala S V Prof. and Head of Department,


CS&E, BGSIT, B G Nagar, Mandya, for giving us a chance to carry out and
present our project work with all the support and facilities.

We would like to thank Mrs. Swetha K R, Assistant Professor,


Department of CSE, BGSIT, BG Nagar, Mandya our honorable guides who
stood as an excellent guide to carry out our work has been always available as an
expressive evaluator for the creation and correction of the report towards our work.
They have taken pain and time to go through our work when needed.

Our heartfelt gratitude to all the teaching and non-teaching faculties of


Computer Science and Engineering Department, BGSIT, BG Nagara, Mandya,
for their support and guidance towards the completion of our mini project work.

Finally, we would also extend our heartfelt thanks to our family members,
classmates, friends and well-wishers for their support and encouragement
throughout this effort.

SAGAR GOWDA A.R(23CSE404)


SHASHANK A.E (23CSE405)

i
ABSTRACT
The CAPTCHA Generator project aims to develop a web-based application using HTML, CSS,
and JavaScript to generate and implement CAPTCHA (Completely Automated Public Turing
test to tell Computers and Humans Apart) challenges. CAPTCHA is widely used on websites to
prevent automated bots from accessing or interacting with certain features, such as submitting
forms or creating accounts. This project focuses on creating a customizable and user- friendly
CAPTCHA generation system to enhance web security.The HTML component of the project
provides the structure for the web interface. It includes elements such as input fields, buttons,
and placeholders for the generated CAPTCHA images. The structure is designed to be intuitive
and accessible to users, allowing them to interact seamlessly with the CAPTCHA generation
process.CSS is employed to enhance the visual appeal of the application and ensure a responsive
and aesthetically pleasing design. Styling elements such as colors, fonts, and layout contribute
to a user-friendly experience, making the CAPTCHA generation interface more engaging and
accessible.JavaScript is the core programming language for the CAPTCHA generation logic.
The project leverages JavaScript's capabilities to create random and dynamic CAPTCHA
challenges.

KEYWORDS: CAPTCHA ,bot.

ii
lOMoARcPSD|42436405

Supermarket Billing System 2023-24

TABLE OF CONTENT
SL NO TOPICS PAGE NO
1 INTRODUCTION 5
2 LITERATURE SURVEY 6
3 SYSTEM ANALYSIS
3.1 EXISTING SYSTEM 8
3.1.1 BOTTLENECK OF EXISTING SYSTEM 8
3.2 PROPOSED SYSTEM 9
3.3 OBJECTIVE OF THE PROJECT 10
3.4 SCOPE OF STUDY 10
4 SYSTEM REQUIRED SPECIFICATION
4.1 SOFTWARE REQUIREMENT 11
4.2 HARDWARE REQUIREMENT 12
4.3 SYSTEM ARCHITECTURE 13
4.4 FEASIBILITY STUDY 14
5 SYSTEM DESIGN
5.1 USE CASE DIAGRAM 16
5.2 DATA FLOW DIAGRAM 17
5.2.1 LOW LVEL DATA FLOW DIAGRAM 17
5.2.2 HIGH LEVEL DATA FLOW DIAGRAM 18
6 SYSTEM IMPLEMENTATION
6.1 SAMPLE CODE 19
6.2 MODULE DESCRIPTION 21
7 DATABASE DESIGN 23
8 SYSTEM TESTING AND IMPLEMENTATION
8.1 TESTING OBJECTIVE 24
8.2 TEST PLAN 25
8.2.1 TESTING AND RESULT 25

Dept. Of CSE, BGSIT, B G NAGARA Page | 1


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

8.2.2 TESTING STRATERGIES 26


8.2.3 TEST CASE 27
9 RESULT 28
CONCLUSION 32

Dept. Of CSE, BGSIT, B G NAGARA Page | 2


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

LIST OF FIGURES

FIGURE NO FIGURE NAMES PAGE NO


4.3 MVC ARCHITECTURE DIAGRAM 13
5.1 USE CASE DIAGRAM OF ADMIN & 16
CUSTOMER
5.2 DATA FLOW DIAGRAMS 17

LIST OF SNAPSHOTS OF RESULT


SNAPSHOT NO NAMES PAGE NO

10.1 MENU 28

10.2 CUSTOMER ORDER MENU 28

10.3 ADMIN MENU WITH PRODUCTS 29

10.4 ADMIN PRODUCT CREATION 29

10.5 DISPLAY OF PRODUCT CREATION 30

10.6 DISPLAY OF PRODUCT DELETION 30

10.7 DISPLAY AFTER DELETION OF 31

PRODUCT

Dept. Of CSE , BGSIT, B G NAGARA Page | 3


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

ABSTRACT

In present days people are facing problem in shopping, this Supermarket Billing
System project in JAVA is a simple console application built without use of graphics. This
project will help us to understand basically two things- use of stream class and file handling
in JAVA language. This project is simple to understand, and the source code has been
presented in an understandable manner. To make software fast in processing with the good
user interface so that user can manage and change it, this should be used for long time
without error and maintenance.

This project is a traditional supermarket billing system with some added functionality.
This system is built for fast data processing and bill generation for supermarket customers.
The billing system consists of JAVA and file handling concepts. The billing database is a
vast collection of product name, price and other product specific data. A product when billed
is searched from the database and its price is added to the bill based upon the product
quantity. The system also contains discounted price while billing. The supermarket billing
system is built to help supermarkets calculate and display bills and serve the customer in a
faster and efficient manner.

Dept. Of CSE , BGSIT, B G NAGARA Page | 4


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

CHAPTER 1

INTRODUCTION

Supermarket is the place where customers come to purchase their daily using products
and pay for that. So, there is a need to calculate how many products are sold and to generate
the bill for the customer. “Supermarket Billing System” aims at developing into software
that can be used at places like Shopping malls, Supermarkets to easily operates the daily tasks
of taking the order, calculating the bill etc.

The main advantage of this project is that it converts all the manual work is time
consuming and error prone to fully automated system which helps in eliminating all the paper
work, saves time, improves customer services. It also speeds up various processes such as
addition of new items to the menu, deletion of items from the menu, modification of details
of items and calculation of bills thus providing convenience to the workers as well as
customers. In the development of the project, selection of an appropriate programming
language and a platform is of primary importance.

This project is developed to manage the bill submission process in big organization.
Using this system user can submit their bill online and check the status of their bill. In this
system, we have two users. First one is the customer who can purchase the items available or
can make the bill for the customers. Second one is the administrator who will decide the
discounts on the products and can see the report of any report. In this project JAVA language
is used to maintain all the data. It provides many features like file handling data can be easily
maintained and many features that are required while doing a project. The system will
display all the items with prices and discount. Finally, a separate bill will be generated for
each customer. This will be saves in the database. Any periodic records can be viewed at any
time. Eventually, users will consume less time in the calculation and the sales activity will be
completed within a fraction of seconds whereas a manual system will make the user write it
down which is a long procedure and so paperwork will be reduced and the user can spend
more time on the monitoring the supermarket.

Dept. Of CSE , BGSIT, B G NAGARA Page | 5


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

CHAPTER 2

LITERATURE SURVEY
A Supermarket is a large form of the traditional grocery store, it is a self-service shop
offering a wide variety of food and household products. It is larger in size an has a wider
selection than a traditional grocery, but is smaller and more limited in the range of
merchandise than a hypermarket or big-box market.

The concept of an inexpensive food market relying on large economies of scale was
developed by Vincent Astor. He founded the Astor Market in 1915, investing $750,000 of
this fortune into a 165 by 125 corner of in the famous 95 Manhattan avenue, creating in
effect, an open air mini-mall that sold meat, fruit, produce and flowers. The expectation was
that customers would come from great distances (“miles around”), but in the end even
attracting people from the ten blocks away was difficult, and the market folded in 1917. The
concept of a supermarket was developed by entrepreneur Clarence Saunders and his Piggly
Wiggly stores. His first store opened in 1916. Saunders was awarded a number of patents for
the ideas he incorporated into his stores. The stores were a financial success and Saunders
began to offer franchises. The Great Atlantic & Pacific Tea Company, which was established
in 1859, was another successful early grocery store.

Historically, there was a debate about the origin of the supermarket, with King Kullen
and Ralphs of California having strong claims. Other contenders included Weingarten’s Big
Food Markets and Henke & pillot. To the end the debate, the Food Marketing Institute in
conjunction with the Smithsonian Institution and with funding from H.J. Heinz, researched
the issue. It defined the attributes of a supermarket as “self-service product departments,
discount pricing, marketing and volume selling”.

It has been determined that the first true supermarket in the United States was opened
by a former Kroger employee, Michael J Cullen, on August 4, 1930 inside a 6,000-square-
foot (560m*) former garage in Jamaica, Queens in New York City. The store, King Kullen,
operated under the slogan “Pile it high. Sell it low”. At the time of Cullen’s death in 1936,
there were seventeen King Kullen stores in operation. Although Saunders had brought the
world self- service, uniform stores and nationwide marketing, Cullen built on this idea by
adding separate food departments, selling large volumes of food at discount prices and
adding a parking lot.
lOMoARcPSD|42436405

Supermarket Billing System 2023-24

Dept. Of CSE , BGSIT, B G NAGARA Page | 6


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

In the United Kingdom, self-service shopping took longer to become established even
in 1947, there were just ten self-service shops in the country. The UK’s first supermarket
under the new Premier Supermarkets brand opened in Streatham, South London, taking ten
times as much per week as the average British general store of the time.

In the 1950s, supermarkets frequently issued trading stamps as incentives to


customers. Today, most chains issue store-specific “membership cards”, “club cards” or
“loyal cards”. These typically enable the card holder to receive special members-only
discounts on certain items when the credit card-like device is scanned at check-out. Sales of
selected data generated by club cards is becoming a significant revenue stream for some
supermarkets.

The Number of methods is proposed by researches in this domain. B. Ananthabarathi


proposed High Speed Billing System in which RF detector is placed inside the shopping cart
which is linked to the server for billing.

According to Aggarwal, Sisodia to make the software fast in processing, there should
be good user interface so that user can change it and it should be used for long time without
error and maintenance. Many supermarkets use this type of billing system for a decade. It is
also improved many times according to requirements of sellers and customers. It does the
same work that is calculating the bill; gives it to the customer and maintain proper database.
They are accurate in calculation and printing they also generate records.

A new concept is also added in the billing system that also maintains relationships
with the customers who purchase more products from the store regularly. The system also
concerns their requirements and give them more discount and commission. It also shows the
overall profit on a particular product and reports on which items are required and which have
crossed their expiry date.
lOMoARcPSD|42436405

Supermarket Billing System 2023-24

Dept. Of CSE , BGSIT, B G NAGARA Page | 7


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

CHAPTER 3

SYSTEM ANALYSIS
System analysis is the first and foremost phase in the methodology of system
development because the development of and success of all the phases ahead are entirely
dependent on the successful development of this phase hence, system analysis in this
organization is taken as most crucial and done very carefully.

3.1 EXISTING SYSTEM


Many Supermarket use this type of billing system for a decade. It is also improved
many times according to requirements of sellers and customers. It does the same work that is
calculating the bill gives it to the customer and maintain proper database. They are accurate
in calculation and printing they also generate records. A new concept is also added in the
billing system is that they also maintain relationships with the customers who purchase more
products from the store regularly. System also concerns their requirements and gives them
more commission. It also shows the overall profit and profit on a particular product and give
repots which then are required and which have crossed their expiry date.

3.1.1 BOTTLENECK OF EXISTING SYTEM

Every system has pros and cons so existing system also have many advantages and
disadvantages. So, the bottlenecks of the existing system are as follows:

 User Interface: user interface is not so much good that operators feel some problem.
 Graphical User Interface: GUI not good so the operators get bored by watching
screen.
 Processing Speed: processing speed of the software is not so much good to operate
fast.
 Flexible: existing system is not so much flexible that can be changed according to the
operators and customers.

Dept. Of CSE , BGSIT, B G NAGARA Page | 8


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

 Automatic Generation of The Reports: not able to automatically generate the


reports and documents.
 Workload: sometimes the system hangs when workload is more.
 Error Free: sometimes the system gives error in the calculation in making the bill
and in the information of the products due to workload.
 Man Power: Existing system uses so many people to operate the system.
 Resources: System does not use the resources properly.

3.2 PROPOSED SYSTEM


The project on Supermarket Billing System in the place where customers come to
purchase their daily products and pay for that. So, there is need to calculate how many
products are sold and generate the bill for the customer.

To reduce the bottlenecks of the existing system there is a need to develop a new
system the new system could concern the requirements of the customer and the sellers. It has
following qualities:

 Reduction in processing cost.


 Error reduction.
 Automatic posting.
 Flexibility.
 Ability to meet user requirement
 Reduction in manpower.
 Improved reporting.
 Faster response time.
 Improves resources use.

Propose system has these qualities including the qualities of existing system.

Dept. Of CSE , BGSIT, B G NAGARA Page | 9


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

3.3 OBJECTIVES OF THE PROJECT


The main objective of the project is to make software fat in processing and it should
be used for a long time without error and maintenance. Provides a convenient solution of
billing pattern and make an easy-to-use environment for users and customers.

 Automation – The application automates each and every activity of the manual
system and increases its throughput. Thus, the response time of the system is very less
and it works very fast.
 Accuracy – The application provides the user a quick response with very accurate
information regarding the bill calculation and customer detail etc. any details or
system in an accurate manner, as when required.
 User Friendly – The application Supermarket Billing System has a very user friendly
interface. Thus, the users will fully very easy to work on it. The application provide
accuracy along with a pleasant interface. Make the present manual system more
interactive, speedy and user friendly.
 Availability – All the Billing details stored permanently in the database admin can
see the data, whatever needed.
 Maintain Cost – Reduce the cost of maintenance. It is standalone application so no
required of cost for maintain it.

3.4 SCOPE OF THE STUDY


Scope is more at certain area where billing is required and it also avoid the fake
dealers. Easy to maintain in future prospect. It provides quick way of operation by capturing
the manual process and automating them. This project is helpful to computerize the item
transaction, sales activity record keeping which is very huge task and maintaining the stock.

This project will help the admin to

 Calculate the bill.


 Give the bill to the customer.
 Store how many products are sold.
 Store products and their prices and with other information.
 See the rates of discounts on the products.

Dept. Of CSE , BGSIT, B G NAGARA Page | 10


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

CHAPTER 4

SYSTEM REQUIREMENT SPECIFICATION


This section describes the software and hardware requirements of the system

4.1SOFTWARE REQUIREMENTS

 Operating system – Windows 10 is used as the operating system as it is stable


and supports more features and is more user friendly.
 Programming language – JAVA is used to write the whole code.
 Software – Dev-JAVA

Dev-JAVA is a free full-featured integrated development environment (IDE)


distributed under the GNU General Public License for programming in C and JAVA. It
was originally developed by Colin Laplace and first released in 1998. It is written in
Delphi.
An additional aspect of Dev-JAVA is its use of DevPaks: packaged extensions on
the programming environment with additional libraries, templates, and utilities.
DevPaks often contain, but are not limited to, GUI utilities, including popular toolkits
such as GTK+, wx Widgets, and FLTK. Other DevPaks include libraries for more
advanced function use. Users of Dev-JAVA can download additional libraries, or
packages of code that increase the scope and functionality of Dev-JAVA, such as
graphics, compression, animation, sound support and many more. Users can create
DevPaks and host them for free on the site.

JAVA Language

JAVA is a general-purpose programming language created by Bjarne Stroustrup as


an extension of the C programming language, or "C with Classes". The language has
expanded significantly over time, and modern JAVA now has object-oriented, generic,
and functional features in addition to facilitiesfor low-level memory manipulation. It
is almost always implemented as a compiled language. JAVA was designed with an
orientation toward system programming and embedded, resource-constrained software
and large systems, with performance, efficiency, and flexibility of use as its design
highlights.

Dept. Of CSE , BGSIT, B G NAGARA Page | 11


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

JAVA has also been found useful in many other contexts, with key strengths being
software infrastructure and resource-constrained applications, including desktop
applications, video games, servers and performance-critical applications.

JAVA is standardized by the International Organization for Standardization (ISO),


with the latest standard version ratified and published by ISO in December
2020.Before the initial standardization in 1998, JAVA was developed by Danish
computer scientist Bjarne Stroustrup at Bell Labs since 1979 as anextension of the C
language; he wanted an efficient and flexible language similar to C that also provided
high-level features for program organization.

4.2HARDWARE REQUIREMENTS

The most common set of requirements defined by any operating system or software
application is the physical computer resources, also known as hardware. A hardware
requirements list is often accompanied by a hardware compatibility list (HCL), especially in
case of operating systems. An HCL lists tested, compatibility and sometimes incompatible
hardware devices for a particular operating system or application. The following sub-sections
discuss the various aspects of hardware requirements.

Hardware requirements for present project:


 Processor: Intel core i3
 RAM: 4GB
 Hard disk: 1TB (Minimum 80GB)
 Interface: Mouse, Keyboard

Dept. Of CSE , BGSIT, B G NAGARA Page | 12


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

4.3 SYSTEM ARCHITECTURE

Fig 4.3: MVC System Architecture

The Model View Controller (MVC) design pattern specifies that an application consist of a
data model, presentation information, and control information. The pattern requires that each
of these be separated into different objects.

 The MODEL contains only the pure application data, it contains no logic describing
how to present the data to a user.

 The VIEW presents the model’s data to the user. The view knows how to access the
model’s data, but it does not know what this data means or what the user can do to
manipulate it.

 The CONTROLLER exists between the view and the model. It listens to events
triggered by the view (or another external source) and executes the appropriate
reaction to these events. In most cases, the reaction is to call a method on the model.
Since the view and the model are connected through a notification mechanism, the
result of this action is then automatically reflected in the view.

Dept. Of CSE , BGSIT, B G NAGARA Page | 13


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

4.4 FEASIBILITY STUDY

“Feasibility Study” is a test of the system according to its workability, impact of the
organization, ability to meet user needs and effective use of the resources.
We can test our system by different type of the feasibilities. There are 5 types of the
feasibilities which are discussed here. There are as follows:

1. Technical Feasibility:
A study of resource availability that may affect the ability to achieve an acceptable
system. This evaluation determines whether the technology needed for the proposed
system is available or not. This system can be made in any language that support good
user interface and easy database handling.

2. Economic Feasibility:
A system can be developed technically and that will be used if installed must still be a
good investment for the organization. In the economic feasibility, the development
cost in creating the system is evaluated against the ultimate benefit derived from the
new systems. Financial benefits must equal or exceed the costs.
The system is economically feasible. It does not require any addition hardware or
software. Since the interface for this system is developed using the existing resources
and technologies. There is nominal expenditure and economic feasibility for certain.

3. Operational Feasibility:
Proposed projects are beneficial only if they can be turned out into information
system. That will meet the organization’s operating requirements. Operational
feasibility aspects of the project are to be taken as an important issue raised are to test
the operational feasibility of a project includes the following:
Is there sufficient support for the management from the users?
 Will the system be used and work properly if it is being developed and
implemented?
 Will there be any resistance from the user that will undermine the possible
application benefits?

Dept. Of CSE , BGSIT, B G NAGARA Page | 14


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

This system is targeted to be in accordance with the above-mentioned issues.


Beforehand, the management issues and user requirements have been taken into
consideration. So, there is no question of resistance from the users that can undermine
the possible application benefits. The well-planned design would ensure the optimal
utilization of the computer resources and would help in the improvement of
performance status.

4. Schedule Feasibility:
Time evaluation is most important consideration in development of the project. So,
the project is concerned should be completed with fixed in scheduled time as far as
company is concerned. New system is not so much big so it is easy to make in few
days.

5. Behavioural Feasibility:
People are inherently resisted to change and a computer means “change is the only
certainty”. An estimate should be made of how strong a reaction the user staff in
going to have towards development of new system. Thus, special efforts can be made
to educate and train the staff.
lOMoARcPSD|42436405

Supermarket Billing System 2023-24

Dept. Of CSE , BGSIT, B G NAGARA Page | 15


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

CHAPTER 5

SYSTEM DESIGN
5.1USE CASE DIAGRAM

Use case diagram is a graph of actors, a hard and fast of use instances enclosed by
means of a deviceboundary, conversation associations among the actor and the use case.
The use case diagram describes how a gadget interacts with out of doors actors; each use
case represents a bit of functionality that a machine provides to its users. The use instances
are used at some point of the evaluation phase of a task to pick out and partition system
capability. They separate the device into actors and use case. Actors represent roles which
might be played by using person of the system. Those users may be people, different
computer systems, portions of hardware, or maybe other software structures.

Fig 5.1: Use Case Diagram of Customer and Admin

Dept. Of CSE , BGSIT, B G NAGARA Page | 16


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

5.2 DATA FLOW DIAGRAM


A data flow diagram (DFD) maps out the flow of information for any process or
system to show data inputs, outputs, storage points and routes between each destination.

5.2.1 Low Level Data Flow Diagram


The Low-level Data Flow Diagram (DFD) is the basic overview of the of the
Supermarket Billing System or process being analysed or modelled. It is designed to be an at
a glance view of payment, products, rate of discount showing the system as a single high-
level process, with its relationship to external entities of inventory, customer and purchasing.

Fig 5.2.1: Low-level Data Flow Diagram of Supermarket Billing System

Dept. Of CSE , BGSIT, B G NAGARA Page | 17


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

5.2.2 High Level Data Flow Diagram:


The High-level Data Flow Diagram (DFD) of Supermarket Billing System shows
how the system is divided into subsystems, each of which deals with one or more of the data
flows. It also identifies internal data stores of products, payment, sales, purchasing that must
be present in order for the Supermarket system to do its job.

Fig 5.2.2: High-level Data Flow Diagram of Supermarket Billing System

Dept. Of CSE , BGSIT, B G NAGARA Page | 18


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

CHAPTER 6

SYSTEM IMPLEMENTATION
This chapter is the part that puts a planned system into action and examine in details
the analysis and design of the Skillmad supermarket system. The present chapter discusses
the implementation of the system, highlighting the testing exercise and describing some of
the main components of the system’s Graphical User Interface. It will give an output from
programming language and other tools used to develop our system. According to this plan,
the activities are to be carried out, discussions made regarding the equipment and resources
and the additional equipment has to be acquired to implement the new system.

6.1 SAMPLE CODE OF SUPERMARKET BILLING


SYSTEM
import java.util.ArrayList;
import java.util.Scanner;

public class SupermarketBilling {


public static void main(String[] args) {
ArrayList items = new ArrayList();
Scanner scanner = new Scanner(System.in);
double total = 0;
double subTotal = 0;
double tax = 0;
double discount = 0;
double finalTotal = 0;

System.out.println("Welcome to the Supermarket Billing System");


System.out.println("Enter the item details:");

while (true) {
System.out.print("Enter item name: ");
String itemName = scanner.next();
if (itemName.equalsIgnoreCase("exit")) {
break;
}
System.out.print("Enter item quantity: ");
int itemQuantity = scanner.nextInt();
System.out.print("Enter item price: ");
double itemPrice = scanner.nextDouble();
Item item = new Item(itemName, itemQuantity, itemPrice);
items.add(item);
subTotal += itemQuantity * itemPrice;

System.out.println("Item: " + itemName + ", Quantity: " + itemQuantity + ", Price: Rs " + itemPrice);
}

Dept. Of CSE , BGSIT, B G NAGARA


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

System.out.print("Enter the tax rate(%): ");


double taxRate = scanner.nextDouble();
tax = (taxRate * subTotal) / 100;
System.out.print("Enter the discount amount(Rs): ");
discount = scanner.nextDouble();

finalTotal = subTotal + tax - discount;


System.out.println("Subtotal: Rs " + subTotal);
System.out.println("Tax: Rs " + tax);
System.out.println("Discount: Rs " + discount);
System.out.println("Total: Rs " + finalTotal);
}
}

class Item {
private String name;
private int quantity;
private double price;

public Item(String name, int quantity, double price) {


this.name = name;
this.quantity = quantity;
this.price = price;
}

public String getName() {


return name;
}

public int getQuantity() {


return quantity;
}

public double getPrice() {


return price;
}
}
lOMoARcPSD|42436405

Supermarket Billing System 2023-24

Dept. Of CSE , BGSIT, B G NAGARA Page | 19


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

6.2 MODULE DESCRIPTION


In our project we have mainly two modules. They are:

1. Customer
2. Administrator
3. Exit

1. CUSTOMER:
Customer is one of the modules in our project. They can purchase the available
product. The product number will be shown by the administrator. Using the product number,
they can purchase and they can enter the amount of quantity they required after completion
the admin will generate the total price of the product with discount and he also generate the
bill of the particular product to the customer. The steps involved are:-

1. Enter the product number of the product from the list.


2. Enter the quantity.
3. Then place your order.

2. ADMINISTRATOR:
Administrator plays a major role in our project. They are responsible to create a
product and delete new product and they can modify the product and view and they can
check the product after modification or altering the project.

Initially the administrator of the system will add the amount of the particular product
after entering the details of the product and he can also add the discount of a particular
product. The administrator module consists of the following options:

1. Create a product.
2. Modify a product.
3. Delete a product.
4. View product menu.
5. Back to the main menu.

Dept. Of CSE , BGSIT, B G NAGARA Page | 21


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

The functions used in this project are: -

1. createpr() – This function is used to create new product, with name, price and
discount by the administrator.
2. showpr() – This function is used by the administrator to see the product list, with
description and price.
3. writepr() – This function writes the information about the product in the file.
4. disp() – This function is used to display all record from the file.
5. dispsp() – This function is used to read specific data/records based on the product
number entered by the file.
6. modifypr() – This function is used modifies the product details by entering the
product number.
7. deletepr() – This function is used to delete the product by entering the product
number.
8. menu() – Display all product price list.
9. placeorder() – Function to place order and generating bill for product.
10. into() – This function displays the project name.
11. admin() – This function displays a list of function to be operated by administrator
to modify/update product details.
12. main() – This is the main function which just the MAINMENU from where the
control is transferred to other functions.

Dept. Of CSE , BGSIT, B G NAGARA Page | 22


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

CHAPTER 7

DATABASE DESIGN
The data in the system has to be stored and retrieved from database. Designing the
database is part of system design. Data elements and data structures to be stored have been
identified at analysis stage. They are structured and put together to design the data storage
and retrieval system. A database is a collection of interrelated data stored with minimum
redundancy to serve many users quickly and efficiently. The general objective is to make
database access easy, quick, inexpensive and flexible for the user. Relationships are
established between the data items and unnecessary data items are removed. Normalization is
done to get an internal consistency of data and to have minimum redundancy and maximum
stability. This ensures minimizing data storage required, minimizing chances of data
inconsistencies and optimizing for updates. The MS Access database has been chosen for
developing the relevant databases.

1. ADMINISTRATION TABLE

Field Name Data Type Description


Admin Char Primary key

2. CUSTOMER TABLE
Field Name Data Type Description
Customer Char Primary key

3. PRODUCT TABLE

Field Name Data Type Description


Number Int Product’s Number
Name Char Product’s Name
Price Float Product’s Price
Quantity Float Product’s Quantity
Discount Float Product’s Discount

Dept. Of CSE , BGSIT, B G NAGARA Page | 23


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

CHAPTER 8

SYSTEM TESTING AND IMPLEMENTATION


A process of executing a program with the explicit intention of finding errors, that is making
the program fail.

SOFTWARE TESTING

It is the process of testing the functionality and correctness of software by running it.
Process of executing a program with the intent of finding an error.

A good test case is one that has a high probability of finding an as yet undiscovered
error. A successful test is one of that uncovers an as yet undiscovered error.

Software Testing is usually performed for one of two reasons

 Defect detection
 Reliability estimation

BLACK BOX TESTING

Applies to software or module, tests functionality in terms of inputs and outputs at


Interface. Test reveals if the software is fully operational with reference to requirements
specification.

WHITE BOX TESTING

Knowing the internal working i.e., to test if all internal operation is performed
according to program structure and data structures.

8.1 TESTING OBJECTIVE

The main aim of testing is to uncover a host of errors, systematically and with
minimum effort and time. Starting formally, we can say, Testing is process of executing a
program with the intent of finding an error. A successful test is one that uncovers an as yet
undiscovered error. Good case test is one that has a high probability of finding errors, if it
exists. But there is one thing that testing cannot do testing cannot show the absence of defects
it can only show that software defects are present. As the test results are gathered and
evaluated, they begin to give a qualitative indication of the reliability of the software.

Dept. Of CSE , BGSIT, B G NAGARA Page | 24


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

8.2 TEST PLAN

The importance of software testing and its implementations cannot be


overemphasized. Software testing is a critical element of Software Quality Assurance and
represents the ultimate review of the specifications, design and coding.

8.2.1 TESTING AND RESULT

The process of testing is to discover the errors. Testing is the process of trying to
discover every conceivable fault or weakness in a work product. It provides a way to check
the functionality of components, sub-assemblies. It is the process of exercising software with
the intent of ensuring that the software system meets its requirements and user expectations
and does not final in an unacceptable manner.

TYPES OF TESTING

1. UNIT TESTING

The first level of testing is called unit testing. In this, different modules are tested against
the specification produced during design for the modules. Unit testing is essentially for
verification of the code produced during the coding phase, and hence the goal is to test the
internal logic of the modules. It is typically done by the programmer of the module. A
module is considered for integration and use by others only after it has been unit tested
satisfactorily.

2. INTEGRATION TESTING

The next level of testing is often called integration testing. In this, many units tested
modules are combined into subsystems, which are then tested. The goal here is to see if the
modules can be integrated properly. Hence, the emphasis is on testing interfaces between
modules. This testing activity can be considered testing the design.

3. SYSTEM TESTING

Here the entire software system is tested. The reference document for this process is the
requirements document, and the goal is to see if the software meets its requirements. This is
essentially a validation exercise, and in many situations, it is the only validation activity.
System testing is also known as black box testing and it is conducted to test the functionality
of the system that is behaving as expected
lOMoARcPSD|42436405

Supermarket Billing System 2023-24

Dept. Of CSE , BGSIT, B G NAGARA Page | 25


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

4. ACCEPTANCE TESTING

Acceptance testing is sometimes performed with realistic data of the client to demonstrate
that the software is working satisfactorily. Testing here focuses on the external behaviour of
the system. The internal logic of the program is not emphasized. Mostly functional testing is
performed at these levels.

8.2.2 TESTING STRATERGIES

Field testing will be performed manually and functional tests will be written in detail.

Test Objectives:

 All fields entries must work properly.


 Pages must be activated from identified link.

Features to be tested:

 Verify that the entries are of the correct format.


 All entries should take to the correct page.

Test case design related to our project as follows

 Information maintenance system requirements


 The admin shall be able to search or access all the information from the file.
 The system shall provide appropriate information about the product.
 Every information details are verified and store to the file.

Over all testing process for our application is as follows

 Each individual module is tested for good results.


 Product name should contain only characters and not contain digits.
 Product number should contain only numbers not alphabets.
 Product price contain floating numbers not characters.
 Product quantity contain only numbers not alphabets.
 Product discount contains floating numbers.

Dept. Of CSE , BGSIT, B G NAGARA Page | 26


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

8.2.3 TEST CASE:


Test Test Case Test Case Expected Actual Value Result
Case ID Name Description Value
1 Customer 1. Run the 1.Value must 1. Value must be Pass
request application. be taken. taken.

2. All the 2.Next page 2. Next page


fields should should be should be
be filled. displayed. displayed.
2 Product search 1.Run the 1.Option 1. Option must Pass
application must be be taken.
taken.

2.Next page 2. Next page


should be should be
displayed displayed
3 Admin insert 1.Run the 1. All the 1. All the values Pass
application values should be
should be inserted.
inserted.

2. Data 2. Data should be


should be stored in
stored in Database.
Database.

Dept. Of CSE , BGSIT, B G NAGARA Page | 27


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

CHAPTER 9

SNAPSHOTS OF RESULT

Fig 10.1: Menu


lOMoARcPSD|42436405

Supermarket Billing System 2023-24

CONCLUSION
After we have completed the project, we are sure the problems in the existing system
world overcome. The “Supermarket Billing System” process made computerized to reduce
human errors & to increase the efficiency. The main focus of this project is to fewer human
efforts. The maintenance of the records is made efficient, as all the records are stored in the
access database, through which data can be retrieved easily. The navigation control is
provided in all the forms to navigate through the large number of records. If the numbers of
records are very large than user has to just type in the search string & user gets the results
immediately. The editing is also made simples. The user has to just type in the required field
& process the modify button to update desired field. Our main aim of the project is to get the
correct bills and maintain the data of the supermarket.
lOMoARcPSD|42436405

Supermarket Billing System 2023-24

Dept. Of CSE , BGSIT, B G NAGARA Page | 32


lOMoARcPSD|42436405

Supermarket Billing System 2020-2021

REFERENCES

www.google.com

www.wikipedia.com

www.youtube.com

some resources are from few text books and other websites.

Dept. Of CSE , BGSIT, B G NAGARA Page | 33

You might also like