FAST FOOD Management

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 68

FAST FOOD RESTAURANT

BANGALORE NORTH UNIVERSITY

A PROJECT REPORT ON
“FAST FOOD RESTAURANT MANAGEMENT SYSTEM”

Submitted by

5th SEM project report submitted in partial fulfilment of the


requirements for the award of degree in

BACHELOR OF COMPUTER APPLICATION


Under the Guidance of
S MR. SATYAJIT RAY
(Dept. of computer science)
SDC COLLEGE KOLAR

Smt. DANAMA CHANNABASAVAIAH COLLEGE OF ARTS ,COMMERCE,

SCIENCE & MANAGEMENT STUDIES

NH-75 ,KOLAR BYPASS NEAR KODIRAMASANDRA KOLAR-563101

(NAAC Accredited with ‘B’ Grade & affiliated to Bangalore North University )

1
FAST FOOD RESTAURANT

CERTIFICATE
Certificate that this project report titled "FAST FOOD " Based on the
project work jointly carried out by THIRUMALA DEVIKA.N and
SWAPNA.S Bearing Registration number R1911942 and R1911935
respectively of 5th semester BCA.
This report is submitted in partial fulfillment of the requirements for
the award of the Degree in Bachelor of Computer Applications by
Bangalore North University, during the Academic year 2022.

HOD
Mr. SATYAJIT RAY
(Dept. of computer science)

Examiners:
1.
2.

2
FAST FOOD RESTAURANT

ACKNOWLEDGEMENT
We take this opportunity to express our deep sense of gratitude to
our founder chairperson Smt. Usha Gangadhar.
Prof. Pushpalatha , Principal for her valuable guidance , keen interest
and help during the course of study.
We express our sincere thanks to our respected HOD Mr. Satyajit Ray
for providing all necessary help during our project work.
Last but not the least we would like to thank our friends, staff and all
others who have directly and indirectly helped us in the successful
completion of this project

TEAM MEMBERS:
SWAPNA.S
THIRUMALA DEVIKA.N

3
FAST FOOD RESTAURANT

CONTENTS

SERIAL NO CONTENT PAGE NO

01 INTRODUCTION 5-6
5-6
02 SYNOPSIS 7
7
03 SOFTWARE DEVELOPMENT CYCLE 8 - 12

04 FEASIBILITY STUDY 13 - 14
14 -15
05 SYSTEM ANALYSIS 15
16
06 SYSTEM DESIGN AND 16 – 33
REQUIREMENT
07 DATAFLOW DIAGRAM 34

08 ER DIAGRAM 35
09 SNAPSHOTS 36- 41
36-40
10 CODING 42-59
41-60
11 TABLES 60-62
-62
12 TESTING 63 – 65
64
13 IMPLEMENTATION STRATEGIES 66
14 CONCLUSION 66
15 FUTURE ENHANCEMENT 67

16 BIBLIOGRAPHY 68

4
FAST FOOD RESTAURANT

INTRODUTION
ABOUT THE PROJECT:
The main objective of “FAST FOOD RESTAURANT
MANAGEMENT” web Application is to manage
customer details, bill details, order details etc.. this is a
Desktop application project developed in VISUAL BASIC
6.0 as front end and ORACLE 10g as backend. The
operating system used to develop this project is
windows10.

PURPOSE:
The main purpose of this is that the food is served
quickly and the is inexpensive ,convenient ,and tastes
good.
Fast foods restaurants enable you to consumer ready to
eat, fresh, portion-controlled foods.
Fast food restaurant also known as a quick service
restaurant, it severs fast food cuisine.
The term “Fast Food” was recognized in a dictionary by
Merriam Webster in 1951.

5
FAST FOOD RESTAURANT

SYSTEM CONFIGURATION
IMPLEMENTATION:
This software has been implemented by using Visual
Basic as a front end and Oracle 10g as back end. The
operating system used to develop this project is
Windows 10(64-bit).

SOFTWARE REQUIREMENTS:
Operating system: Windows10 64-bit operating system
Front end: Visual Basic
Back end: Oracle 10g Express

HARDWARE REQUIREMENTS:
Processor: intel(R) Core TM i3-4005U CPU@1.70GHz
Monitor: any display unit
Hard disk:200GB and above
RAM: 4.00GB

6
FAST FOOD RESTAURANT

PROJECT SYNOPSIS

TITLE OF THE PROJECT:


“FAST FOOD RESTAURANT MANAGEMENT SYSTEM”

AIM OF THE PROJECT:


It is to provide a customer satisfying experience that includes
enjoyable food and relaxing atmosphere while an operation that is
efficient enough ,provide an outstanding Patron Experience ,Creating
a brand and to make money.
The project “FAST FOOD RESTAURANT MANAGEMENT SYSTEM” contains
10 Modules
They are as follows:

1. Login
2. Employee Home Page
3. Place Order
4. Payments
5. Billing
6. Admin Home Page
7. Menu
8. Employee Details
9. Users
10. Sales Report
REPORT:
It gives the data report about the fast food restaurant management System status.

7
FAST FOOD RESTAURANT

SOFTWARE DEVELOPMENT LIFE CYCLE

Software development process is also known as Software


Development Life Cycle (SD LC), is a structure imposed on the
development of a software product.

Principle stages of SDLC are:


Requirement analysis and definition
System and software design
Implementation and testing
Integration and system testing
Operation and maintenance

8
FAST FOOD RESTAURANT

Requirement analysis and definition:


After a feasibility study has been performed, the requirements
analysis which Includes the software system 's services, constraints
and goals established after consulting the system users.

System and Software Design:


Once the requirements for software have been documented, the
software system must be designed to meet them . The system design
process divides the requirements into either hardware or software
system .

Implementation and Unit Testing:


The process produces the actual code as a set of programs testing is
an integral and Important phase of software development.

Integration and System testing:


