start new payment transaction; while (something is on the conveyer) { scan item; } tell costumer total price; take money; calculate change; return change; say goodbye;