Listing 4: Sample output from tcoffee4.cpp
C:>tcoffee4 ______________________________________ PRODUCT LIST: all 35 cents, except bouillion (25 cents) 1=black, 2=white, 3=sweet, 4=white & sweet, 5=bouillion Sample commands: insert 25, select 1. Your command: insert 50 Depositing 50 cents. You have 50 cents credit. ______________________________________ PRODUCT LIST: all 35 cents, except bouillion (25 cents) 1=black, 2=white, 3=sweet, 4=white & sweet, 5=bouillion Sample commands: insert 25, select 1. Your command: select 1 Dispensing 1 shot(s) of cup Dispensing 1 shot(s) of coffee Dispensing 1 shot(s) of water Returning 15 cents. ______________________________________ PRODUCT LIST: all 35 cents, except bouillion (25 cents) 1=black, 2=white, 3=sweet, 4=white & sweet, 5=bouillion Sample commands: insert 25, select 1. Your command: insert 25 Depositing 25 cents. You have 25 cents credit. ______________________________________ PRODUCT LIST: all 35 cents, except bouillion (25 cents) 1=black, 2=white, 3=sweet, 4=white & sweet, 5=bouillion Sample commands: insert 25, select 1. Your command: insert 25 Depositing 25 cents. You have 50 cents credit. ______________________________________ PRODUCT LIST: all 35 cents, except bouillion (25 cents) 1=black, 2=white, 3=sweet, 4=white & sweet, 5=bouillion Sample commands: insert 25, select 1. Your command: select 2 Dispensing 1 shot(s) of cup Dispensing 1 shot(s) of coffee Dispensing 1 shot(s) of creamer Dispensing 1 shot(s) of water Returning 15 cents. ______________________________________ PRODUCT LIST: all 35 cents, except bouillion (25 cents) 1=black, 2=white, 3=sweet, 4=white & sweet, 5=bouillion Sample commands: insert 25, select 1. Your command: insert 25 Depositing 25 cents. You have 25 cents credit. ______________________________________ PRODUCT LIST: all 35 cents, except bouillion (25 cents) 1=black, 2=white, 3=sweet, 4=white & sweet, 5=bouillion Sample commands: insert 25, select 1. Your command: insert 10 Depositing 10 cents. You have 35 cents credit. ______________________________________ PRODUCT LIST: all 35 cents, except bouillion (25 cents) 1=black, 2=white, 3=sweet, 4=white & sweet, 5=bouillion Sample commands: insert 25, select 1. Your command: select 3 Dispensing 1 shot(s) of cup Dispensing 1 shot(s) of coffee Dispensing 1 shot(s) of sugar Dispensing 1 shot(s) of water ______________________________________ PRODUCT LIST: all 35 cents, except bouillion (25 cents) 1=black, 2=white, 3=sweet, 4=white & sweet, 5=bouillion Sample commands: insert 25, select 1. Your command: insert 50 Depositing 50 cents. You have 50 cents credit. ______________________________________ PRODUCT LIST: all 35 cents, except bouillion (25 cents) 1=black, 2=white, 3=sweet, 4=white & sweet, 5=bouillion Sample commands: insert 25, select 1. Your command: select 4 Dispensing 1 shot(s) of cup Dispensing 1 shot(s) of coffee Dispensing 1 shot(s) of sugar Dispensing 1 shot(s) of creamer Dispensing 1 shot(s) of water Returning 15 cents. ______________________________________ PRODUCT LIST: all 35 cents, except bouillion (25 cents) 1=black, 2=white, 3=sweet, 4=white & sweet, 5=bouillion Sample commands: insert 25, select 1. Your command: insert 25 Depositing 25 cents. You have 25 cents credit. ______________________________________ PRODUCT LIST: all 35 cents, except bouillion (25 cents) 1=black, 2=white, 3=sweet, 4=white & sweet, 5=bouillion Sample commands: insert 25, select 1. Your command: select 5 Dispensing 1 shot(s) of cup Dispensing 1 shot(s) of bouillion powder Dispensing 1 shot(s) of water ______________________________________ PRODUCT LIST: all 35 cents, except bouillion (25 cents) 1=black, 2=white, 3=sweet, 4=white & sweet, 5=bouillion Sample commands: insert 25, select 1. Your command: quit