optional - 10 points, 2 points per problem (possible to get 12/10), due before Dec 16 Put this in HW/lab18/ and use the same file names as for the exam. You can copy your EXAM/examB/ files as a starting point. Grading script... if [ -d HW/lab18 ]; then cd HW/lab18; rm -f eB1 eB2 eB3 eB4 eB5 if [ ! -f Makefile.backup ]; then cp Makefile Makefile.backup; fi echo "y" | cp -f ~jkinne/public_html/cs202-f2017/EXAM/examB/Makefile . make echo " *** (1) *** " ./eB1 | head -n 2 ./eB1 | tail -n 2 echo " *** (2) *** " ./eB2 < Makefile echo " *** (3) *** " ./eB3 < /u1/junk/kinne/shakespeare_1000_lines_tail.txt | tail -n 2 echo " *** (4) *** " ./eB4 < /u1/junk/kinne/shakespeare_1000_lines_tail.txt echo " *** (5) *** " ./eB5 0145abf2 a5 else echo " *** no HW/lab18 directory ** "; fi My answers, running that for me -- *** (1) *** jkinne@cs:~/public_html/cs202-f2017/EXAM/examB$ 199 197 jkinne@cs:~/public_html/cs202-f2017/EXAM/examB$ 103 101 jkinne@cs:~/public_html/cs202-f2017/EXAM/examB$ *** (2) *** jkinne@cs:~/public_html/cs202-f2017/EXAM/examB$ COMPILER=gcc CFLAGS=-ggdb -pedantic -Wall jkinne@cs:~/public_html/cs202-f2017/EXAM/examB$ *** (3) *** jkinne@cs:~/public_html/cs202-f2017/EXAM/examB$ our: 12 1.33% of the words printed. jkinne@cs:~/public_html/cs202-f2017/EXAM/examB$ *** (4) *** jkinne@cs:~/public_html/cs202-f2017/EXAM/examB$ Number of words with ... 1 letter: 11 2-5 letters: 770 20-100 letters: 0 jkinne@cs:~/public_html/cs202-f2017/EXAM/examB$ *** (5) *** jkinne@cs:~/public_html/cs202-f2017/EXAM/examB$ Up to 4 bytes of hex: 0xOne byte of hex: 0xor'ed together: 0xa5e5aff7