Homework 2 CS539

Work the following problems in the textbook: 4.7, 4.9