18. ECHO HELLO WORLD
•
A program read input from keyboard or scanner
•
A program sends the output to either printer or
screen
19. DOM
•
Element are the things that
can be shown on screen
•
element can contain each
other
•
A browser can call render()
and the element should
render itself and everything
inside
20. SWING BORDER
•
Component can have borders
•
Borders can be stacked on top of
each other
•
Many kinds of border
•
•
Plain border
•
•
Image border
Dotted border
When render() the component
draw itself and the border
21. ENCRYPTION
•
An encryption module can encrypt a plain string to encrypted string
•
Many standards : DES, AES, Blowfish
•
Some encryption standards are composite of others
•
e.g.
•
3 DES = DES(DES(DES(text)))
•
DESAES = DES(AES(text))
33. Starbucks
1.
2.
1.
2.
3.
3.
4.
1.
2.
3.
4.
5.
6.
Create a software for cashier and barista
A program accepts order from user (cashier as them)
example:
What kind of coffee
What size etc
A program compute cost based on the order
A program shows the barista what to do
example:
Put in 2x coffee
Put in milk
put in ice
shake
done
35. Starbucks (v2)
1.
2.
3.
a.
b.
Select Coffee Type (Hot/Cold)
Select Size of cup (S,M,L)
Make Coffee
Hot :: Cup -> Coffee (S,M,L)
Cold :: Cup -> Coffee (S,M,L) -> Ice (always x 1)
-- redraw this(keep v1) --
36. Starbucks (v3) redraw this
-1.
a.
b.
c.
2.
3.
a.
b.
c.
Select Coffee Type (Hot/Cold)(keep v1&v2) -Americano
Espresso
Latte
Select Size (S,M,L)
Make Coffee
Coffee
i.
Americano = Coffee + Water
1.
Latte = Coffee + Milk
a.
Espresso = Coffee + (nothing)
Hot :: Cup-> Coffee (S,M,L)
Cold :: Cup -> Coffee (S,M,L) -> Ice (always x 1)
37. `
What is the differences
between requirement and
design?