while calculating the price of a bond, in example 39. they have just added z spread to the four year discount rate and discounted it 4 times. However, in example 40, they are adding the z spread to all previous spot rates.
I don’t understand which method applies when! What am I missing?