0% found this document useful (0 votes)
157 views24 pages

Supermarket Program Development Guide

The document provides details about a software project for a supermarket program. It includes a cover page, contents page, and sections on acknowledgements, introduction, project description, program design with flowchart and pseudocode, sample input/output screens, limitations, further development, and conclusion. The program is designed to manage the supermarket's operations through features like adding new products, staff, and transaction processing with receipt printing.

Uploaded by

Ghaleb Wasel
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
157 views24 pages

Supermarket Program Development Guide

The document provides details about a software project for a supermarket program. It includes a cover page, contents page, and sections on acknowledgements, introduction, project description, program design with flowchart and pseudocode, sample input/output screens, limitations, further development, and conclusion. The program is designed to manage the supermarket's operations through features like adding new products, staff, and transaction processing with receipt printing.

Uploaded by

Ghaleb Wasel
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Supermarket Program

Software Development
Cover Page
Individual Project
Instruction:

 Marks will be awarded for good presentation and thoroughness in your approach.

 Complete this cover page (page 1) and attach it to your project – THIS MUST BE YOUR FIRST PAGE in
your hard copy documentation.

Student declaration:

I declare that:  I understand what is meant by plagiarism


 The implication of plagiarism have been explained to us by our
lecturer
 This project is all my work and I have acknowledged any use of the
published or unpublished works of other people.

Signature: Date:

Ghadawi Page 1
Supermarket Program

Total number of pages including this cover page: Class Code:

Submission Date
Due Date:

Students
Full Name
(Indicate Student
ID in brackets)

Total number of pages including this cover page.

Ghadawi Page 2
Supermarket Program

Contents Page
1- Acknowledgements…………………………………………………………………………………………………….4
2- Introduction………………………………………………………………………………………………………………..5
3- Project Description……………………………………………………………………………………………………..6
4- Program Design…………………………………………………………………………………………………………..7
Flowchart…………………………………………………………………………………………………………….7
Pseduocode…………………………………………………………………………………………………………8
5- Sample Input Output Screens………………………………………………………………………………………9
6- Limitations…………………………………………………………………………………………………………………..15
7- Further Development…………………………………………………………………………………………………..16
8- Conclusion……………………………………………………………………………………………………………………17
9- Appendices…………………………………………………………………………………………………………………..17
Gantt Chart…………………………………………………………………………………………………………..17
Source code………………………………………………………………………………………………………….18
Reference……………………………………………………………………………………………………………..

Ghadawi Page 3
Supermarket Program

Acknowledge
First and foremost, I want to thank my lecture Sunita for her helping me a lot to create this
programmed. She encourages us to study visual basic hardly and she gives us more practices to
improve us to work with visual basic easily. Also, I thank her for her teaching us because she
was very helpful and try to understand us as possible as she can. I am very interested to study
visual basic language especially with my lecture Sunita.

I want to think my roommate Saleem for his helping me a lot to create this programmed. He
tried his best with me to teach me using database access with visual basic.

Also, I want thank all the family for their belief in and support over the years.

Finally, I thank high education ministry in Yemen for their help to send me to continue my
high education here in Malaysia.

Ghadawi Page 4
Supermarket Program

Introduction
Nowadays, there are many big business companies fed up with using manually dealing for
their business. They are usually asking for technology system to organize their work and to
provide faster method for their business. Also, small business shops are asking about technology
system to manage their work. In addition, there are many software programs able to organize the
system for the business companies. On the other hand, there are many program languages to
provide software program such as java, visual basic and C+.

We are required to create small program for supermarket to manage their system and to get
faster method to be easy for using. The purpose of using the software program to organize the
system and reduce the workers in the supermarket. Also, to create a technology account this can
give high output.

In summary, many companies look for program to organize their work and to increase their
income to gets more benefits and profits.

Ghadawi Page 5
Supermarket Program

Project description
 Hardware
Computers machinery and equipments, as opposed to the programs that make computers work.
The program needs some hardware to function the program as a follow

Name Description
1 Computers To install the program to work in the computer.
2 Printer To print the bill for the customer and report.
3 Fax To send receive information

 Software
The sets of programs that tell a computer how to do a particular job. The program needs some
software which will provide the program and to function it on the computer. We will explain the
software as a follow:
Name Description
1 Windows Microsoft XP To function the computer
2 Microsoft Office 2007 To manage the computer and save the documents.
3 Microsoft Visual Basic To do the program in the Visual Basic Language.

In brief, the program needs all these equipments to function the program and the system
administrator will install the program in the computer.

Ghadawi Page 6
Supermarket Program

Program Design
 Pseduocode
Begin
Enter username and password

Read username and password

If username and password Administrator Then

Add New Staff

Add New Product

Add New Type Code

Else

Cashier

Endif

Receive the products from customer

Read product code

Calculate the Price

If Total Price > 100 Then

Total – (Total * 15/100)

Else

Actual Total

Endif

Print the bill, save customer order

Print the total cash per month

End

Ghadawi Page 7
Supermarket Program

 Flowchart
Begin

Enter
Username.
Password

Read
Username,
Password