AII the modules or Individual programs that have been developed
and tested Individually are integrated and tested as a whole system
to ensure that the software requirements have been met.

Operation and Maintenance:


Operation phase involves Installation, customization testing and
evaluation.
Maintenance Involves correcting errors which were missed In the
earlier stages.

9
FAST FOOD RESTAURANT

Software process models:


Software process model is a simple description of software process.
Types of Software process models:

Waterfall Model
Spiral Model
Iterative Enhancement Model
Evolutionary Model
Agile Model

Waterfall Model (Linear Sequential Model):


The simplest model is the Waterfall Model or linear sequential model
that states that the phases at organized in a linear order.

10
FAST FOOD RESTAURANT

Requirement analysis and specification:


Requirement analysis is taken up after a feasibility study has been
performed to define the costs and benefits of a software system .

Design:
Once the requirements for a system have been documented
software design a software system to meet them .

Coding and Unit Testing:


This phase produces the actual code that will be delivered to the
customer.

Integration and System testing:


AII the modules that have been developed before and tested
individually are put together (integrated) In this phase and tested as
a whole.

Delivery and maintenance:


Once the system passes all the tests it is delivered to the customer
and enters the maintenance phase.

11
FAST FOOD RESTAURANT

Advantages of Waterfall model:

 The project requires the fulfilment of one phase, before


proceeding to the next.
 The Waterfall model Is a straight forward method and lets one
know easily what stages is in progress.
 The Waterfall model is an oldest and most widely used model In
the field of software development there are certain advantages of
this model which makes it one of the most widely used models.
 Being a linear model, it is very simple to implement the amount of
resource required to implement this model or minimal.
 After every major stage of software coding, testing is done to
check the correct running of the code.

Disadvantages of Waterfall model:

 Ironically, the biggest disadvantage is one of its greatest


advantage. User or developer cannot go back a step if the design
phase has gone wrong, things can get very complicated in the
implemented phase.
 Requirements should not be frozen.
 Since requirements are frozen the hardware should be chosen
initially and after developing the software by that time there may
be new hardware technology in market.
 It requires lot of effort for the development of the software.

12
FAST FOOD RESTAURANT

FEASIBILITY STUDY

All projects are feasible given unlimited resources and infinite time.
But the development of computer based system is likely to be
plagued by scarcity of resources and difficult completion dates. A
system, which is all conceived, if recognized early will avert month or
year of efforts, thousands of dollars professional embarrassment etc.

While discussing about feasibility we need to concentrate on the


points given below:
Economic feasibility
Technical feasibility
Operational feasibility

Economic feasibility:
Economic justification is generally the bottom line considering for
most system.
Economic justification includes a board range of concerns that
includes cost benefits analysis.
Computer department develop the proposed system. The system
will be developed and operate in the existing hardware and software
infrastructure. So there is reasoned of obtaining hardware and
software for the system.
The purpose system will increase the performance, which in turn
may be expected increase profit. Existing employees will be training
in using and operation the employed system.

13
FAST FOOD RESTAURANT

Thus, eliminating the need of recruiting new employes in the


organization. Thus, the project is economically feasibility for the
development for the company.
Technical feasibility:
The technical feasibility is the most difficult retaken counter at this
stage.
It is essential that the process of analysis and definition be conducted
in parallel with an assessment of technical feasibility.
It centres on the existing computer system and to what extends can
support the proposed system. Through information in manual is
enormous , it is handled easily by VISUAL BASIC 6.0 information in
the table form is easy to access and manage, computer department
is already equipped with suitable system and it can be utilized for a
development of the system. Hence it is to be technically feasible to
develop a new system.

Operational feasibility:
The proposed system offers greater level of user friendless
combined with greater processing speed.
Therefore, Float of staff can reduce. Since the processing speed is
very high compared to that of manually on the management can
Take care timely actions depending on the information obtained.
Since the work is also reduced , the arrangement conveys that the
project is operationally feasible. Hence the stage of the system study
and problem formulation places an important role in the system
development life cycle.

14
FAST FOOD RESTAURANT

SYSTEM ANALYSIS

It is the gathering and interpreting facts, diagnosing problems and


using information to recommend improvements to the system.
System Analysis does more than to solve current problems. They are
frequently called upon to help handle planned expansion of the
business, it is process of fact finding following the analysis of facts.

EXISTING SYSTEM:
The existing system in the organization is fully manual.
Details of the customer cannot be segregated according to the user
needs. All the works done should be manually in the paper and the
storage facility Is not available. Changes of the error are more in the
manual work.
In the existing system, the organization is finding a great problem in
maintaining the details of the orders. It Is very difficult to retrieve the
data of particular customer in terms of paper work. They is a chance
of damaging and misplacing the paper document there by losing
data. The development of the organization and the employee can
also be not analysed due manual work. Retrieval of data is very slow.

DRAWBACKS OF EXISTING SYSTEM:


There are some drawbacks of existing system and they are given
below:
The existing system is in adequate for present requirement as it is
manual and it requires lot of time in entering data and retrieving
data from the bulk of records. Bulk physical storage area is required
for lar e volume of the data.

15
FAST FOOD RESTAURANT

SYSTEM DESIGN AND REQUIREMENTS

VISUAL BASIC WILL START AND THIS DIALOG BOX APPEARS:

16
FAST FOOD RESTAURANT

VISUAL BASIC:
It is a tool that allows you to develop windows (Graphical
User Interface – GUI) application. The application has familiar
appearance to the user. As you develop as a visual basic
programmer, you will begin to look at windows applications
in a different light, you will organize and understand how
various elements of Word, Excel, Access and other
application work.
Visual Basic is event driven meaning code remains idle until
called upon to respond to some event.
Visual Basic is governed by an event processor. Nothing
happens until an event is detected. Once the event is
detected, the code corresponding at the event is executed.
Program control is then returned to event processor.

