$ git clone https://github.com/resoto/franchise
$ cd franchise
$ javac fc/*.java
$ java fc.Test1
start a new fc company.
contract a new owner.
start a new store.
hire a new employ.
stock a item (240 yen)
stock a item (240 yen)
stock a item (240 yen)
add to cart
add to cart
add to cart
out of stock
stock a item (240 yen)
stock a item (240 yen)
stock a item (240 yen)
store:1560 yen
client:2500 yen
read item (300 yen)
read item (300 yen)
read item (300 yen)
total:900 yen.
store:2460 yen
client:1600 yen
$ java fc.Test2
start a new fc company.
contract a new owner.
start a new store.
hire a new employ.
stock a item (160 yen)
stock a item (120 yen)
stock a item (1200 yen)
Insufficient funds
add to cart
add to cart
store:1520 yen
client:2500 yen
read item (200 yen)
read item (1500 yen)
total:1700 yen.
store:3220 yen
client:800 yen
(base) resoto@resoto-no-MacBook-Air franchise %
(base) resoto@resoto-no-MacBook-Air franchise %
(base) resoto@resoto-no-MacBook-Air franchise %
(base) resoto@resoto-no-MacBook-Air franchise %
(base) resoto@resoto-no-MacBook-Air franchise %
(base) resoto@resoto-no-MacBook-Air franchise % java fc.Test2
start a new fc company.
contract a new owner.
start a new store.
hire a new employ.
stock a item (160 yen)
stock a item (120 yen)
stock a item (1200 yen)
Insufficient funds
add to cart
add to cart
store:1520 yen
client:2500 yen
read item (200 yen)
read item (1500 yen)
total:1700 yen.
store:3220 yen
client:800 yen