product luckyMe,alpo,ligo;
shoppingCart cart;
customer peter;
cashier christine;
wallet seiko;
counter fastLane;
cashRegister panasonic;
cart = new shoppingCart();
luckyMe = new product("noodles",10);
alpo = new product("dog-food",75);
ligo = new product("canned-goods",15);
peter = new customer();
seiko = new wallet(1000);
christine = new cashier();
fastLane = new counter();
panasonic = new cashRegister();
peter.speak("How much money do I have in my seiko wallet?");
peter.look(seiko);
peter.speak("I'll take this ligo sardine");
peter.get(ligo);
peter.look(peter.hand);
peter.putTo(cart);
peter.speak("I'll take this alpo dogfood");
peter.get(alpo);
peter.look(peter.hand);
peter.putTo(cart);
peter.speak("I'll take this lucky Me noodles");
peter.get(luckyMe);
peter.look(peter.hand);
peter.putTo(cart);
peter.speak("Hmm.. I think this will be all...");
peter.look(cart);
peter.hold(cart);
fastLane.getCart(peter.otherHand);
christine.speak("Good day Sir!!!");
peter.speak("It's really a good day today Christine");
peter.smile();
christine.speak("Yes, your right! It's a good day today");
christine.smile();
christine.getCart(fastLane);
christine.speak("1st Product");
christine.getProduct();
christine.rightHand.inquire();
panasonic.accumulate(christine.rightHand);
christine.speak("2nd Product");
christine.getProduct();
christine.rightHand.inquire();
panasonic.accumulate(christine.rightHand);
christine.speak("3rd Product");
christine.getProduct();
christine.rightHand.inquire();
panasonic.accumulate(christine.rightHand);
peter.speak("My total amount due is...");
peter.look(panasonic);
peter.speak("Take my money...");
christine.speak("give me your wallet");
christine.closeTransaction(panasonic,seiko);
peter.speak("my money left is...");
peter.look(seiko);
christine.speak("Thank you sir, come again");
peter.speak("OK, thanks too");
peter.speak("see you again");
peter.smile();
christine.smile();
}