We use the formula [tex]A=P\left(1+\dfrac{r}{n}\right)^{nt}[/tex], where
A is the ending amount or value
P is the initial amount of investment or deposit
r is the annual/nominal interest rate
n is the number of compoundings per year
t is the number of years.
For Part A:
This formula becomes [tex]A=9000\left(1+\dfrac{0.03}{1}\right)^{1\cdot 5}[/tex]. In this case A ≈ 10,433.67.
For Part B:
Based on the statement that "interest (is) credited to the account at the end of each year," I have to assume that the 7 months after the 9th complete year do not earn any interest. With that understanding, we have
[tex]A=9000\left(1+\dfrac{0.03}{1}\right)^{1\cdot 9}\approx11,742.96[/tex]
Now if it was intended for the interest to be earned on that portion of a year, then your t-value would be [tex]9\frac{7}{12}[/tex] or [tex]\frac{115}{12}[/tex] and your calculation would be
[tex]A=9000\left(1+\dfrac{0.03}{1}\right)^{1\cdot \frac{115}{12}}\approx11,947.19[/tex]
Again, I do not think that second option is correct based on interest being credited at the end of the year.