I have been stick in this question for a long time, it is a question about Taylor’s series for $\sin x$.

The question required that we should explain the terminate condition of this program.I 've try this code and I think if t smaller than the round-of error corresponding s, the program will terminate.
Also for Q2, does it means the error of actual value of sin(x) and sin(x) calculated by the code?
I am a starter of matlab and please give me some advice :)
Welcome to Math.SE!
For (a), you are right, the loop terminates when $s \ne s+t$, where $t$ is the next term in the series you try to add on.
For (b), you can certainly easily compute $\sin(\pi/2), \sin(11\pi/2), \ldots$ by hand and the problem asks you to compare the analytic values of the function to those that are produced by the code, as well as look at some other considerations and draw conclusions about floating-point arithmetic and power-series approximations to functions.