bash-4.3$ date Wed Mar 1 12:56:19 EST 2017 bash-4.3$ pwd /home/accts/sbs5/cs223/www/current/lectures bash-4.3$ cd code bash-4.3$ ./lp0301 x: (010) 10 y: 8 bash-4.3$ ls badDoubler.c lookingAtPointers lp0220.c random examplehash lookingAtPointers.c lp0227 random.c examplehash2 lp0118 lp0227.c stacklist examplehash2.c lp0118.c lp0301 stacklist.c examplehash.c lp0120 lp0301.c stacknotes exhash lp0120.c Makefile stack.py exhash2 lp0123 mt struct exhash2.c lp0123.c mygetLine struct2 exhash.c lp0125 mygetLine.c struct2.c getLine lp0125.c myString struct3 getLine.c lp0206 myString.c struct3.c goodDoubler.c lp0206.c myString.h struct.c hi lp0208.c printArgs sumRange hi.c lp0213 printArgs.c sumRange.c lists lp0213.c __pycache__ tolower lists2 lp0215 queuetest tolower.c lists2.c lp0215.c queuetest.c lists.c lp0220 queuetest.o bash-4.3$ python3 Python 3.5.2 (default, Oct 14 2016, 12:54:53) [GCC 6.2.1 20160916 (Red Hat 6.2.1-2)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from stack import * >>> s stack([1, 2, 3, 4]) >>> test(s) 4 3 2 1 [4, 3, 2, 1] >>> revstr('talk') 'klat' >>> revstr('radar') 'radar' >>> bash-4.3$ ls badDoubler.c lookingAtPointers lp0220.c random examplehash lookingAtPointers.c lp0227 random.c examplehash2 lp0118 lp0227.c stacklist examplehash2.c lp0118.c lp0301 stacklist.c examplehash.c lp0120 lp0301.c stacknotes exhash lp0120.c Makefile stack.py exhash2 lp0123 mt struct exhash2.c lp0123.c mygetLine struct2 exhash.c lp0125 mygetLine.c struct2.c getLine lp0125.c myString struct3 getLine.c lp0206 myString.c struct3.c goodDoubler.c lp0206.c myString.h struct.c hi lp0208.c printArgs sumRange hi.c lp0213 printArgs.c sumRange.c lists lp0213.c __pycache__ tolower lists2 lp0215 queuetest tolower.c lists2.c lp0215.c queuetest.c lists.c lp0220 queuetest.o bash-4.3$ cd __pycache__/ bash-4.3$ ls stack.cpython-35.pyc bash-4.3$ pwd /home/accts/sbs5/cs223/www/current/lectures/code/__pycache__ bash-4.3$ cd .. bash-4.3$ ./stacklist push 0 0 push 1 1 0 push 2 2 1 0 push 3 3 2 1 0 push 4 4 3 2 1 0 pop gets 4 3 2 1 0 pop gets 3 2 1 0 pop gets 2 1 0 pop gets 1 0 pop gets 0 bash-4.3$ pwd /home/accts/sbs5/cs223/www/current/lectures/code bash-4.3$ ./queuetest 3 4 5 6 -3 9 Stack: size: 1 :[3] Stack: size: 0 : Stack: size: 2 :[4] [3] Stack: size: 0 : Stack: size: 3 :[5] [4] [3] Stack: size: 0 : Stack: size: 4 :[6] [5] [4] [3] Stack: size: 0 : Stack: size: 0 : Stack: size: 3 :[4] [5] [6] Stack: size: 1 :[9] Stack: size: 3 :[4] [5] [6] bash-4.3$ exit Process shell finished