Answer:
since you are required to calculate the effective yield to maturity, you cannot use the approximate YTM formula since it is not exact. You will need to use a financial calculator, online calculator or excel spreadsheet. I prefer to use an excel spreadsheet and use the IRR function:
a) initial outlay = -$970
cash flows 1 - 19 = $80
cash flow 20 = $1,080
IRR = 8.31%
Since the bond is sold at a discount, the effective yield will be higher than the coupon rate.
b) if hte bond is sodl at par, the effective yield to maturity is the coupon rate = 8%
c) initial outlay = -$1,170
cash flows 1 - 19 = $80
cash flow 20 = $1,080
IRR = 6.49%
Since the bond is sold at a premium, the effective yield will be lower than the coupon rate.