To solve the given integral, we need to evaluate \( \pi^2 \int_{0}^{2} \left( \sin \frac{\pi x}{2} \right) (x - [x])^{[x]} \, dx \). We will break this integral into segments based on the greatest integer function, also known as the floor function \([x]\).