Some features of Visual Basic:


 Full set of controls to draw the application.
 Lots of icons and pictures for usage.
 Response to mouse and keyboard.
 Clipboard and printer access.
 Full array of mathematical, string handling and graphic
functions.
 Can handle fixed and dynamic variable and control arrays
 Sequential and random access files.
 Useful debugger and error handling facilities.

17
FAST FOOD RESTAURANT

 Powerful database access tools .


 Active X supports.
 Package and development wizard makes distributing your
applications simple.

Visual Basic 6.0 vs other versions of Visual Basic:

• The original visual basic for DOS and visual basic for
windows were introduced in the year 1991.
• Visual Basic 3 was released in 1993.

• Visual Basic 4 was released in 1995.

• Visual Basic 5 was released in 1996.

• And now Visual Basic 6.0 from 1998.

Some features of Visual Basic 6.0

• Faster compiler
•New active X data control objects
• Allows database integration

• New data report register

• New package and development wizard

18
FAST FOOD RESTAURANT

Additional internet capabilities:


Applications built using Visual Basic6.0 will run with windows
9598.2000 or Windows NT And Windows 10.
For now Just click on open - we are starting a new project. Later,
once you have saved same projects, they can be opened using the
existing and recent tabs , the visual basic development environment
will start.

Drawing the user Interface and setting properties :


► Visual basic operates In 3 modes:
Design mode - used to build an application.
Run mode - used to run the applications.
Break mode - application halted and debugger is available.

We focus on hear a design mode.


Six windows appear when you start visual basic. Each window can be
viewed by selecting menu options , depressing functions keys or
using the tool bar. Use the method you feel most comfortable with.
• The main window consists of the title bar and tool bar. A title
bar Indicates the project name, current visual basic operating mode,
and the current form . The menu bar has dropdown menus from
which you control the operation of the environment.
• The toolbar has button that provides shortcuts to sum of the
menu options. The main window also shows the location of the
current form relative to the upper left corner of the screen and the
width and length of the current form. Usually just pressing can get
you help you need.

19
FAST FOOD RESTAURANT

The form window is central to developing Visual basic application. It


is where you draw your application.
The toolbar selection menu for controls used in your computer
application help with any control is available by clicking the control
and pressing<f1>

20
FAST FOOD RESTAURANT

The property window is used to establish initial property


values for object the drop-down at the window lists all
objects in the current form.

Two views are available: alphabetic properties for the


currently selected object.

21
FAST FOOD RESTAURANT

The form layout window shows where your form will be displayed
relative to your monitors screen.

The project window displays a list of all forms and modules making
up your application. You can also obtain a view of the form or code
windows form the project windows.

22
FAST FOOD RESTAURANT

As mentioned, the user interface is drawn in the form window.

There are two ways to place controls on a form:


 Double click the tool in the tool box and it is created with a
default size on the form. You can then move it or resize.

 Click the tool in the toolbox then move the mouse pointer to
the crosshair at the upper left corner of where you want the control
to be press the left mouse button and hold it down while dragging
the cursor toward the lower right corner .
 To move a control you have drawn, click the object in the form
window and drag it to the new location .Release the mouse button.
 To resize a control, click the object so that is selected and sizing
handles appear . Use this handles to resize the object.

23
FAST FOOD RESTAURANT

4m oracle database system- identified by an alphanumeric


system identifier or SID comprises at least one instance of the
application, along with data storage. An instance identified
persistently by an instantiation number-comprises a set of
operating system process and memory structure that interact
with the storage.
Oracle documentation can refer to an active database
instance as a "shared memory realm".

24
FAST FOOD RESTAURANT

Users of oracle databases refer to the server side memory


structure as the SGA. The SGA typically holds cache
information such as data- buffers, SQL commands and user
information. In addition to storage, the database consists of
online redo logs, which hold transactional history. Processes
can in turn archive the online redo logs into archive logs,
which provide the basis for data recovery and for the physical
stand by forms of data replication using oracle data guard.

If the oracle database administrator has implemented oracle


RAC, then multiple instances, usually on different servers,
attach to a central storage array. This scenario offers
advantages such as better performance, scalability and
redundancy. However, support becomes more complex, and
many sites do not use RAC. In version 10g, grid computing
introduced shared resources where an instance can use CPU
resources from another node in the grid. The oracle DBMS
can store and execute stored procedures and functions
within itself. PL/ SQL or the object oriented language. Java
can invoke such code objects and/ or provide the
programming structures for writing them for storage. oracle
RDBMS store data logically in the form of data files J6] Tables
space can contain various types of memory segments, such as
data segments, index segments, etc. Segments in turn
comprise one or more extents. Extents comprises group of
contiguous data blocks. Data blocks form the basic units of
data storage.When you start the instance by using enterprise
manager,the memory allocated for SGA is displayed.

25
FAST FOOD RESTAURANT

Library cache:
The library cache 1 stores shared SQL, catching the parse tree
and the execution plan for every unique SQL statement. If
multiple applications issue the same SQL statement, each
application can access the shared SQL area. This reduces the
amount of memory needed and reduces the processing time
used for parsing and execution planning.

Data dictionary cache:


The data dictionary comprises a set of tables and views that
map the structure of the database. Oracle database store
information here about the logical and physical structure of
database. The data dictionary contains information such as:
User information such as user privileges. Integrity constraints
defined for tables in the database. Names and data types of
all columns in database tables. Information on space
allocated and used for scheme a objects.

Program global area:


The program global area or PGA memory area of an oracle
Instance contain data and control information for oracle
server's processes. The size and content of the PGA depends
and the oracle server options installed.
This area consists of the following points:
Stack space: The memory that holds the session's variables,
arrays and so on.
Session information: Unless using the multithreaded sever,
the instance stores its session information PGA.

26
FAST FOOD RESTAURANT

Promote SQL area: An area which hold sin information aches