If Username, Password =
Adminstrator

Add New Product Cashier

Enter Pecode
Read Pecode
Add New Typecode

Calculate the
Price

Add New Staff

If Total Price > 100

Total Price –
Actual Price (Total Price*15/
100)

End

Ghadawi Page 8
Supermarket Program

Sample Input Output Screens

This form for the


Administrator and
Cashier to access the
program each one
has his username
and password. The
program does not
allow to anyone to
access the program.
If he does not have
the correct
username and
password.

This form for the


Administrator to add
new product, add
new typecode and
add new staff.

Ghadawi Page 9
Supermarket Program

This form for the Administrator to add new product, update new product or delete Product.

Ghadawi Page 10
Supermarket Program

This form for the Administrator to add new type code or delete type code from the program.

Ghadawi Page 11
Supermarket Program

This form for the Administrator to add new staff to the supermarket. The Administrator is able to add
new cashiers and administrators. The Administrator also able to delete cashiers or administrator from
the system.

Ghadawi Page 12
Supermarket Program

This Form for the Cashier to calculate the payment for the customers. It allows the cashier to receive the
products from customers and generate a sales receipt. Each item has its own product code. Also, it
allows the cashier to select the product code from the system and display the price. In addition, the
program will generate a customer’s sales receipt.

Ghadawi Page 13
Supermarket Program

Limitations
The Process of controlling the program. The supermarket program able to receive the
products from customers and generate a sales receipt. Each item has its own product code. Also, the
administrator of the program can add , delete and update product, type Code and staff to the program.
In addition, this program can organize the supermarket and it will be easy for the cashiers to do their
work easily and faster.

On the other hand, the system of the program does not have form for the administrator to add
the original price for the goods and also for the companies which supply the supermarket with goods. In
addition, the program cannot control the process of buying the goods. Also, it cannot research in the
goods. The program cannot make reports about gods and kind of factories.

In summary, the limitation of the supermarket program shows what thing can the program control and
what thing the program cannot control or did not depend them. Also, the limitation of the program is
showing the ability of the program.

Ghadawi Page 14
Supermarket Program

Further Development
In This program the development is the process of gradually becoming bigger, better, strong or more
advanced. We suggest some further developments for the supermarket program which can manage the
system program and will provide more benefits for the supermarket program.

1. The program should provide form for the control for the buying and selling the goods to be easy
for the Administrator to know the profit for the supermarket.
2. The Program has to provide form for search for the product in system.
3. The program has to provide Report for each day for selling to know how much the supermarket
pay per a day.
4. The program has to provide printer and fax which are connecting with the program. It will allow
the cashier to print the bill for the customers and also to gets information about price of the
new product in fax or send Information to any company which have dealing with the
supermarket.

In short, the cashier will do his work efficiency and accuracy because he uses the program to
calculate the payment. As a result, the administrator will control the program and also will be easy for
him to do his work. It will allow him to search in the product and to print report for the product and also
for the profit for the supermarket.

Ghadawi Page 15
Supermarket Program

Conclusion
In short, the program has already done. We spent some times to do. We provide Technology
Program for the supermarket to organize its work and it will be easy for using. The cashier can calculate
the payment for the sales easy and in short time. Also, the cashier will print the bill for the customers.
On the other hand, the Administrators are able to add product for the supermarket and delete. Also,
they can add new staff for the supermarket. By providing this program, we learn a lot of thing about
programming aseptically using Visual basic Programming. As a result, we learn more about database and
how can we connect it with Visual Basic. The most important, we get more experience about using
Visual Basic Language.

Ghadawi Page 16
Supermarket Program

Appendices
 Gantt Chart

Ghadawi Page 17
Supermarket Program

Source Code
Code for the login

Imports [Link]
Public Class Form1
Dim inc As Integer
Dim MaxRows As Integer

Dim ds As New DataSet


Dim da As [Link]
Dim sql As String
Private Sub Button1_Click(ByVal sender As [Link], ByVal e As
[Link]) Handles [Link]
Dim con As New [Link]
[Link] = "PROVIDER=[Link].4.0;Data Source =
C:\Users\ghadawi\Documents\[Link]"
[Link]()

sql = "SELECT * FROM login"


da = New [Link](sql, con)
[Link](ds, "login")

[Link]()

MaxRows = [Link]("login").[Link]

For [Link] = 0 To MaxRows - 1

If [Link]("login").Rows(inc).Item(0) = [Link] And


[Link]("login").Rows(inc).Item(1) = [Link] And "Administrator" =
[Link]("login").Rows(inc).Item(5) Then
[Link]()
[Link]()

Exit Sub
ElseIf [Link]("login").Rows(inc).Item(0) = [Link] And
[Link]("login").Rows(inc).Item(1) = [Link] And "Cashier" =
[Link]("login").Rows(inc).Item(5) Then

[Link]()
[Link]()
Exit Sub

End If

Next inc
MsgBox("Invalid Username and Password or userType",
[Link], "Error")

End Sub

Ghadawi Page 18
Supermarket Program
Private Sub Button2_Click(ByVal sender As [Link], ByVal e As
[Link]) Handles [Link]
[Link]()
End Sub
Form2 for the Admin

