Homework Chapter 7, 8

Please print out the code portions of this homework as well.