bind variables and runtime buffers.
Storing area: An area which holds the information on sorts
,hash joins ,etc.
DRAs can monitor PGA via the V$SESSTAT system view.

Dynamic performance views:


The dynamic performance views within an oracle database
present information from virtual tables built on the basis of
database memory. Database users can access the V$ views to
obtain information on database structures and performance.
ORACLE PROCESS :
The oracle RDBMS typically relies on a group of processes
running simultaneously in the background and interacting to
monitor and expedite database operations. Typical operating
environments might include some of the following individual
processes:
• Advanced queuing process
• Archives processes
• Checkpoint process
• Coordinator of jobs queues: dynamically spawns slave
processor for job queues
• Database writer processes
• Dispatcher processes: multiplex server processes on behalf
of users

27
FAST FOOD RESTAURANT

• Main data guard broker monitor processes.


Log write network-server: transmits redo logs in data
guards environments
• Job-writer process
• Logical standby coordinator process: controls data guard
log- application
• Media- recovery process: detached recovery- server
process
• Memory manager process: used for internal database tasks
such as automatic shared memory management user
processes, connections and sessions
Oracle database terminology distinguishes different
computer-science terms in describing how end users interact
with the database:
Concurrency and locking Oracle Database control
simultaneous access to data resources with locks.
Configuration:
Database administrators control many of the tunable
variations in an oracle instance by means of values in a
parameter file. This file in its ASCII default from normally as a
name of the format name>. oar. The default binary
equivalent server parameter file defaults to the format
spiel<SID-name> .oar. Within an SQL based environment, the
views

28
FAST FOOD RESTAURANT

HISTORY :
• 1977: Larry Ellison and friends founded software
development laboratories.
• 1978: Oracle version1 return in assembly language, runs on
PDP-11 under RSX, m 128k of memory.
• 2003: Oracle corporation released oracle database 10g,
which supported regular expressions.
• 2005: Oracle database 10. 2.0.1 also known oracle database
10g released 2 appear.
• 2006: Oracle corporation announces unbreakable Linux (48)
and aquires-flex.
• 2007: Oracle database 10g 2 sets new world record TPC-H
3000GB benchmark results.
• 2007: Oracle corporation released oracle database 11 g for
Linux and for Microsoft windows.
• 2008: Oracle database acquires BEA systems.
• 2010: Oracle corporation aquires Sun Microsystem.
• 2011 : Oracle corporation aquires web content
management system Fat wire software.
• 2011 : On October 18, Oracle corporation aquires Endear
Technologies Inc. faceted search engine software vendor.
• 2013: Oracle corporation released oracle database 12c for
Linux, solaris and windows.

29
FAST FOOD RESTAURANT

• Critical patch updates and security alerts


• Oracle Critical patch and updates and security alerts are
released quarterly on Tuesday closest to 17th day of the
month. The general goal of the patches is to close security
holes through which data theft may occur.
• You may receive release notification by email.
• White paper: Critical patch update implementation best
practices

30
FAST FOOD RESTAURANT

31
FAST FOOD RESTAURANT

Database related products and some of their versions


includes:
• Oracle application server 10g: Middleware product
• Oracle application released 11i: A suit of business
applications
• Oracle developers suit 10g.
• Oracle J developer 10g: A java integrated development
environment
• Since versions 2, oracle's RDBMS release numbering as used
the following codes:
Oracle v2: 2.3
Oracle v3: 3.1.3

32
FAST FOOD RESTAURANT

Oracle 11 g expresses edition, released by oracle corporation


on 24th September 2011, [64) can support 11 GB of user data
Oracle database liter, intended for running on mobile
devices. The embedded mobile database located on the
mobile device can synchronies with a server based
installation. Includes supports for win32, windows CE, palms
OS, mechanism and data and application synchronization
software supports 100% java development.

CONNECTIVITY AND CARDINALITY:

The basic types of connectivity for relations are: one-to-one,


one-to-many, many-to-many. A one-to-one(1 :1) relationship
is when one instance of entity B.
For example, "employees in the company are each assigned
their own office".
For each employee their exist a unique employee. A one-to
many (1-n) relationship is when for once instance of entity A,
there are 0, 1, or many instance of entity A.
The connectivity of a relationship describes the mapping of
associated.

33
FAST FOOD RESTAURANT

Level 0:
Fast Food
Source Managem Destination
ent

Level 1:
Validati
Employee on Emp Home
Login

Validati
Admin on Adm Home
Login

Level 2:
Admin Home Page

Menu Report

Employe Users
e Details Details

Place
Order

Employee Home Page

Payment

Level 3:

Payments Bill

34
FAST FOOD RESTAURANT

35
FAST FOOD RESTAURANT

Snapshot

36
FAST FOOD RESTAURANT

37
FAST FOOD RESTAURANT

38
FAST FOOD RESTAURANT

39
FAST FOOD RESTAURANT

40
FAST FOOD RESTAURANT

41
FAST FOOD RESTAURANT

CODING
Form Loading:
Dim ctr, ctr2, r As Double
Dim ctr3 AS string
Private sub Form_Load()
Timer2.Enabled = True
End Sub
Private Sub Timer2_Timer()
ctr= 0
If ctr2 <= 100 Then
Randomize
r = Int((200 - 100 + 1) * Rnd + 100)
ctr= r / 50
ctr= Round(ctr, 0)
ctr= ctr2 + ctr
ctr3 = Str(ctr)
If ctr >= 100 Then
Percentage.Caption= "100%"
shpProgress.Width = 5000
Form1.Show
Unload Me
Else
shpProgress.Width = shpProgress.Width
Percentage.caption= (ctr3) + "\" ctr2 = Int(ctr3)
End If
End If
End Sub

42
FAST FOOD RESTAURANT

Welcome Form:
Private Sub Command1_Click()
Form2 .Show
Me.Hide
End Sub
Private Sub Cornrnand2_Click()
End
End Sub
Private Sub Command3_Click()
Form3.Show
Me.Hide
End Sub

