Step 1: Understanding the Concept
Split the integral where the expression inside the modulus changes sign.
Step 2: Sign of the Expression
\(\sin x = \dfrac{2x}{\pi}\) at \(x=0\) and \(x=\dfrac\pi2\).
On \((0,\pi/2)\) sin x is above the line (concave curve), so the expression is positive.
On \((\pi/2,\pi)\) we have \(\sin x\le 1\le \dfrac{2x}{\pi}\), so it is negative.
Step 3: First Part
\(\int_0^{\pi/2}\left(\sin x-\dfrac{2x}{\pi}\right)dx = 1 - \dfrac{1}{\pi}\cdot\dfrac{\pi^2}{4} = 1-\dfrac\pi4\).
Step 4: Second Part
\(\int_{\pi/2}^{\pi}\left(\dfrac{2x}{\pi}-\sin x\right)dx = \dfrac{1}{\pi}\left(\pi^2-\dfrac{\pi^2}{4}\right) - 1 = \dfrac{3\pi}{4}-1\).
Total \(= 1-\dfrac\pi4+\dfrac{3\pi}{4}-1 = \dfrac\pi2\).
Final Answer:
The value of the integral is pi by 2.
\[ \boxed{\text{(B) }\dfrac{\pi}{2}} \]