I think your problem asks for TVM. In general, to price a bond, denote the following variables:
PV = present value
FV = face value
C = annual coupon payment
Y = annual yield
T = total periods that the bond will be valid (purchase date until maturity date)
Then the price of a bond is calculated as:
So for example, a 3-year bond with a face value of $100, annual coupon rate of 5%, and yield of 3% is priced as:
(In this case, this bond is sold at a premium because the PV is higher than its face value. If it's the other way around, it's at a discount).
The interest that you receive is all the coupon payments.
The annual yield is usually either given or you can solve for it according to the formula that I gave you.
Risk for bonds are reflected in their yields. Higher risk of default by the issuer of the bond results in a higher return as compensation for that risk, which results in a higher yield. A bond with yield of 6% has a higher default risk than a bond with a yield of 4%, all else held constant. For example, because corporate debt is considered to be riskier than U.S. Treasuries, corporate debt will have a higher yield than government bonds.
But keep in mind that default risk is not the only thing that affects yield. There is also liquidity, as well as other factors.
Let me know if you need further help, such on concepts of accrued interest or semiannual coupon bonds.