Employee Login Form:

Private Sub Command1_Click()


If Text1 . Text = " " Or Text2.Text = “ ” Then
MsgBox “please Enter The Details”
Exit Sub
End If
Adodc1.RecordSource = "Select * from emplog where ename=' " +
Text1 .Text + “ “ and epass=’ “ + Text2.Text + “ ’”
Adodc1.Refresh
If Adodc1.Recordset.RecordCount = 0 Then
MsgBox "Invalid Login"
Else
MsgBox "Login Successful!"
Unload Me
Form3.Show
End If
End Sub

43
FAST FOOD RESTAURANT

Private Sub Command2_Click()


Unload Me
Form1.Show
End Sub
Private Sub command3_Click ()
Unload Me
Form4 .Show
End Sub

Employee Home Page:


Private Sub Command1 _ Click()
Form1. Show
Me.Hide
End Sub

Private Sub Command2_Click()


Form2.Show
Me.Hide End Sub

Private Sub Command3_Click()


Unload Me
Form2.Show
End Sub

44
FAST FOOD RESTAURANT

Admin Login:
Private SUb Command1 Click()
Text1.Text =" ” Or Text2.Text = “ “ Then
MsgBox "Please Enter The Details”ss
Exit Sub
End If
Adodc1 .RecordSource ="Select * from alog where aname=' " +
Text1.Text + “ ‘ and apass=’” + Text2.Text + “ ‘ ”
Adodc1 .Refresh
If Adodc1 .Recordset.RecordCount = 0 Then
MsgBox "Invalid Login"
Else
MsgBox "Login Successful!"
Form5.Show
Me.Hide
End If
End Sub
Private Sub Command2_Click()
Unload Me
Form2.show
End Sub

Admin Home Page:


Private Sub command1_click()
Form11.show
Me.Hide
End Sub
Private Sub command2_click()
DataReport.show

45
FAST FOOD RESTAURANT

End Sub

Private Sub command3_click()


Form7.show
Me.Hide
End Sub
Private Sub command4_click()
Unload Me
Form2.show
End Sub
Private Sub command5_click()
Form8.show
Me.Hide
End Sub

Employee Details:
Private Sub command3_click()
Unload Me
Form5.show
End Sub
Private Sub command4_Click()
Dim newid As Integer
Adodc1.Recordset .MoveLast
newid = Val(Adodc1.Recordset.Fields(1)) + 1
Text1.Text = ""
Text2 .Text = newid
Text3.Text = ""
Text4.Text = ""
Text5.Text = “”
End Sub

46
FAST FOOD RESTAURANT

Private Sub command5_Click()


Dim wish As Integer
wish= MsgBox ("Delete Current Record Yes/ No ", vbQuestion +
vbYesNo )
If wish = vbYes Then
Adodc1.Recordset.Delete
End If
End Sub

Private Sub Command6_Click()


