Concept:
The greatest integer function \( [x] \) splits the interval into subintervals where the function remains constant. We evaluate the integral piecewise.
Step 1: Find intervals where \( \left[ \frac{2x}{\pi} \right] \) is constant.
\[
\frac{2x}{\pi} =
\begin{cases}
0 & 0 \le x
1 & \frac{\pi}{2} \le x
2 & \pi \le x \le \frac{3\pi}{2}
\end{cases}
\]
Step 2: Split the integral:
\[
\int_{0}^{\frac{\pi}{2}} \sin(0)\,dx + \int_{\frac{\pi}{2}}^{\pi} \sin(1)\,dx + \int_{\pi}^{\frac{3\pi}{2}} \sin(2)\,dx
\]
Step 3: Evaluate each part:
\[
= 0 + \sin(1)\left(\frac{\pi}{2}\right) + \sin(2)\left(\frac{\pi}{2}\right)
\]
\[
= \frac{\pi}{2}(\sin 1 + \sin 2)
\]