I was asked to post the solutions for HW 2.2. Please find these below.
One of the main ideas that you should have taken from this assignment is that there are two basic ways that you can find a price. Either:
1. You can run a XNPV back to the discount date at the yield rate, OR
2. You can iterate on the price until it hits a specific yield.
Either way will work. Or both…Belts and suspenders.