Solutions for COD chapter 2 homework.

       
(caption goes here)