employed at Starbucks
particular branch.
Ingredient General term described ingredients of food and drink
One or more ingredients are used to produce food or drink
Description of relationships
Entity Multiplicity Relationship Multiplicity Entity
Branch 1..1 Has 1..* Staff
Branch 1..1 IsAllocated 1..* FoodOrder
Branch 1..1 IsAllocated 1..* FrinkOrder
Branch, Staff 1..*, 1..1 register 0..* Member
Staff 1..1 Manage 0..1 Branch
Staff 0..1 Supervise 0..* Staff
FoodOrder 0..1 Has 1..* FoodOrder
DrinkOrder 0..1 Has 1..* DrinkOrder
Member 1..1 Request 1..* FoodOrder
Member 1..1 Request 1..* DrinkOrder
Food 1..* Use 0..* Ingredient
Drink 1..* Use 0..* Ingredient
Supplier 1..* Supply 0..* Ingredient
Description of attributes
Entity Attributes Description Data type and length
Nulls Multi-valued
Food FoodNo Uniquely identifier a food
6 fixed characters
No No
Name Name of food
20 variable characters
No No
Type Type of food 10 variable characters
No No
Price Price of food 10 variable characters
No No
Drink DrinkNo Uniquely identity a drink
6 fixed characters
No No
Name Name of drink
20 variable characters
No No
Type Type of drink
20 variable characters
No No
Price Price of drink
20 variable characters
No No
Size Size of drink 10 variable characters
No No
Branch BranchNo Uniquely identity a branch
4 fixed characters
No No
Postcode Postcode of a branch
20 variable characters
No No
TeleNo Telephone number of a branch
20 variable characters
No Yes
ManagerID ID of manager of a branch
6 fixed characters
No No
Address Address of a branch
50 variable characters
No No
FoodOrder FoodOrderNo
Uniquely identity a food order
6 fixed characters
No No
Name Name of food contained in order
20 variable characters
No Yes
FoodID Uniquely identity a food
6 fixed characters
No No
Number Numbers of each food
20 variable characters
No Yes
TotalPrice Total price of order
20 variable characters
No No
DrinkOrder DrinkOrderNo
Uniquely identity a drink order
6 fixed characters
No No
DrinkID Uniquely identity a drink
6 fixed characters
No No
Name Name of drink contained in order
20 variable characters
No Yes
Number Numbers of each drink
20 variable characters
No Yes
TotalPrice Total price of drink
10 variable characters
No No
Size Size of each drink
10 variable characters
No No
Member ID Uniquely identity a member
6 fixed characters
No No
Name Name of member
20 variable characters
No No
Sexy Sexy of member
20 variable characters
No No
Telephone Telephone number of member
10 variable characters
No Yes
Address Home address of member
50 variable characters
No No
Email Email of member
10 variable characters
No Yes
Supplier SName Name of supplier
10 variable characters
No No
Address Address of supplier company
10 variable characters
No No
Telephone Telephone number of supplier
20 variable characters
No Yes
Email Email of supplier
20 variable characters
No Yes
Ingredient IngredientNo
Uniquely identity a ingredient
5 fixed characters
No No
Name Name of ingredient
10 variable characters
No No
Price Price of ingredient
20 variable characters
No No
Number Amount of ingredient
10 variable characters
No No
Provider Provider of ingredient
10 variable characters
No Yes
Staff StaffNo Uniquely 6 fixed No No
identity a staff
characters
Name Name of staff
10 variable characters
No No
BranchID Uniquely identity a branch
4 fixed characters
No No
Sexy Sexy of staff 10 variable characters
No No
JobTitle Job of staff 10 variable characters
No No
Income Income of staff
10 variable characters
No No
TeleNo Telephone number of staff
10 variable characters
No Yes
Address Address of staff
10 variable characters
No No
Email Email of staff
10 variable characters
No Yes
Showing attribute with primary, alternate and foreign key are identified.
Entity Attributes Description Key Nulls
Food FoodNo Uniquely identifier a food
Primary key No
Name Name of food
Alternate key
No
Type Type of food No
Price Price of food No
Drink DrinkNo Uniquely identity a drink
Primary key No
Name Name of drink
Alternate key
No
Type Type of drink
No
Size Size of drink No
Price Price of drink
No
Branch BranchNo Uniquely identity a branch
Primary key No
Postcode Postcode of a branch
Alternate key
No
TeleNo Telephone number of a branch
No
ManagerID ID of manager of a branch
Foreign key No
Address Address of a branch
No
FoodOrder FoodOrderNo
Uniquely identity a food order
Primary key No
FoodID Uniquely identity a food
Foreign Key No
Name Name of food contained in order
No
Number Numbers of each food
No
TotalPrice Total price of order
No
DrinkOrder DrinkOrderNo
Uniquely identity a drink order
Primary key No
DrinkID Uniquely a drink
Foreign Key No
Name Name of drink contained in order
No
Size Size of drink No
Number Numbers of each drink
No
TotalPrice Total price of drink
No
Member ID Uniquely identity a member
Primary key No
Name Name of member
No
Sexy Sexy of member
No
Telephone Telephone number of member
Alternate key
No
Address Home address of member
No
Email Email of member
No
Supplier SName Name of supplier
Primary key No
Address Address of supplier company
No
Telephone Telephone number of supplier
Alternate key
No
Email Email of supplier
No
Ingredient IngredientNo
Uniquely identity a ingredient
Primary key No
Name Name of ingredient
Alternate key
No
Price Price of ingredient
No
Number Amount of ingredient
No
Provider Provider of ingredient
Foreign key No
Staff StaffNo Uniquely identity a staff
Primary key No
Name Name of staff
No
BranchID Uniquely identity a branch
Foreign Key No
Sexy Sexy of staff No
JobTitle Job of staff No
Income Income of staff
No
TeleNo Telephone number of staff
Alternate key
No
Address Address of staff
No
Email Email of staff
No
Global logical data model
Logical Table Structure Food(FoodNo, Name, Type, Price) Primary Key FoodNo Alternate Key Name
Branch(BranchNo, Postcode, TeleNo, ManagerID, Address) Primary Key BranchNo Alternate Key Postcode Foreign Key ManagerID references Staff(StaffNo)
Drink(DrinkNo, Name, Type, Price, Size) Primary Key DrinkNo Alternate Key Name
Member(ID, Name, Sexy, Telephone, Address, Email) Primary Key ID Alternate key Telephone
Staff(StaffNo, Name, Sexy, JobTitle, BranchID, TeleNo, Address, Email) Primary Key StaffNo Alternate Key TeleNo Foreign Key BranchID references Branch(BranchNo)
Supplier(SName, Address, Telephone, Email) Primary Key SName Alternate Key Telephone
Ingredient(IngredientNo, Name, Price, Provider,Number) Primary Key IngredientNo Alternate Key Name Foreign Key Provider references Supplier(SName)
FoodOrder(FoodOrderNo, Name, Number, TotalPrice, FoodID) Primary Key FoodOrderNo Foreign Key FoodID references Food(FoodNo)
Registration(BranchID, MemberID, StaffID, Date) Primary Key BranchID,MemberID Foreign Key BranchID references Branch(BranchNo) Foreign Key MemberID references Member(ID) Foreign Key StaffID references Staff(StaffNo)
DrinkOrder(DrinkOrderNo, Name, Number, TotalPice, DrinkID) Primary Key DrinkOrderNo Foreign Key DrinkID references Drink(DrinkNo)
Telephone(TelNo, BranchID) Primary Key TelNo Foreign Key BranchID references Branch(BranchNo)
Manager(ManagerID, ManagerName, BranchID) Primary key ManagerID Foreign Key BranchID references Branch(BranchNo)
Director(DirectorID, Name) Primary Key Director
Supervisor(SupervisorID, Name, BranchID) Primary Key SupervisorID Foreign Key BranchID references Branch(BranchNo)
Account(AccountID, Password, UserID) Primary Key AccountID Foreign Key UserID references Member(ID), Staff(StaffNo)
Physical Table DBDL for Account Table Domain Accountnumber fixed length character length 6 Domain Accountpassword variable length character string maximum length 20 Domain Usernumber variable length character string maximum length 10 Account(AccountID Accountnumber NOT NULL,
Password Accountpassword NOT NULL, UserID Usernumber NOT NULL) Primary Key AccountID Foreign Key UserID References Staff(StaffNo),
Member(ID) ON UPDATE CASCADE ON DELETE NO ACTION DBDL for Food Table domain FoodNumber fixed length character string length 4 domain FoodName variable length character string maximum length 20 domain FoodType variable length character string maximum length 10 domain FoodPrice variable length character string maximum length 10 Food(FoodNo FoodNumber NOT NULL, Name FoodNane NOT NULL, Type FoodType NOT NULL, Price FoodPrice NOT NULL) Primary Key FoodNo Alternate Key Name
DBDL for the Branch Table domain BranchNumber fixed length character string length 4 domain BranchPostcode variable length character string maximum length 20 domain BranchTeleNo variable length character string maximum length 20 domain ManagerNumber fixed length character string length 6 domain BranchAdd variable length character string maximum length 50 Branch(BranchNo BranchNumber NOT NULL,
Postcode BranchPostcode NOT NULL, TeleNo BranchTeleNo NOT NULL, ManagerID ManagerNumber NOT NULL, Address BranchAdd NOT NULL) Primary Key BranchNo Alternate Key Postcode
Foreign Key ManagerID References Staff(StaffID) ON UPDATE CASCADE ON DELETE NO ACTION DBDL for the Drink Table domain DrinkNumber fixed length character string length 6 domain DrinkName variable length character string maximum length 20 domain DrinkType variable length character string maximum length 20 domain DrinkPirce variable length character string maximum length 20 domain Drink Size variable length character sting maximum length 10 Drink(DrinkNo DrinkNumber NOT NULL, Name DrinkName NOT NULL, Type DrinkType NOT NULL, Price DrinkPrice NOT NULL, Size DrinkSize NOT NULL) Primary Key DrinkNo Alternate Key Name
DBDL for the Member Table domain MemberID fixed character length string length 6 domain MemberName variable length character string maximum length 20 domain MemberSexy variable length character string maximum length 20 domain MemberTelephone variable length character string maximum length 10 domain MemberAdd variable length character maximum length 50 domain MemberEmail variable length character maximum length 10 Member( ID MemberID NOT NULL,
Name MemberName NOT NULL, Sexy MemberSexy NOT NULL, Telephone MemberTelephone NOT NULL, Address MemberAdd NOT NULL, Email MemberEmail NOT NULL) Primary Key ID
Alternate Key Telephone
DBDL for the Staff Table domain StaffNumber fixed length character length string length 6 domain StaffName variable length character string maximum length 20 domain BranchNumber fixed length character string length 4 domain StaffSexy variable length character string maximum length 10 domain Jobtitle variable length character length string maximum length 10 domain StaffIncome variable length character string maximum length 10 domain StaffTeleNo variable length character string maximum length 10 domain StaffAdd variable length character string maximum length 10 domain StaffEmail variable length character string maximum length 10 Staff(StaffNo StaffNumber NOT NULL, Name StaffName NOT NULL, Sexy StaffSexy NOT NULL, JobTitle Jobtitle NOT NULL, BranchID BranchNumber NOT NULL, Income StaffIncome NOT NULL, TeleNo StaffTeleNo NOT NULL, Address StaffAdd NOT NULL, Email StaffEmail NOT NULL) Primary key StaffID Alternate Key TeleNo Foreign Key BranchID References Branch(BranchNo) ON UPDATE CASCADE ON DELETE NO ACTION DBDL for the Supplier Table domain SupplierName variable length character string maximum length 10 domain SupplierAdd variable length character string maximum length 10 domain SupplierTele variable length character string maximum length 20 domain SupplierEmail variable length character string maximum length 20 Supplier( SName SupplierName NOT NULL,
Address SupplierAdd NOT NULL, Telephone SupplierTele NOT NULL, Email SupplierEmail NOT NULL) Primary Key SName
Alternate Key Telephone
DBDL for the Ingredient Table domain IngredientNumber fixed length character string length 5 domain IngredientName variable length character string maximum length 10 domain IngredientPrice variable length character string maximum length 20 domain IngredientProvider variable length character string maximum length 10 domain IngredientNumber variable length character string maximum length 10 Ingredient( IngredientNo IngredientNumber NOT NULL,
Name IngredientName NOT NULL, Price IngredientPrice NOT NULL, Provider IngredientProvider NOT NULL, Number IngredientNumber NOT NULL ) Primary Key IngredientNo
Alternate Key Name Foreign Key Provider References Supplier(SName) ON UPDATE CASCADE ON DELETE NO ACTION DBDL for the FoodOrder Table domain Foodordernumber fixed length character string length 6 domain Foodname variable length character string maximum length 20 domain FoodNumber variable length character string maximum length 20 domain Totalprice variable length character string maximum length 20 domain Foodno fixed length character string length 6 FoodOrder(FoodOrderNo Foodordernumber NOT NULL, Name Foodname NOT NULL, Number FoodNumber NOT NULL, TotalPrice Totalprice NOT NULL, FoodID Foodno NOT NULL) Primary Key FoodOrdeNo Foreign Key FoodID References Food(FoodNo) ON UPDATE CASCADE ON DELETE NO ACTION
DBDL for the DrinkOrder Table domain Drinkordernumber fixed length character string length 6 domain Drinkname variable length character string maximum length 20 domain DrinkNumber variable length character string maximum length 20 domain Totalprice variable length character string maximum length 20 domain Drinkszie variable length character string maximum length 10 domain Drinkno fixed length character string length 6 FoodOrder(DrinkOrderNo Drinkordernumber NOT NULL, Name Drinkname NOT NULL, Number DrinkNumber NOT NULL, TotalPrice Totalprice NOT NULL, DrinkID Drinkno NOT NULL Size DrinkSize NOT NULL) Primary Key DrinkOrdeNo Foreign Key DrinkID References Drink(DrinkNo) ON UPDATE CASCADE ON DELETE NO ACTION DBDL for the Registration Table Domain BranchNumber fixed length character string length 4 Domain MemberNumber fixed length character string length 6 Domain StaffNumber fixed length character string length6 Domain Datejoined variable length character string maximum length 20 Registration( BranchID BranchNumber NOT NULL,
MemberID MemberNumber NOT NULL, StaffID StaffNumber NOT NULL, Date Datejoined NOT NULL) Primary Key BranchID, MemberID Foreign Key BranchID References Branch(BranchNo) ON
UPDATE CASCADE ON DELETE NO ACTION Foreign Key MemberID References Member(ID) ON
UPDATE CASCADE ON DELETE NO ACTION Foreign Key StaffID References Staff(StaffNo) ON UPDATE
CASCADE ON DELETE NO ACTION
DBDL for the Telephone Table domain TelNumber variable length character string maximum 20 domain BranchNumber fixed length character string length 4 Telephone(TelNo, TelNumber NOT NULL, BranchID BranchNumber NOT NULL) Foreign Key BranchID references Branch(BranchNo) ON UPDATE CASCADE ON DELETE NO ACTION DBDL for the Manager Table domain ManagerNumber fixed length character string length 6 domain Managername variable length character string maximum 20 domain BranchNumber fixed length character string length 4 Manager( ManagerID ManagerNumber NOT NULL,
ManagerName Manegername NOT NULL, BranchID BranchNumber NOT NULL) Primary Key ManagerID Foreign Key BranchID References Branch(BranchNo)
DBDL for the Director Table domain DirectorNumber fixed length character string length 6 domain DirectorName variable length character string maximum length 10 Director ( DirectorID DirectorNumber NOT NULL,
Name DirectorName NOT NULL) Primary Key DirectorID
DBDL for the Supervisor Table domain SupervisorName variable length character string maximum length 10 domain SupervisorNumber fixed length character string length 6 domain BranchNumber fixed length character string length 4 Supervisor(SupervisorID SupervisorNumber NOT NULL,
Name SupervisorNumber NOT NULL, BranchID BranchNumber NOT NULL) Primary Key SupervisorID
Foreign Key BranchID References Branch(BranchNo) ON UPDATE CASCADE ON DELETE NO ACTION
Business Rules Business Policies 1.Only staff may access the staff webpage and database 2. Staff may only register a limit number of member at any one time 3. Buyer may only buy a limit number of goods at any one time Business Rules 1.Each staff may only register 5 members at any one time 2.Buyer may only buy 20 goods at any one time Business Rules force constraints on the data in the database 1.the number of goods linked to each buyer in the database is not more than 20
Transaction Table/Matrix I: Insert R: Read U: Update D: Delete
Transactions: a) Enter the details of a new branch. b) Enter the details of a new member. c) Enter the details of a new food. d) Enter the details of a new drink. e) Enter the details of a new staff at a branch. f) Enter the details of a new ingredient.
Transaction /Table
a) b) c) d) e) f)
I R U D I R U D I R U D I R U D I R U D I R U D
Food X
Drink X
Branch X FoodOrder
DrinkIrder
Member X Supplier
Ingredient X
Staff X X Telephone
Director Manager Supervisor Registration X
Transactions: g) Enter the details of a new supplier. h) Update/delete the details of a branch. i) Update/delete the details of a member. j) Update/delete the details of a given drink. k) Update/delete the details of a given food. l) Update/delete the details of a staff at a branch.
Transaction /Table
g) h) i) j) k) l)
I R U D I R U D I R U D I R U D I R U D I R U D
Food X X X
Drink X X X
Branch X X X FoodOrder
DrinkIrder
Member X X X Supplier X
Ingredient
Staff X X X Telephone
Director
Manager
Supervisor
Registration
Transactions: m) Update/delete the details of a supplier. n) Update/delete the details of an ingredient. o) List the details of branches in each position. p) List the details of staff at a given branch, ordered by staff name. q) List the details of all food at a given branch. r) List the details of all drinks at a given branch.
Transaction /Table
m) n) o) p) q) r)
I R U D I R U D I R U D I R U D I R U D I R U D
Food X
Drink X
Branch X FoodOrder DrinkIrder
Member Supplier X X X
Ingredient X X X
Staff X Telephone
Director Manager Supervisor Registration
Transactions: s) List the details of all members at all branches. t) List the name of Manager/Director/Supervisor at all branches. u) List the details of suppliers. v) List the details of ingredients. w) List the details of total daily cost. x) List the details of total daily income.
Transaction /Table
s) t) u) v) w) x)
I R U D I R U D I R U D I R U D I R U D I R U D Food Drink Branch FoodOrder X DrinkIrder X Member X Supplier X Ingredient X X Staff Telephone
Director Manager X Supervisor X Registration X
Transactions: y) List the number of food sold each day z) List the number of drink sold each day aa) List the details of telephone number.
Transaction /Table
y) z) aa)
I R U D I R U D I R U D
Food
Drink
Branch FoodOrder X
DrinkOrder X
Member Supplier
Ingredient
Staff Telephone X
Director Manager Supervisor Registration
Pseudo code for key algorithm a. INSERT INTO Branch VALUES(BranchNo,Postcode,EleNo,MangerID,Address) b. INSERT INTO Member VALUES(ID,Name,Sexy,Telephone,Address,E- mail) c. INSERT INTO Food VALUES(FoodNo,Name,Type,Price) d. INSERT INTO Drink VALUES(DrinkNo,Name,Type,Size,Price) e. INSERT INTO Staff VALUES(StaffNo,Name,Sexy,JobTitle,TeleNo,Address,Email) f. INSERT INTO Supplier VALUES(SName,Address,Telephone,Email) g. INSERT INTO Ingredient VALUES(Number,IngredientNo,Name,Price,Provider) h. UPDATE Branch SET column1=value1,column2=value2,...
WHERE some_column=some_value; DELETE FROM Branch WHERE some_column=some_value;
i. UPDATE Member SET column1=value1,column2=value2,...
WHERE some_column=some_value; DELETE FROM Member WHERE some_column=some_value;
j. UPDATE Drink SET column1=value1,column2=value2,... WHERE some_column=some_value;
DELETE FROM Drink WHERE some_column=some_value;
k. UPDATE Food SET column1=value1,column2=value2,...
WHERE some_column=some_value;
DELETE FROM Food WHERE some_column=some_value;
l. UPDATE Staff SET column1=value1,column2=value2,...
WHERE some_column=some_value; DELETE FROM Staff WHERE some_column=some_value;
m. UPDATE Supplier SET column1=value1,column2=value2,...
WHERE some_column=some_value; DELETE FROM Supplier WHERE some_column=some_value;
n. UPDATE Ingredient SET column1=value1,column2=value2,... WHERE some_column=some_value;
DELETE FROM Ingredient WHERE some_column=some_value;
o. SELECT some_rows FROM Branch WHERE Postcode = some_value; p. SELECT StaffNo,Name FROM Staff WHERE BranchID= some_value ORDER BY Staff name; q. SELECT* FROM Food WHERE BranchID= some_value; r. SELECT* FROM Drink WHERE BranchID= some_value; s. SELECT* FROM Member,Branch WHERE BranchID= some_value; t. SELECT Name, ID FROM Manager, Director, Supervisor WHERE BranchID= some_value; u. SELECT* FROM Supplier; v. SELECT* FROM Ingredient; w. SELECT Total daily cost FROM Branch WHERE BranchID= some_value; x. SELECT Total daily income FROM Branch WHERE BranchID=
some_value;
y. SELECT count (food name) by order from FoodOrder z. SELECT count (drink name) by order DrinkOrder aa. SELECT* FROM Telephone Functional Description Component Branch create function
Description Input information of new Branch Pre-conditions Branch is not exist
Goal Build a new Branch
Action Input the new data Information Used Branch data
Triggers There exists a new branch opening
Information Produced New branch data
Component Member register function
Description Input information of member Pre-conditions Customer does not a member
Goal Store data of new member
Action Input information for new member Information Used Member data
Triggers A new member registered
Information Produced New member data
Component Add food function
Description Input information of food Pre-conditions Food is not exist
Goal Store data of new food
Action Input information of new food Information Used Food data
Triggers Provide new food
Information Produced New food data
Component Add Drink function
Description Input information of drink Pre-conditions Drink is not exist
Goal Store data of new drink
Action Input data of new drink Information Used Drink data
Triggers Need provide new drink
Information Produced New drink data
Component Staff register function
Description Input information of staff to register in the database
Pre-conditions Staff is not register in the database
Goal The staff start to work
Action Input data of new staff Information Used Staff data
Triggers Need new staff worked in branch
Information Produced New staff data
Component Add supplier function
Description Input information of ingredient supplier Pre-conditions Supplier is not exist
Goal New ingredient supplier start to supply the ingredient
Action Input data of new ingredient supplier Information Used Ingredient supplier database
Triggers New ingredient supplier used to supply ingredient
Information Produced
New supplier data
Component Branch manager function
Description The function manages the Branch information when the Branch is closed or some change of information
Pre-conditions Branch is existing
Goal Delete/Update data of Branch
Action Input the data should be change or input the data need to be delete
Information Used Branch database
Triggers Branch is closed or some information change
Information Produced Branch data
Component Member manager function
Description The function manages the member information when the member is leaved or some change for information
Pre-conditions Member is existing
Goal Delete/Update data of Member
Action Input the data should be change or input the data need to be delete
Information Used Member database
Triggers Some customers do not want to be member, some information need to be change for customer
Information Produced Member data
Component Drink manager function
Description The function manages the Drink information when the goods pull off shelves or information change
Pre-conditions Drink is existing
Goal Delete/Update data of drink
Action Input the data should be change or input the data need to be delete
Information Used Drink database
Triggers Drink pull off shelves, the price change
Information Produced Drink data
Component Food manger function
Description The function manages the Food information when the goods pull off shelves or information change
Pre-conditions Food is existing
Goal Delete/Update data of Food
Action Input the data should be change or input the data need to be delete
Information Used Food database
Triggers Food pull off shelves, the price change
Information Produced Food data
Component Staff manager function
Description The function manages the staff information when the staff leave or information update
Pre-conditions Staff is existing
Goal Delete/Update data of Staff
Action Input the data should be change or input the data need to be delete
Information Used Staff data
Triggers Staff leave, information of Staff need to be updated
Information Produced Staff data
Component Supplier manager function
Description The function manages the supplier information when the cut off cooperation with supplier or information update
Pre-conditions Supplier is existing
Goal Delete/Update data of Supplier
Action Input the data should be change or input the data need to be delete
Information Used Supplier data
Triggers Cut off cooperation with supplier, update information for supplier
Information Produced Supplier data
Component Ingredient manager function
Description The function manages the ingredient information when the goods pull off shelves or put on sale
Pre-conditions Ingredient is existing
Goal Delete/update data of ingredient
Action Input the data should be change or input the data need to be delete
Information Used ingredient data, food data, drink data
Triggers Goods pull off shelves, Goods put on sale
Information Produced ingredient data
Component Branch position perform function
Description The function performs position of branch Pre-conditions Branch is existing
Goal output address of branch
Action Click the Branch position perform button Information Used Address data of Branch
Triggers Staff want to check the address of Branch
Component Staff perform function
Description The function performs information of staff
Pre-conditions Staff is existing
Goal output data of staff
Action Click the staff perform button Information Used Staff name, BranchNo
Triggers Staff want to check the staff name and BranchNo
Component Food perform function
Description The function performs information of Food
Pre-conditions Food is existing
Goal output data of food
Action Click to see Browse Catalog Information Used Food data
Triggers Staff and Customer want to check the list of Food
Component Drink perform function
Description The function performs information of drink
Pre-conditions Drink is existing
Goal output data of drink
Action Click to see Browse Catalog Information Used Food data
Triggers Staff and Customer want to check the list of Drink
Component Member perform function
Description The function performs information of member
Pre-conditions Member is existing
Goal output data of member
Action Click the member perform button Information Used member data
Triggers Staff want to check the member information
Component Manager/Director/Supervisor perform
function Description The function performs name of
Manager/Director/Supervisor Pre-conditions Manager/Director/Supervisor is existing
Goal output data of new ingredient
Action Click the s Manager/Director/Supervisor perform button
Information Used Name of Manager/Director/Supervisor
Triggers Staff want to check the name of Manager/Director/Supervisor
Component Supplier perform function
Description The function performs information of supplier
Pre-conditions Supplier is existing
Goal output data of supplier information
Action Click the supplier perform button Information Used Supplier data
Triggers Staff want to check the supplier information
Component Ingredient perform function
Description The function performs information of Ingredient
Pre-conditions Ingredient is existing
Goal output data of ingredient
Action Click the Ingredient perform button Information Used ingredient data
Triggers Staff want to check the ingredient information
Component Daily cost perform function
Description The function performs daily cost of a given branch
Pre-conditions Ingredient is existing
Goal output data of daily cost of all branch
Action Click the daily cost perform button Information Used Ingredient data
Triggers Staff want to check the daily cost for all branches
Information produced Daily cost
Component Daily income perform function
Description The function performs daily income of a given branch
Pre-conditions Foodorder and Drinkorder is existing
Goal output data of daily income of all branch
Action Click the daily income perform button Information Used Foodorder data, Drinkorder data
Triggers Staff want to check the daily income for all branches
Information produced Daily income
Component Telephone perform function
Description The function performs information of telephone
Pre-conditions Telephone is existing
Goal output telephone number
Action Click the telephone perform button
Information Used Telephone number
Triggers Staff want to check the telephone number
Component Foodsale perform function
Description The function performs sale of food Pre-conditions The food is sold
Goal output the sale number for each food
Action Click the foodsale perform button
Information Used Foodorder data
Triggers Staff want to check the which food is most popular
Component Drinksale perform function
Description The function performs sale of drink Pre-conditions The drink is sold
Goal output the sale number for each drink
Action Click the drinksale perform button
Information Used Drinkorder data
Triggers Staff want to check the which drink is most popular
Use Case Diagram
Message Sequence Chart Sequence chart for staff
Sequence chart for user
Interface Design
Project Plan and Gantt Chart