Sunteți pe pagina 1din 6

SOFTWARE PROJECT

Problem:
A computer system is required that can support the following restaurant business:
Customers entering the restaurant consult the menu to order food, the waiter takes the
order and submits it to the chef. The chef prepares the order. The waiter then serves the
food to the customer. After the customer finishes his meal, his bill is encashed by the
cashier.
The system described is represented using:
1. Use case diagram
2. Class diagram
3. Sequence Diagram
4. Collaboration Diagram
5. Activity Diagram
6. State Chart Diagram

USE CASE DIAGRAM

Order Food

Customer

Eat Food

Waiter

Serve Food

Cas hier
Pay the bill

Chef
Cook Food

CLASS DIAGRAM

R e s t a u ra n t
O p e n t im e : In t e g e r
C lo s e t im e : In t e g e r
A d d re s s : S t rin g
T e le p h o n e n o . : In t e g e r
has
c o n t a in s
c o n t a in s

has

S t a ff
N a m e : S t rin g
E m p lo y e e ID : In t e g e r

D in in g A re a
S m o k in g / N o n S m o k in g : B o o le a n

s e a ts

K it c h e n
V e g / N o n -V e g : B o o le a n

M enu

lis t s
C hef
C u s t o m e rs
F o o d D is h e s
n a m e : S tr in g
P r ic e : C u r re n c y
D e s c ri p t io n : S tr in g

W a it e rs

C a s h ie r

ACTIVITY DIAGRAM

COLLABORATION DIAGRAM

6: eat food
1: order food
Custome
r

Waiter

5: serve food
2: order food

4: pick up food
7: pay the bill
3: cook food

Chef

Cashier

STATECHART DIAGRAM

place order

Order
placed
order taken by chef
Food
cooked
food served

Food
Eaten

yes,bill delivered
Bill Paid

exit restaurant

not yet finished, order more

SEQUENCE DIAGRAM
Customer

1: order
food

Waiter
2: order
food

Chef

3: cook food

4: pick up food
5: serve
food

6: eat food

7: pay the
bill

Cashier

S-ar putea să vă placă și