Public Class Form2

Private Sub Button1_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link]()
[Link]()
End Sub

Private Sub Button2_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link]()
[Link]()
End Sub

Private Sub Button3_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link]()
[Link]()
End Sub

Private Sub Button4_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link]()
End Sub

Form3

Class Form3
Dim inc As Integer
Dim MaxRows As Integer
Dim con As New [Link]
Dim ds As New DataSet
Dim da As [Link]
Dim sql As String
Private Sub PaymentBindingNavigatorSaveItem_Click(ByVal sender As
[Link], ByVal e As [Link])
[Link]()
[Link]()
[Link](Me.Assignment1DataSet)

End Sub

Private Sub PaymentBindingNavigatorSaveItem_Click_1(ByVal sender As


[Link], ByVal e As [Link]) Handles
[Link]
[Link]()
[Link]()
[Link](Me.Assignment1DataSet)

Ghadawi Page 19
Supermarket Program
End Sub

Private Sub Form3_Load(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
'TODO: This line of code loads data into the
'[Link]' table. You can move, or remove it, as needed.
[Link]([Link])

End Sub
Private Sub Button2_Click(ByVal sender As [Link], ByVal e As
[Link]) Handles [Link]
Dim counter As Integer
Dim transactionNo As Integer
Dim daten As String
Dim Pecode As Integer
Dim typecode As Integer
Dim description As String
Dim cost As Integer
counter = [Link]
transactionNo = [Link]
daten = [Link]
Pecode = [Link]([Link])
typecode = [Link]([Link])
description = [Link]([Link])
cost = [Link](cost)
MsgBox("countre =" + counter + vbCrLf + "TransactionNo =" +
transactionNo + vbCrLf + "date =" + daten + vbCrLf + "Pecode =" + Pecode +
vbCrLf + "Typecode =" + typecode + vbCrLf + "Description =" + description +
vbCrLf + "Cost =" + cost + vbCrLf)

End Sub

Private Sub Button1_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link] = "PROVIDER=[Link].4.0;Data Source =
C:\Users\ghadawi\Documents\[Link]"
[Link]()

Sql = "SELECT * FROM Product1"


da = New [Link](Sql, con)
[Link](ds, "Product1")

[Link]()

MaxRows = [Link]("Product1").[Link]

For [Link] = 0 To MaxRows - 1


If [Link]("Product1").Rows(inc).Item(2) = [Link] Then
[Link] = [Link]("Product1").Rows(inc).Item(1)

[Link] =
[Link]("Product1").Rows(inc).Item(3)
[Link] = [Link]("Product1").Rows(inc).Item(4)

Ghadawi Page 20
Supermarket Program

[Link]([Link])
[Link]([Link])
[Link]([Link])
[Link]([Link])

[Link] = Val([Link])
If [Link] > 100 Then
[Link] = "15%"
[Link] = [Link] - ([Link] * 15 / 100)
Else
[Link] = "0%"
[Link] = [Link]
End If
Exit Sub
End If
Next inc

MsgBox("Invalid Typecode or Empty Value")

End Sub

Form4

Public Class Form4

Private Sub ProductBindingNavigatorSaveItem_Click(ByVal sender As


[Link], ByVal e As [Link]) Handles
[Link]
[Link]()
[Link]()
[Link](Me.Assignment1DataSet)

End Sub

Private Sub Form4_Load(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
'TODO: This line of code loads data into the
'[Link]' table. You can move, or remove it, as needed.
[Link]([Link])

End Sub

Private Sub Button1_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link]()
End Sub

Private Sub Button2_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]

Ghadawi Page 21
Supermarket Program
[Link]()
[Link]()
End Sub

Form4

Public Class Form5

Private Sub Product1BindingNavigatorSaveItem_Click(ByVal sender As


[Link], ByVal e As [Link]) Handles
[Link]
[Link]()
[Link]()
[Link](Me.Assignment1DataSet)

End Sub

Private Sub Form5_Load(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
'TODO: This line of code loads data into the
'Assignment1DataSet.Product1' table. You can move, or remove it, as needed.
[Link](Me.Assignment1DataSet.Product1)

End Sub

Private Sub Button1_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link]()
End Sub

Private Sub Button2_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link]()
[Link]
End Sub

Form6

Public Class Form6

Private Sub LoginBindingNavigatorSaveItem_Click(ByVal sender As


[Link], ByVal e As [Link]) Handles
[Link]
[Link]()
[Link]()
[Link](Me.Assignment1DataSet)

End Sub

Private Sub Form6_Load(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
'TODO: This line of code loads data into the
'[Link]' table. You can move, or remove it, as needed.
[Link]([Link])

End Sub

Ghadawi Page 22
Supermarket Program

Private Sub Button2_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link]()
End Sub

Private Sub Button1_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link]()
[Link]()
End Sub

Ghadawi Page 23
Supermarket Program

References
Book

1- Visual Basic 6.0 Diae Zk

Website
[Link]

References

Ghadawi Page 24

You might also like