Solution of homework

Click solution2thp.pdf link to view the file.