Comp project class 12
Comp project class 12
1.1 INTRODUCTION 2
2.3 IMPLEMENTATION 8
3.1 PHP 11
9. CHAPTER-9- VALIDATION 88
12. CHAPTER-12
BIBLIOGRAPHY 101-102
CHAPTER-1
INTRODUCTION
There is a lot of scope online food ordering business, and we can tap it to the max extent
possible as everyone has access to an online food facility via the internet. Food business
usually will have a high demand and hence online business prospect for food ordering should
be profitable.
After making a selection, the item is then added to their order, which the customer can also
review the details of at any time before checking out. This provides visual confirmation of
what was selected and ensures that items in the order are, in fact, what was intended. Within
this application, all items in the order are displayed, along with their corresponding options
and delivery details, in a concise and easy to read manner.
USER - Features:
-- Simple and attractive UI
-- Compact in size
CHAPTER-2
SYSTEM STUDY
1) As it is not online the customers have to wait for the waiter to take their order and have to
wait for the food as well
2) Waiters have to manually keep a record of all the food ordered by the customer and that
work is very complicated.
3) Waiters have to manually calculate the amount of money to be paid by the customer after
having food.
4) Records are maintained manually so there are chances of damage and loss of data.
4) Records are maintained in computers so there are less chances of damage and loss of data
Requirement Specification:
The website is designed in order to access the information one has to produce one's identity
by entering the user-id and password. Every user has their own domain of access beyond
which the access is dynamically refrained rather denied.
ADVANTAGES
• Easy to use.
• Provides more functionality.
2.3 IMPLEMENTATION
Implementation is the stage where the theoretical design is turned into a working system.
Once the design is complete, most of the major decisions about the system have been made.
The goal of coding phase is to translate the design of the system into code in a given
programming language. For a given design, the aim in this phase is to implement the design
in the best possible manner.
The coding phase affects both testing and maintenance profoundly. Since the testing and
maintenance costs of software are much higher than the coding cost, the goal of the coding
should be to reduce the testing and maintenance effort. Hence, during coding the focus should
be on developing the programs that are easy to read and understand, and not simply on
developing programs that are easy to write.
• Economical Feasibility
This is a very important aspect to be considered while developing a project. We decided the
technology based on minimum possible cost factor. ➢ All hardware and software cost has to
be borne by the organization.
➢ Overall we have estimated that the benefits the organization is going to receive from the
proposed system will surely overcome the initial costs and the later on running cost for
system.
• Technical Feasibility
This included the study of function, performance and constraints that may affect the ability to
achieve an acceptable system. For this feasibility study, we studied complete functionality to
be provided in the system as described in the System. Requirement Specification (SRS), and
checked if everything was possible using different type of frontend and backend platforms.
• Operational Feasibility
No doubt the proposed system is fully GUI based that is very user friendly and all inputs to be
taken all self-explanatory even to a layman. Besides, a proper training has been conducted to
let know the essence of the system to the users so that they feel comfortable with new system.
As far our study is concerned the clients are comfortable and happy as the system has cut
down their loads and doing.
CHAPTER-3
LITERATURE SURVEY
TOOL SURVEY
3.1 PHP, MYSQL
PHP started out as a small open source project that evolved as more and more people found
out how useful it was. Rasmus Lerdorf unleashed the first version of PHP way back in 1994.
• Simplicity
• Efficiency • Security
• Flexibility
• Familiarity
SQL Server stores records relating to each other in a table. Different tables are created for the
various groups of information. Related tables are grouped together to form a database.
Primary Key:
Every table in SQL Server has a field or a combination of fields that uniquely identifies
record in the table. The Unique identifier is called the Primary Key, or simply the Key. The
primary key provides the means to distinguish one record from all other in a table. It allows
the user and the database system to identify, locate and refer to one particular record in the
database.
Relational Database:
Sometimes all the information of interest to a business operation can be stored in one table.
SQL Server makes it very easy to link the data in multiple tables. Matching an employee to
the department in which they work is one example. This is what makes SQL Server a
relational database management system, or RDBMS. It stores data in two or more tables and
enables you to define relationships between the tables and enables you to define relationships
between the tables.
Foreign Key:
When a field is one table matches the primary key of another field is referred to as a foreign
key. A foreign key is a field or a group of fields in one table whose values match those of the
primary key of another table.
Referential Integrity
Not only does SQL Server allow you to link multiple tables, it also maintains consistency
between them. Ensuring that the data among related tables is correctly matched is referred to
as maintaining referential integrity.
Data Abstraction
A major purpose of a database system is to provide users with an abstract view of thedata.
This system hides certain details of how the data is stored and maintained. Data abstraction is
divided into three levels.
1. Physical level: This is the lowest level of abstraction at which one describes how the
data are actually stored.
2. Conceptual Level: At this level of database abstraction all the attributed and what
data are actually stored is described and entries and relationship among them.
3. View level: This is the highest level of abstraction at which one describes only part of
the database.
Advantages of RDBMS
• Redundancy can be avoided
• Inconsistency can be eliminated
• Data can be Shared
• Standards can be enforced
• Security restrictions can be applied
• Integrity can be maintained
• Conflicting requirements can be balanced Data independence can be achieved.
Disadvantages of DBMS
A significant disadvantage of the DBMS system is cost. In addition to the cost of purchasing
of developing the software, the hardware has to be upgraded to allow for the extensive
programs and the workspace required for their execution and storage. While centralization
reduces duplication, the lack of duplication requires that the database be adequately backed
up so that in case of failure the data can be recovered.
Portability:
SQL SERVER is fully portable to more than 80 distinct hardware and operating systems
platforms, including UNIX, MSDOS, OS 2. Macintosh and dozens of proprietary platformis.
This portability gives complete freedom to choose the database server platform that meets the
system requirements.
Open Systems:
SQL SERVER offers a leading implementation of industry-standard SQL, SQL Server's open
architecture integrates SQL SERVER and non-SQL SERVER DBMS with industry's most
comprehensive collection of tools, application, and third party software products SQL
Server's Open architecture provides transparent access to data from other relational database
and even non-relational database.
RAM 128MB
CD-ROM Required
Front-End HTML,CSS,JAVASCRIPT
Back-End PHP,MYSQL
CHAPTER-5
SOFTWARE REQUIREMENT ANALYSIS
Interoperability :It is a property referring to the ability of diverse system and ins to work
together (inter-operate).
5.3 SYSTEM IMPLEMENTATION
Implementation is the stage in the project where the theoretical design is turned into a
working system. The implementation phase constructs, installs and operates the new system.
The most crucial stage in achieving a new successful system is that it will work efficiently
and effectively.
There are several activities involved while implementing a new project. They are
Customer Module:
Employee Module:
Orders Module:
• The full form of PHP is "Hypertext Preprocessor". Its original name was "Personal Home
Page"
• Rasmus Lerdorf software engineer, Apache team member is the creator and original
driving force behind PHP. The first part of PHP was developed for his personal use in late
1994.
• By the middle of 1997, PHP was being used on approximately 50,000 sites worldwide.
• PHP is server-side scripting language, which can be embedded in HTML used as a a
standalone.
• PHP doesn't do anything about what a page looks and sounds like. In fact .most of what
PHP does is invisible to the end user.
• Someone looking at a PHP page will not necessarily be able to tell that it was not written
purely in HTML., because usually the result of PHP is HTML
• PHP is an official module of Apache HTTP Server.
Advantages of PHP
• Cost: PHP costs you nothing. It is open source software and doesn't need topurchase it for
development.
• Ease of Use: PHP is easy to learn, compared to the others. A lot of Ready- made PHP
scripts are freely available in market so, you can use them in yourproject or get some help
from them.
• HTML-Support: PHP is embedded within HTML; In other words, PHP pages are ordinary
HTML pages that escape into PHP mode only when necessary. When a client requests this
page, the web server preprocesses it.
• This means it goes through the page from top to bottom, looking for sectionsof PHP,
which it will try to resolve.
• Cross-platform compatibility: MySQL run native on every popular flavor of Unix and
windows. A huge percentage PHP and of the world's HTTP servers run on one of these
two classes of operating system.
• PHP is compatible with the three leading Web servers: Apache HTTP Server
• for Unix and Windows, Microsoft Internet Information Server, and Netscape Enterprise
Server. It also works with several lesser-known servers, including Alex Blits httpd.
Microsoft's Personal Web Server, AOL Server and Omni centrix's Omni server application
server.
Stability:
The word stable means two different things in this context:
• The server doesn't need to be rebooted often
• The software doesn't change radically and incompatibly from
• release to release.
WATERFALL MODEL
1. REQUIREMENTS - The first phase involves understanding what you need to design
and what is its function, purpose etc. Unless you know what you are going to design, you
cannot approach the problem. Here, the specifications of the input and output or the final
product is studied and marked.
2. ANALYSIS - As per the requirements, the software and hardware needed for the
proper completion of the project is analyzed in this phase. Right from deciding.
5. CODING- Based on the algorithm or flowchart designed, the actual coding of the
software is carried out at this stage. The flowcharts/ algorithms are converted into
instructions written in a programming language.
CHAPTER-6
SYSTEM DESIGN
• Architecture design.
• High level design.
• Detailed design
ARCHITECTURAL DESIGN
Architectural design, is a set of principles- a coarse grained pattern that provides an abstract
framework for a family of systems. An architectural style improves partitioning and promotes
design reuse by solutions to recurring problems. You can think of architecture styles and
patterns as sets of principles that shape an application.
1. Client layer
2. Business layer
3. Data layer
Client layer:
Here we design the form using textbox, label etc.
Business layer:
It is the intermediate layer which has the functions for client layer and it is used to make
communication faster between client and data layer. It provides the business processes logic
and the data access.
Data layer:
Advantage
1. Easy to modify without affecting other modules
2. Fast communication
External Entity
An external entity can represent a human, system or subsystem. It is where certain data comes
from or goes to. It is external to the system we study, in terms of the business process. For
this reason, people used to draw external entities on the edge of a diagram.
Process
A process is a business activity or function where the manipulation and transformation of
data takes place. A process can be decomposed to finer level of details, for representing how
data is being processed within the process
Data Store
A data store represents the storage of persistent data required and/or produced by theprocess.
Here are some examples of data stores: membership forms, database table, etc.
Data Flow
A data flow represents the flow of information, with its direction represented by
an arrow head that shows at the end(s) of flow connector.
FIRST-LEVEL DFD
This level shows all processes at the first level of numbering, data, stores,
external entities and data flows between them. The purpose of this level is to
show the major and high level processes of the system and their interrelation.
We usually begin by drawing a context diagram, a simple representation of the
whole system. Context level DFD, also known as level 0 DFD, sees the whole
system as a single process and emphasis the interaction between the system and
external entities.
The Level 1 DFD shows how the system is divided into sub-systems
(processes), each of which deals with one or more of the data flows to or from
an external agent, and which together provide all of the functionality of the
system as a whole. It also identifies internal data stores that must be present in
order for the system to do its job, and shows the flow of data between the
various parts of the system
6.3 USE CASE DIAGRAM
Use case diagrams are considered for high level requirement analysis of a
system Use case diagrams are used to gather the requirements of a system
including internal and external influences. These requirements are mostly design
requirements. So when a system is analyzed to gather its functionalities use
cases are prepared and actors are identified. Now when the initial task is
complete use case diagrams are modeled to present the outside view
Use case:
Use case diagrams are considered for high level requirement analysis of a
system. So when the requirements of a system are analyzed the functionalities
are captured in use cases. So we can say that uses cases are nothing but the
system functionalities written in an organized manner.
Actor:
Now the second things which are relevant to the use cases are the actors. Actors
can be defined as something that interacts with the system. The actors can be
human user, some internal applications or may be some external applications.
Relationship:
Relationships exist among the use cases and actors. Show relationships and
dependencies clearly in the diagram. Do not try to include all Because the main
purpose of the diagram is to identify requirements. types of relationships.
ADMIN
USER
6.4 SEQUENCE DIAGRAM
The Sequence Diagram models the collaboration of objects based on a time
sequence. It shows how the objects interact with others in a particular scenario
of a use case. With the advanced visual modeling capability, you can create
complex sequence diagram in few clicks. Besides, Visual Paradigm can generate
sequence diagram from the flow of events which you have defined in the use
case description. The sequence diagram models the collaboration of objects
based on a time sequence. It shows how the objects interact with others in a
particular scenario of a use case. It depicts the objects and classes involved in
the scenario and the sequence of messages exchanged between the objects
needed to carry out the functionality of the scenario.
Lifelines:
A sequence diagram shows, as parallel vertical lines (lifelines), which indicates
different processes or objects that live simultaneously.
Message:
Messages, written with horizontal arrows with the message name written above
them, display interaction. The messages are written in the order in which they
occur. This allows the specification of simple runtime scenarios in a graphical
manner.
Object/Activation Box/Process:
Activation boxes, or method-call boxes, are opaque rectangles drawn on top of
lifelines to represent that processes are being performed in response to the
message.
ADMIN
USER
6.5 ENTITY RELATIONSHIP DIAGRAM:
Entity-relationship (ER) diagram is a graphical representation of entities and
their relationships to each other, typically used in computing in regard to the
organization of data within databases or information systems. An entity is a
piece of data-an abject or concept about which data is stored. A relationship is
how the data is shared between entities. There are three types of relationships
between entities.
1. One-to-one
One instance of an entity (A) is associated with one other instance of another
entity (B). For example, in a database of employees, each employee name (A) is
associated with only one social security number (B).
2. One-to-Many.
One instance of an entity (A) is associated with zero, one or many instances of
another entity (B), but for one instance of entity B there is only one instance of
entity A. For example, for a company with all employees working in one
building, the building name (A) is associated with many different employees
(B), but those employees all share the same singular association with entity A.
3. Many-to-Many
One instance of an entity (A) is associated with one, zero or many instances of
another entity (B), and one instance of entity B is associated with one, zero or
many instances of entity A. For example, for a company in which all of its
employees work on multiple projects, each instance of an employee (A) is
associated with many instances of a project (B), and at the same time, each
instance of a project (B) has multiple employees (A) associated with it.
6.6 DATABASE DESIGN
LIST OF TABLES
ADMIN
ADMIN CODES:
REMARKS:
DISHES:
RESTAURANTS:
RESTAURANT CATEGORY:
USER:
USER ORDERS:
CHAPTER-7
CODING
CHAPTER-8
SOFTWARE TESTING
Testing the software is the process of validating and verifying of a software
program. The errors are to be identified in order to fix those errors. Thus the
main objective of software testing is to maintain and deliver a quality product to
the client. Every software is expected to meet certain needs. So when software
is developed it is required to check whether it fulfills those needs. Abanking
software is entirely different from a software required in a shop. The needs and
requirements of both those software are different. Hence it is important to check
its potential. The main goal of software testing is to know the errors of the
software before the user finds them. Software testing is the operating of
software under controlled conditions to check whether the software works well
and to rectify the errors, and also to make sure that we are delivering the correct
software what the user intends.
3) Performance errors
• Unit Testing
• Integration Testing
• System Testing
• Acceptance Testing
1.Unit Testing
Unit Testing is a level of the software testing process where individual
units/components of a software system are tested. The purpose is to validate that
each unit of the software performs a as designed.
2. Integration Testing
Integration Testing is a level of the software testing process where individual
units are combined and tested as a group. The purpose of this level of testing is
to expose faults in the interaction between integrated units.
3. System Testing
System Testing is a level of the software testing process where a complete,
integrated system/software is tested. The purpose of this test is to evaluate the
system's compliance with the specified requirements. Acceptance Testing is a
level of the software testing process where a system is tested for.
4. Acceptance Testing
Acceptability is the purpose of this test is to evaluate the system's compliance
with the business requirements and assess whether it is acceptable for delivery.
8.4 REGRESSION TESTING:
Validation is process of examining whether or not the software satisfies the user
requirements. It is carried out at the end of the SDLC. If the software matches
requirements for which it was made, it is validated. Validation ensures the
product under development is as per the user requirements. Validation answers
the question - "Are we developing the product which attempts that entire user
needs from this software?" Validation emphasizes on user requirements.
Fault: When error exists fault occurs. A fault, also known as a bug, is a result of an error
which can cause system to fail.
Failure: Failure is said to be the inability of the system to perform the desired task. Failure
occurs when fault exists in the system.
HOME PAGE
RESTAURANT PAGE
SIGN UP PAGE
USER LOGIN
ADMIN PANEL:
ADMIN LOGIN
DASHBOARD
ALL USERS
ADD USER
RESTAURANT
ALL RESTAURANT
ADD RESTAURANT
ADD CATEGORY
MENUS:
ALL MENUS
ADD MENUS
ALL ORDERS
CHAPTER-11
CONCLUSION
BOOKS REFERED
WEBSITES
http://www.w3schools.com/php/php_sessions.asp
http://www.mkyong.com/java/how-to-check-if-date-is-valid-in-java/
http://www.w3schools.com/js/js_validation.asp
https://www.youtube.com/watch?v-4hQHwP5oFc0
http://www.w3schools.com/js/default.asp
http://www.w3schools.com/css/default.asp