First, you have to do problem 4-9 using a financial calculator

Also remember pv have to have a negative sign in front. Besides that, the rate you just calculate is the rate for 6 months, not a year, therefore to get YTM, you need to multiply rate of 6 months with 2. For example, cell b29 = RATE(c20,c23,-c24,c22)*c19. Problem b and c. Using the formulas given, calculate current yield and capital gain/loss ... ................
................