Professional Documents
Culture Documents
PROJECT REPORT
ON
FAST-FOOD MANAGEMENT SYSTEM
PROJECT SUPERVISOR:
SUBMITTED BY:
MISS.NEHA SABHARWAL
MOHD SHOUAIB
E.No 16312401710
DECLARATION
hereby
declare
that
this
Project
Report
titled
FAST-FOOD
_______________________
MOHD SHOUAIB
16312401710
Date: / / 2012
_______________________
MISS.NEHA SABHARWAL
Project Guide
Date: / / 2012
ACKNOWLEDGEMENT
First of all I will thank to our director sir Dr. NARENDER MOHAN, who give
me the valuable suggestion for my minor project.
The success of this final report is the outcome of Guidance and Valuable
suggestions provided by the all concerned without which the report could not fide
on the right back.
CONTENTS
S.No
CONTENTS
Declaration
2
3
Acknowledgement
Introduction
Requirement analysis
Problem Definition
Scope and Objectives of the project
System Methodology (Waterfall Model)
Analysis
Feasibility study
Data flow diagrams (DFDs)
0 Level DFD
1 Level DFD
2 Level DFD
System Design
Hardware and Software Requirements
Menu Design
Database Design
Coding
Input Output Screens
Testing
Conclusion
10
11
Limitations
Bibliography
OBJECTIVE
Objective of this software is to computerize any Fast-food Restaurant, so
that all the transactions become fast and there should not be any error in
transactions like calculation mistake. It replaces all the paper work. It
keeps records of all the bills also, given to the customers, so that user
could update his daily accounts.
INTRODUCTION
This project is entitled PIZZA HUT which is very famous spot for people of
all age group. Due to increasing popularity of Pizza Hut, it needs to get all the
work and procedures automated which eventually decreases the burden along with
whole lot of improvement in working manner. Hence, in order to accomplish this
task, the software is prepared to perform bulk amount data and sorting procedures.
As the time taken in dealing with the problem is quite large, so, we need to prepare
software to solve these problems.
The software for department of pizza hut is developed in Visual Basic because
of the fact that it is one of the leading programming language as well as more
powerful, easy to understand and user-friendly. Visual Basics helps to design
database files as per requirement and specific format. It also helps us to enter and
manage data in database files.
1.
2.
3.
4.
5.
Visual Basic
Visual Basic was derived from BASIC, and is an event-driven programming
language. Programming in Visual Basic is done visually, which means that as we
design, we will know how our application will look on execution. We can therefore
change and experiment with the design to meet our requirement.
These editions of Visual Basic are available:
Standard
Professional
Enterprise
The properties window will display the property of only one object at a time.
MS ACCESS
Microsoft access calls anything that can have a name and object. Within an access
database, the main objects are tables, queries, forms, reports, data access pages,
macros, modules.
DATABASE
A database is files in which you store data include all the major objects related to
the stored data; including objects you define to automate the use of your data. In
other database systems, the term database used to refer to only those files in which
you store data.
TABLE
An object you define and use to store data. Each table contains information about a
particular subject, such as customers or orders. Table contains fields (or columns)
that store different kinds of data, such as a name or an address, and, record (or
rows) that collect all the information about a particular instance of the subject.
E.g. All the information about a company
QUERY
Query in an object that provides a custom view of data from one or more table. In
Access, you can use the graphical query by example (QBE) facility or you can
write SQL statements to create your queries. You can define queries to select,
update, insert, or delete data. You can also define queries that create new tables
from data in one or more existing table.
FORM
An object designed primarily for data input or display or for control of application
execution. You use forms to customize the presentation of data that your
application extracts for queries or tables. You can also print forms. You can design
a form to run a macro or a Visual Basic procedure in response to any of a number
of events- for eg, to run a procedure when the of data changes.
REPORT
An object designed for formatting, calculating, printing and summarizing selected
data. You can view a report on your screen before you print it.
MACRO
Macro is an object that is a structured definition of one or more action that you
want Access to perform in response to a defined event. For eg, you might design a
macro that opens a second form in response to the selection of an item on a main
form. You might have another macro that validate the content of a field whenever
the value in the field changes. You can include simple conditions in macros to
specify when one or more actions in the macro should be performed or skipped.
You can use macros to open and execute queries, to open tables, or to print or view
reports. You can also run other macros or Visual Basic procedures from within a
macro.
MODULE
it is an object containing custom procedures that you code using Visual Basic.
Modules provide a discrete flow of actions and allow you to trap errors something
that you cant do with macros. Modules can be stand-alone objects containing
functions that can be called from anywhere in your application, or they can be
directly associated with a form or a report to respond to events on the associated
form or report. Table stores the data that you can extract with queries and display
in reports and update in forms or data access pages. Notice that forms, reports, and
data access pages can use data either directly from tables or a filtered view of the
data created by using queries. Access has also built-in functions that allow you to
summarize and format your data in queries.
EVENT
Event is any change in state of an Access object.
For eg, you can write macros or Visual Basic procedures to respond to
Opening a form
Closing a form
Entering a new row on a form
Changing data in the current record
CONTROL
Control is an object on a form or report that contains data. You can even use design
a macro or a Visual Basic procedure that responds to the user pressing individual
keys on the keyboard when entering data.
METHODOLOGY
The methodology used to develop the Pizza Hut or proposed system is waterfall
model.
WATERFALL MODEL
Its also known as Linear Sequential model or the classic life cycle model. This
model suggests a systematic, sequential approach to the software development that
begins at the system level and progresses through analysis, design, development
and coding, testing and maintenance.
The model acquires its name from the fact the classic software cycle is represented
as a sequencing of descending steps like Waterfall.
Feasibility
study
Requiremen
t Definition
Design
specification
Coding
Testing
Implementati
on
Maintenance
REQUIREMENT ANALYSIS
SYSTEM REQUIREMENTS
Hardware Requirement
Software Requirement
ANALYSIS
Analysis is the first technical step in the process of any software development. A
careful analysis can help the software designer and programmer to have a better
insight of the product to be created. A careless analysis can result into incomplete
or dysfunctional software. To avoid such a situation it is very important to properly
identify the required softwares features and create an effective design for it.
It is also important to analyze and find out whether the application being developed
suits the current hardware and software platform available or not. The application
should be developed well within time and should meet the specified requirements.
If the application is being developed for commercial purposes then a cost-benefit
analysis becomes must to find out the real value of the software product.
An Object-Oriented approach will be followed to develop the application because
the data or information to be displayed and the user who will view that information
are more important here than the process flow of the system. This methodology
will also make the development process more efficient, effective and easy. The
application thus developed will be more user friendly and can be easily extended or
modified whenever required.
It is to be kept in the mind that during observations the observer has to listen more
than talk and to listen with sympathetic and genuine interest when information is
being conveyed.
Direct method: A direct observation takes place when the analyst actually
observes the subject or the system at work.
FEASIBILITY STUDY
Feasibility Considerations:
There are three key considerations to the feasibility study:
1) Economic
2) Technical
3) Behavioral
Economic Feasibility:
Economic analysis is the most frequently used method for evaluating the
effectiveness of the candidate system. The project was considered to be
economically feasible because The cost involved in developing the candidate system well under the budget
of the organization.
The Cost-Benefit Analysis tells us that the value of the benefits offered by
the proposed system is much higher than the cost.
Technical Feasibility:
Technical feasibility centers around the existing computer system (Hardware and
Software etc) and to what extend it support the proposed addition. For example, if
the current computer is operating at 80 percent capacity - an arbitrary ceiling - then
running another application could overload the system or require additional
Hardware. This involves financial considerations to accommodate technical
enhancements. So this proposed system is technically feasible because all the
necessary hardware and software required for developing and installing the system
is available with the organization.
Operational Feasibility: This Application is very easy to operate as it is made user friendly with the help of
very effective GUI tools. Main consideration is users easy access to all the
functionality of the Application. Another main consideration is here is that whether
user organization is trained enough to use the newer application.
Behavioral Feasibility:
People are inherently resistant to change, and computers have been known to
facilitate change. An estimate should be made of how strong a reaction the user
staff is likely to have toward the development of a computerized system. Therefore
it is understandable that the introduction of a candidate system requires special
efforts to educate and train the staff. The software that is being developed is user
friendly and easy to learn. In this way, the developed software is truly efficient and
can work on any circumstances, tradition, locales.
Behavioral study strives on ensuring that the equilibrium of the organization and
status quo in the organization neither are nor disturbed and changes are readily
accepted by the users.
E-R diagram
Emp_co
de
Cust_id
Emp_na
me
Cust_na
me
Cust_ad
d
designat
ion
Custom
er
Cust_no
ord
ers
salary
Employ
ee
Emp_do
j
Emp_ad
d
bu
ys
pa
ys
se
lls
Bill_no
Bill
Item
Item_na
me
date
Item_pri
ce
time
Add_ta
x
Pay_mo
de
Max_a
mt
quantit
y
ITEM MANAGER
Receive item
Details
PIZZA HUT
MANAGEM
ENT
SYSTEM
Data
Base
Data Access
Data Storage
Custome
r
Purchase items,
Request for Item menu
Report
s
Add Item
Customer
Purchas
e Item
Delete
Item
Receiv
e Bill
PIZZA HUT
AUTOMATI
ON
SYSTEM
Modify
Item
Request
Data Access
Data
Storage
Reque
st item
menu
Item Manager
Dat
a
Bas
e
Report
s
8
Calculate bill
Add Item
3 Billtrans
1 Bill
2 Item
Purchas
e Item
Customer
Delete
Item
2 Item
Reque
st item
menu
Print
Modify
Item
2 Item
Receiv
e Bill
Item Manager
Request
7
Print
1 Bill
Print
3 Billtrans
1 Bill
Report
s
8
Calculate bill
3 Billtrans
DATA STRUCTURE
Four tables have been used in this project:
Name
Price
BillNo
DateofBill
Price
Quantity
: Quantity purchased.
CustName (Character)
Amount
BillNo
Price
Quantity
: Quantity purchased.
Amount
: Total amount.
User can add new food items, modify or delete and existing food items from the
table- ITEM, by selecting forms ADDITEM and EDITITEM.
User can view list of food items by selecting option TODAYS MENU from the
MAIN form.
User can purchase items by selecting form SALES from the MAIN form, bill is
calculated and printed automatically after selecting items to purchase and stored
in the table- BILL.
User can view list of bills at the end of the day by selecting LIST OF BILLS report
the REPORTS form.
frmNewItem
frmModifyItem
frmDelete
frmSales
frmToday
frmPrintBill
frmMain
frmMenu
frmFileMaintenance
frmReports
frmDateWise
frmChangePassword
DateWise
repItemList
: List of Items.
ListofBills
repPrintBill
1.
With information that we have in the table - item, we can extract the list of
records of the items. Which provides the information like item code, item
name and item price.
2.
Using information in table - bill, we can extract the list of bills. Which
provides details about all the sales done it contains important information
like bill no, item code, item name, date of bill, customer name, quantity,
price and total bill amount. User can view date wise list of bills and single
customer bill also.
VALIDATION CHECKS
1.
Item code is checked whether exist in the file or not whenever user input,
while purchase, delete or modify.
2.
Validation for quantity is checked, customer should not purchase above the
available quantity.
IsNull(rsPass("Password")))
Or
End Sub
Me.txtTo.SetFocus
Exit Sub
End If
'Dim rsList As New ADODB.Recordset
'rsList.Open "select * from ListofBills where DoB >= cdate('" & Me.txtFrom.Text
& "') and DoB <= cdate('" & Me.txtTo.Text & "') order by DoB,BillNo", con,
adOpenDynamic
'Set repDatewiseBillList.DataSource = rsList
'repDatewiseBillList.Show vbModal
'rsList.Close
'Set rsList = Nothing
Dim acApp As Access.Application
Set acApp = New Access.Application
acApp.OpenCurrentDatabase App.Path & "\fastfood.mdb"
acApp.DoCmd.OpenReport "repPrintBill", acViewPreview, "select * from
PrintBill where DoB >= cdate('" & Me.txtFrom.Text & "') and DoB <= cdate('" &
Me.txtTo.Text & "')"
acApp.DoCmd.Maximize
acApp.Visible = True
End Sub
Private Sub Form_Load()
Me.txtFrom.Text = Date
Me.txtTo.Text = Date
End Sub
Me.cmbItemCode.ListIndex = 0
End If
Me.cmbItemCode.SetFocus
End Sub
Private Sub Form_Load()
Me.txtName.Enabled = False
Me.txtPrice.Enabled = False
Dim rsItemCode As New ADODB.Recordset
rsItemCode.Open "select ItemCode,Name from Item order by Itemcode", con,
adOpenDynamic
Do While Not rsItemCode.EOF
Me.cmbItemCode.AddItem rsItemCode("ItemCode").Value
rsItemCode.MoveNext
Loop
If Me.cmbItemCode.ListCount <> 0 Then
Me.cmbItemCode.ListIndex = 0
End If
rsItemCode.Close
Set rsItemCode = Nothing
End Sub
rsItemCode.MoveNext
Loop
If Me.cmbItemCode.ListCount <> 0 Then
Me.cmbItemCode.ListIndex = 0
End If
rsItemCode.Close
Set rsItemCode = Nothing
End Sub
End If
End Sub
Private Sub Form_Load()
Me.txtItemCode.Enabled = False
Me.txtName.Enabled = False
Me.txtPrice.Enabled = False
End Sub
Print Preview:-
BillNo="
&
Me.txtQuantity.SetFocus
Exit Sub
End If
Me.lstItemCode.AddItem Me.cmbItemCode.Text
Me.lstQuantity.AddItem Me.txtQuantity.Text
Me.lstPrice.AddItem Me.txtPrice * Me.txtQuantity.Text
t=0
For i = 0 To Me.lstPrice.ListCount - 1
Me.lstPrice.ListIndex = i
t = t + Val(Me.lstPrice.Text)
Next
Me.txtAmount.Text = t
Me.lstPrice.ListIndex = -1
End Sub
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub cmdPrintBill_Click()
'Dim rsBill As New ADODB.Recordset
'rsBill.Open "select * from ListofBills where BillNo=" & Me.txtBillNo.Text, con,
adOpenDynamic
'Set repPrintBill.DataSource = rsBill
'repPrintBill.Show vbModal
'rsBill.Close
'Set rsBill = Nothing
Dim acApp As Access.Application
Set acApp = New Access.Application
acApp.OpenCurrentDatabase App.Path & "\fastfood.mdb"
acApp.DoCmd.OpenReport "repPrintBill", acViewPreview, "select * from
PrintBill where BillNo=" & Me.txtBillNo.Text
acApp.DoCmd.Maximize
acApp.Visible = True
End Sub
Private Sub cmdRemove_Click()
If Me.lstItemCode.ListIndex <> -1 Then
t = Me.lstItemCode.ListIndex
Me.lstItemCode.RemoveItem (t)
Me.lstQuantity.RemoveItem (t)
Me.lstPrice.RemoveItem (t)
t=0
For i = 0 To Me.lstPrice.ListCount - 1
Me.lstPrice.ListIndex = i
t = t + Val(Me.lstPrice.Text)
Next
Me.txtAmount.Text = t
Me.lstPrice.ListIndex = -1
End If
End Sub
Private Sub cmdSaleItem_Click()
If Me.cmdSaleItem.Caption = "&New Sale" Then
Me.cmdSaleItem.Caption = "&Sale Item"
Me.cmdAdd.Enabled = True
Me.cmdPrintBill.Enabled = False
Me.cmbItemCode.Enabled = True
Me.txtDoB.Enabled = True
Me.txtCustName.Enabled = True
Me.txtQuantity.Enabled = True
Me.txtCustName.Text = ""
Me.txtQuantity.Text = ""
Me.txtDoB.Text = Date
Me.txtAmount.Text = "0"
Me.lstItemCode.Clear
Me.lstPrice.Clear
Me.lstQuantity.Clear
Dim rsBillNo As New ADODB.Recordset
rsBillNo.Open "select BillNo from Bill order by BillNo desc", con,
adOpenDynamic
If Not rsBillNo.EOF Then
Me.txtBillNo.Text = rsBillNo("BillNo").Value + 1
Else
Me.txtBillNo.Text = 1
End If
rsBillNo.Close
Set rsBillNo = Nothing
If Me.cmbItemCode.ListCount <> 0 Then
Me.cmbItemCode.ListIndex = 0
End If
Me.cmbItemCode.SetFocus
Else
If Me.txtDoB.Text = "" Then
MsgBox "Please input Date."
Me.txtDoB.SetFocus
Exit Sub
End If
If Not IsDate(Me.txtDoB) Then
MsgBox "Please input valid date."
Me.txtDoB.SetFocus
Exit Sub
End If
If Me.txtCustName.Text = "" Then
MsgBox "Please input Name of the Customer."
Me.txtCustName.SetFocus
Exit Sub
End If
If Me.txtQuantity.Text = "" Then
MsgBox "Please input Item Quantity."
Me.txtQuantity.SetFocus
Exit Sub
End If
If Not IsNumeric(Me.txtQuantity) Then
MsgBox "Please input Numeric."
Me.txtQuantity.SetFocus
Exit Sub
End If
con.Execute
"insert
into
Bill(BillNo,ItemCode,DoB,Quantity,Price,Amount,CustName)
values("
&
Me.txtBillNo.Text & "," & Me.cmbItemCode.Text & ",'" & Me.txtDoB.Text & "',"
& Me.txtQuantity.Text & "," & tmpPrice & "," & Me.txtAmount.Text & ",'" &
Me.txtCustName.Text & "')"
For i = 0 To Me.lstItemCode.ListCount - 1
Me.lstItemCode.ListIndex = i
Me.lstPrice.ListIndex = i
Me.lstQuantity.ListIndex = i
con.Execute "insert into BillTrans(BillNo,ItemCode,Quantity,Amount,Price)
values(" & Me.txtBillNo.Text & "," & Me.lstItemCode.Text & "," &
Me.cmbItemCode.Enabled = False
Me.txtDoB.Enabled = False
Me.txtCustName.Enabled = False
Me.txtQuantity.Enabled = False
Me.cmdPrintBill.Enabled = False
Me.cmdAdd.Enabled = False
Dim rsItemCode As New ADODB.Recordset
rsItemCode.Open "select ItemCode,Name from Item order by Itemcode", con,
adOpenDynamic
Do While Not rsItemCode.EOF
Me.cmbItemCode.AddItem rsItemCode("ItemCode").Value
rsItemCode.MoveNext
Loop
'If Me.cmbItemCode.ListCount <> 0 Then
'
Me.cmbItemCode.ListIndex = 0
'End If
rsItemCode.Close
Set rsItemCode = Nothing
End Sub
Me.cmbItemCode.AddItem rsItemCode("ItemCode").Value
rsItemCode.MoveNext
Loop
If Me.cmbItemCode.ListCount <> 0 Then
Me.cmbItemCode.ListIndex = 0
End If
rsItemCode.Close
Set rsItemCode = Nothing
End Sub
TESTING
Testing is a very critical activity that ensures the liability of a particular software
product. During this activity the software to be tested is executed with a set of
tests, and the output and functioning of the program are evaluated. It is done to
ensure whether the system meets the specified requirements or not.
Testing can bring forth some aspects that have not been considered or covered by
the developers. Testing a large program is a complex process that can be broken
down into two parts:
Unit testing
Integration testing
System testing
In the first case the different modules of the application are tested individually. In
case of system testing the software is tested as a whole. The system undergoes
several tests like:
Time tests
Performance tests
Memory tests
Input and output tests, etc.
Goal Testing Finally this test is performed to test whether the application
meets the goals, which were set before developing the application. Here it
must be ensured that the organization is satisfied with the working and
presentation of the application.
SUGGESTIONS
PIZZA HUT is large growing fast food centre in India and other countries also, it
becomes very difficult to keep records for large no. of items and customers and
calculating bills. This project is very useful in the fast-food management.
Limitations:
1.
2.
CONCLUSION
This project is designed to meet the requirements of a Pizza Hut Automation
System. It has been developed in Visual Basic and the database has been built in
MS-SQLSERVER only, keeping in mind the specifications of the system. Apart
from MS-SQLSERVER we could have also implemented other database software
like Oracle or Ms-Access.
For designing the system we have used simple data flow diagrams and E/R
diagrams.
1.
Using system analysis and design techniques like data flow diagram and E/R
diagram in designing the system.
2.
BIBLIOGRAPHY
Visual basic
Black book
Sumita Arora
Oracle
Evan Baross