If Len (Text4.Text) <> 10 Then
MsgBox “Invalid Mobile Number”, vbInformation
Exit Sub
End If
Adodc1.Recordset.AddNew
Adodc1.Recordset("ename”) = Text1.Text
Adodc1.Recordset(“eid") = Val(Text2.Text)
Adodc1.Recordset( "eocc") = Text3.Text
If Option1.Value = True Then
Adodc1.Recordset(“gender") = Option1.Caption
Else
Adodc1.Recordset("gender") = Option2.Caption
End If
Adodc1.Recordset ( "dofb") = DTPicker1.Value
Adodc1.Recordset("address") = Text4.Text
Adodc1.Recordset.Update
MsgBox "New Employee Added!"
End Sub
Private Sub Command7_Click()
With Adodc1.Recordset.Update

47
FAST FOOD RESTAURANT

MsgBox "Table has been updated successfully!", vbInformation


End With
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If IsNumeric(Chr(KeyAscii)) Then
KeyAscii = 0
End If
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If IsNumeric(Chr(KeyAscii)) Then
KeyAscii = 0
End If
End Sub
Private Sub Text4_KeyPress(KeyAscii As Integer)
If IsNumeric(Chr(KeyAscii)) Then
KeyAscii = 0
End If
End Sub

User Details Form:


Private Sub Command1_Click()
Frame1.Visible = True
Frame2 .Visible = False
End Sub
Private Sub Command10_Click()
Adodc2.Refresh
Adodc2.Recordset.AddNew
Adodc2.Recordset("id") = Val(Text4.Text)
Adodc2.Recordset("ename") = Text5.Text

48
FAST FOOD RESTAURANT

Adodc2 .Recordset("epass") = Text6.Text


Adodc2.Recordset.update
MsgBox "New User Has Been Added To The system!"
End Sub
Private Sub Command11_Click()
With Adodc2.Recordset.Update
MsgBox "Table has been updated successfully!", vbinformation
End With
End Sub
Private Sub Command2_Click ()
Frame2.Visible = True
Frame1.Visible = False
End Sub
Private Sub Command3_Click()
Unload Me Form5. Show
End Sub

Private Sub Command4_Click()


Dim newid As Integer
Adodc1.Recordset.MoveLast
newid = Val(Adodcl.Recordset.Fields( 0)) + 1
Text1.Text = newid
Text2.Text = "" Text3.Text = ""
End Sub

Private Sub command5_Click()


Dim wish As Integer
wish= MsgBox("Delete current Record Yes/ No ", vbQuestio n +
vbYesNo)
If wish= vbYes Then

49
FAST FOOD RESTAURANT

Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
If Adodc1.Recordset .EOF Then
Adodc1.Recordset.MoveLast
End If
End If
End Sub
Private Sub Command6_Click()
Adodc1.Refresh
Adodc1.Recordset.AddNew
Adodcl.Recordset("id") = Val(Text1.Text)
Adodc1.Recordset(“aname") = Text2.Text
Adodc1.Recordset("apass") = Text3.Text
Adodc1.Recordset.Update
MsgBox "New user has been added to the system!"
End Sub
Private Sub Command7Click()
With Adodcl.Recordset .Update
MsgBox "Table has been updated successfully!"
End With
End Sub

Private Sub Command7Click()


With Adodcl.Recordset .Update
MsgBox "Table has been updated successfully!"
End With
Adodc1.Recordset("id") = Val(Textl.Text)
Adodc1.Recordset("aname") = Text.2.Text
Adodc1.Recordset("apass") = Text3.Text
Adodc1.Recordset.Update

50
FAST FOOD RESTAURANT

MsgBox "New user has been added to the system! "


End Sub
Private Sub Command8_Click()
Dim newid As Integer
Adodc2 .Recordset.MoveLast
newid = Val(Adodc2.Recordset.Fields(O)) + 1
Text4.Text = newid
Text5.Text = ""
Text6.Text = ""
End Sub
Private Sub Command9_Click()
Dim wsh As Integer
wsh = MsgBox("Delete Current Record Yes/No", vbQuestion +
vbyesNo)
If wsh = vbYes Then
Adodc2.Recordset.Delete
Adodc2.Recordset.MoveNext
If Adodc2.Recordset.EOF Then
Adodc2.Recordset.MoveLast
End If
End If
End Sub

Place Order:
Private Sub Combo1_Click ()
Dim con As New ADODB.Connection
Dim rs As New ADODB.Recordset
Set con= New ADODB.Connection
con.Open "Provider=OraOLEDB.Oracle.l;Password=pig;Persist
Security Info=True;User Id=Dream”
Set rs= New ADODB.Recordset
rs.Open "select * from menu where icat='" & Combo1.Text & “’",

51
FAST FOOD RESTAURANT

con, adOpenDynamic, adLockOptimistic, adcmdTCombo2.Clear


While Not rs.EOF
Combo2.Additem rs(O)
rs.MoveNext
Wend
End Sub
Private Sub Combo2_Click()
Adodc1.Refresh
Adodc1.RecordSource ="select * from menu where iname='" &
Combo2.Text & “’”
Adodcl .Refresh
Dim con As New ADODB.Connection
Dim rs As New ADODB.Recordset
Set con= New ADODB. Connection
con.Open "Provider=OraOLEDB.Oracle.1;Password=pig;Persist
Security Info=True;User Id=Dream”
Set rs= New ADODB.Recordset
rs.Open “select * from menu where iname='" Combo2.Text & "'" ,
con, adOpenDynamic, adLockOptimistic, adcmdText
Text4.Text = Adodc1.Recordset.Fields(3)
End Sub

Private Sub Command1_Click ()


Adodc2.Refresh
Adodc2.Recordset.AddNew
Adodc2. Recordset ("oid")= Val (Text1.Text)
Adodc2.Recordset( "cname ") = Text2.Text
Adodc2. Recordset ( "cadd") = Text3.Text
Adodc2. Recordset ("cat") = Combo1. Text
Adodc2. Recordset ("ord") = Combo2.Text
Adodc2. Recordset ( "price") = Val (Text4.Text)

52
FAST FOOD RESTAURANT

Adodc2.Recordset ("qty") = Val (Text5.Textt)


Adodc2. Recordset ( "tot") = (Text6. Text)
Adodc2. Recordset. Update
MsgBox "order Placed successfully! ", vbInformation
End Sub
Private Sub Command2_click()
Unload Me
Form3.Show
End Sub
Private Sub Command3_Click()
Dim newid As Integer
Adodc2.Recordset.MoveLast
newid = Val (Adodc2.Recordset.Fields (0)) + 1
Text1.Text = newid
Text2.Text = “ ”
Text3.Text= “ ”
combo1.Text = “ ”
combo2.Text = “ ”
Text4.Text = “ “
Text5.Text = “ “
Text6. Text = “ “
MsgBox "Now You can Place a new order ! ", vbInformation
Adodc2. Recordset.MoveLast
newid = Val (Adodc2. Recordset. Fields (0)) + 1
Text1.Text = newid
Text2.Text = " "
Text3.Text = “ “
Combo1.Text = " “
Combo2.Text = “ “
Text4.Text = " “
Text5.Text = “ "
Text6.Text = “ “

53
FAST FOOD RESTAURANT

MsgBox "Now You can Place a new order! ", vbInformation


End Sub
Private sub Command4_Click ()
Dim wish As Integer
wish = MsgBox ("Delete Current Record Yes/No ", vbQuestion +
vbYesNo)
If wish = vbYes Then
Adodc2.Recordset.Delete
Adodc2.Recordset.MoveNext
If Adodc2. Recordset.EOF Then
Adodc2.Recordset.MoveFirst
MsgBox "order deleted successfully! "
End If
End If
End Sub
Private Sub Command5_Click ()
Combo1.Text = “ “
Combo2. Text =” “
Text4. Text = " “
Text5 . Text = “ “

Text6.Text = “ “
End Sub

Private sub Command6_Click ()


Form9.Show
End Sub
Private sub Form_Load ()
Dim con As New ADODB.Connection
Dim rs As New ADODB.Recordset
Set con = New ADODB. Connection

54
FAST FOOD RESTAURANT

con.open "Provider=ora0LEDB.oracle.1;Password=pig;persist Security


Info=True; User Id=Dream”
Set rs = New ADODB.Recordset
rs.open "select distinct icat from menu", con.adopenDynamic,
adLockOptimistic, adcmdText
Combo1.Clear
While Not rs.EOF
Combo1.AddItem rs(0)
rs.MoveNext
Wend
End Sub
Private Sub Text6_Click()
Dim a As Integer
Dim b As Integer
Dim t As Integer
a = Val(Text4,Text)
b = Val(Text5.Text)
t = (a + b)
Text.6.Tex t = t
End Sub

Menu Form:
Private Sub Command1_Click()
Dim newid As Integer
Adodc1.Recordset.MoveLast
newid = Val(Adodcl .Recordset.Fields (O)) + 1
Text1.Text = newid
Text.2 .Text = “ “
Text3.Text = ” ”
Text4.Text = “ “
End Sub

55
FAST FOOD RESTAURANT

Private Sub command2_Click()


Dim wish As Integer
wish = MsgBox (“Delete current Record Yes/No”, vbQuestion +
vbYesNo)
If wish= vbYes Then
Adodc1.Recordset.Delete Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveFirst
End If
End If
End Sub
Private Sub Command3_Click()
Adodc1.Refresh
Adodc1.Recordset.AddNew
Adodc1.Recordset("id") = Val(Text1.Text)
Adodc1.Recordset("icat") =Text2.Text
Adodc1.Recordset("iname") = Text3.Text
Adodcl.Recordset("iprice") = Val(Text4.Text)
Adodc1.Recordset.Update
MsgBox "Item Added", vbinformation
End Sub
Private Sub Command4_Click ()
With Adodc1.Recordset
.Update
MsgBox "Table has been updated successfully!", vbinformation
End With
End Sub
Private Sub Command5_Click ()
Unload Me
Form5.show
End Sub

56
FAST FOOD RESTAURANT

PAYMENT FORM:
Private Sub Combo1_Click()
Adodc1.Recordsource = " select * from placeo where cname= ' " &
Combo1.Text & "’"
Adodc1 .Refresh
Adodc3.Recordsource = "select * from placeo where cname= ' “ &
Combo1.Text &" ' "
Adodc3.Refresh
Dim con As New ADODB.Connection
Dim rs As New ADODB.Recordset
Set con= New ADODB.Connection
con.Open "Provider=OraOLEDB . Oracle.1;Password=pig;Persist
Security Info=True;User ID Dream”
Set rs = New ADODB.Recordset
rs.Open "select * from placeo where cname= ' " &Combo1.Text" ' ",
con, adOpenDynamic,adLockOPtimistic,adCmdText
Text2.Text = Adodc1.Recordset.Fields(2)
Text4.Text Adodc1.Recordset.Fields(0)
End Sub
Private Sub Command1_Click()
Dim newid As Integer
Adodc2 .Recordset.MoveLast
newid = Val(Adodc2.Recordset.Fields( 0 )) + 1
Text1.Text = newid
Combo1.Text = ""
Text2.Text = ” ”
Text4.Text = " "
Text3.Text = " "
Combo2.Text = " "
Text5.Text = ""
Text3.Text = “ “
Combo2.Text = " "

57
FAST FOOD RESTAURANT

Text5.Text = " "


End Sub
Private Sub command3_Click
If DataEnvironment.rsCommand1.State =1 Then
DataEnvironment.rsCommand1.close Private Sub
DataEnvironment1.rsCommand1. Filter = “oid = “ & val(Text4.Text)
DataReport1.Show
End Sub
Private Sub command4_Click()
Adodc2.Refresh = 1
Adodc2.Recordset.AddNew
Adodc2.Recordset("bno") Val(Text1.Text)
Adodc2.Recordset("bdate" ) = DTPicker1.Value
Adodc2.Recordset( " cname") = Combo1.Tex t
Adodc2.Recordset("cadd" ) = Text2 .Text
Adodc2.Recordse L( "oid" ) = Val (Text4 .Text)
Adodc2.Recordset("odet") = Text3.Text
Adodc2.Recordset("pmethod") = Combo2.Text
Adodc 2.Recordset("gtotal") =Val(Text5. Text)
Adodc2 .Recordset.Update
MsgBox "Order Placed successfully!", vb!nformation
End Sub
Private Sub Command5_Click()
Dim i As Integer
Dim tot As Double
For i = 0 To Adodc3.Recordset . RecordCount - 1
tot= tot+ CDbl(DataGrid2.Columns(7) .Text )
Adodc3. Recordset.MoveNext
Next i
Text5.Text = tot
End Sub

58
FAST FOOD RESTAURANT

Private Sub Command9_Click()


Unload Me
Form3.Show
End Sub
Private SubForm Load()
Dim con As New ADODB.Connection
Dim rs As New ADODB.Recordset
Set con= New ADODB.Connection
con.Open "Provider=OraOLEDB.Oracle.1;Password=pig;Persist
Security Info= True; User ID dream”
Set rs= New ADODB.Recordset
rs.Open "select distinct cname from placeo ", con, adOpenDynamic,
adLockOptimistic,adCmdText
Combo1.Clear
While Not rs.EOF
Combo1.Additem rs( 0 )
rs.MoveNext
Wend
Combo2.Additem "Cash"
Combo2 .Additem "Credit card"
Combo2 .Additem "Debit Card"
End Sub
Private Sub Label4_click()
Dim I As Integer
Dim tot As String
For i= 0 To Adodc1 Recordset.RecordCount - 1
tot =tot + cstr(DataGrid1.columns(4).Text) + “,”
Adodc1. Recordset,MoveNext
Next i
Text3.Text = tot
End Sub

59
FAST FOOD RESTAURANT

TABLES
TABLE NAME : ADMIN LOGIN

TABLE COLUMN NAME DATA TYPE LENGTH


ALOG ID NUMBER -
ANAME VARCHAR2 10

APASS VARCHAR2 10

TABLE NAME : MENU

TABLE COLUMN NAME DATA TYPE LENGTH


MENU ID NUMBER -
ICAT VARCHAR2 50

INAME VARCHAR2 50

IPRICE NUMBER -

TABLE NAME : EMPLOYEE LOGIN

TABLE COLUMN NAME DATA TYPE LENGTH

EMPLOG ID NUMBER -

ENAME VARCHAR2 10

EPASS VARCHAR2 10

60
FAST FOOD RESTAURANT

TABLE NAME :EMPLOYEE DETAILS

TABLE COLUMN NAME DATA TYPE LENGTH


EMP ENAME VARCHAR2 20

EID NUMBER -

EOCC VARCHAR2 50

GENDER VARCHAR2 10

DOFB DATE -

ADDRESS VARCHAR2 50

MNO NUMBER -

TABLE NAME : PLACE ORDER

TABLE COLUMN NAME DATA TYPE LENGTH


PLACEO OID NUMBER -

CNAME VARCHAR2 20

CADD NVARCHAR2 50

CAT VARCHAR2 20

ORD VARCHAR2 20

PRICE NUMBER -
QTY NUMBER -

TOT NUMBER -

61
FAST FOOD RESTAURANT

TABLE NAME : PAYMENTS

TABLE COLUMN NAME DATA TYPE LENGTH

PAYMENTS BNO NUMBER -

BDATE DATE -

CNAME VARCHAR2 20

CADD NVARCHAR2 20

OID NUMBER -

PMETHOD VARCHAR2 15

GTOTAL NUMBER -

ODET NVARCHAR2 50

62
FAST FOOD RESTAURANT

Testing
Testing :
Testing is a process of executing a program with the intent of finding
an error. The purpose of testing is to identify and correct the errors
in the developed program. Nothing is incomplete without testing. It
is the vital to the success of the system or program.
Software Testing is a review of specification design and coding. It is a
process of detection of errors and enhance software quality. It only
shows the errors present but cannot show the defects present.
Software Testing is an element of software in quality assurance and
represents its ultimate view in specifications, design and coding. It
also includes verification of the basic programs, logics and helps in
running the program. Test case also has some overall testing
objectives.
Software testing is a critical element of software quality assurance
and represents the ultimate review of specification, design and
coding. In fact, testing is the one step in the software engineering
process that could be viewed as destructive rather than constructive.
A strategy for software testing integrates software test case design
methods into a well-planned series of steps that result in the
successful construction of software. Testing is the set of activities
that can be planned in advance and conducted systematically. The
underlying motivation of program testing is to affirm software quality
with methods that can be economically and effectively applied to
both strategic to both large- and small-scale systems.

63
FAST FOOD RESTAURANT

UNIT TESTING :
Unit testing means that it tests the smallest unit of software design,
the module it is simplified only when a module with high cohesion is
designed whether address of module has only one function. The
number of test cases is reduced and errors can be more easily
detected. The entire purpose of the unit testing is to reduce the
effort of testing in integration.

INTEGRATION TESTING :
Integration testing is a systematic technique for constructing the
program structure and at the same time conducting tests to uncover
the errors associates with interfacing or in other words it is the
complete testing of the set of modules which make up the product,
using the previously unit test modules to construct a product. The
advantage of this testing the interfaces dispenses can be easily found
and corrected. Testing completes only when the last module is
integrates and tested.

SYSTEM TESTING :
System testing is a set of different tests its main intension to intend
the computer-based system. It is a type of test designed to verify the
requirements that system meets. It is performed on the running. The
purpose of this step is to test the system. Under realistic condition
but with understanding and forgiving users

During the system testing there exists different testing. They are:
1. Recovery testing
2. Security testing
3. Stress testing
4. Performance

64
FAST FOOD RESTAURANT

A system failure must be corrected within a specified period of time


before a server economic damage occurs.
BLACK BOX TESTING :
Black box testing treats the software as a “black box,” without any
knowledge of internal implementation.
Black box testing methods include: equivalence partitioning,
boundary value analysis, all-pairs testing, fuzz testing, modelbased
testing, traceability matrix, exploratory testing and specification-
based testing.
WHITE BOX TESTING :
This type of testing ensures that
➢ All independent paths have been exercised at least once.
➢ All logical decisions have been exercised on their true and
false sides.
➢ All loops are executed at their boundaries and within their
operational bounds.
➢ All internal data structures have been exercised to assure
their validity.
To follow the concept of white box testing we have tested each
form. We have created independently to verify that the data
flow is correctly. All conditions are exercised to check their
validity. All loops are executed on their boundaries

65
FAST FOOD RESTAURANT

CONCLUSION

The implementation of a project using ORACLE as a back end


Microsoft visual basic 6.0 as front end. As the idea of how a
database has to be organized and how it as to be maintained
Since the implementation of a database application by us
related to FAST FOOD RESTUARANT MANAGEMENT SYSTEM
we could know how real world constraints have to be dealt
with and that arrows could be solved
We also learnt how to maintain a database by choosing this
topic of interest by us and we have tried and out level best in
giving out a good application, one primary aspect we like to
say here is we could not develop this application with all the
features embedded in it due to time constraints and hence
we try to develop this application in the field of topics that
are being left over
And last but not the least we thank all our teaching and
nonteaching staff, all our friends and our parents for giving us
their cooperation and invaluable guidance at every phase of
our project without which this application development
could not be possible .

66
FAST FOOD RESTAURANT

FUTURE ENHANCEMENT
There is no denial to the fact that today’s possibilities are not
tomorrows Guaranties our system provides more than the basic
necessities of restaurant management.

As time passes the requirements will need to look into some


of fresh features can added into project like Advance
booking of table, customer satisfaction and so on.

Interfacing it with advance booking, online food ordering and


customer feedback system can –
❖Enhance the system.
❖Allow customers to interact with the restaurant, where
customers can book their tables in advance - with table
number as primary key.
❖Customers can order their food through online mode.
❖Customers can also provide their valuable feedback, which
helps the restaurant to improve their services.

67
FAST FOOD RESTAURANT

BIBLIOGRAPHY
SL.NO NAME OF BOOK AUTHOR NAME

1 Visual M .A .Rama
programming
Database management Cithara Ravi
2 system

3 Software Cithara Ravi


Engineering

68

You might also like