Step 1: Understanding the Concept
\(\sin x+|\sin x|=2\sin x\) when \(\sin x\ge0\), and it is 0 when \(\sin x<0\).
Step 2: Split the interval
On \([0,\pi]\), \(\sin x\ge0\). On \([\pi,2\pi]\), \(\sin x\le0\), so the integrand is 0 there.
Step 3: Integrate
\(\int_0^{2\pi}(\sin x+|\sin x|)dx=2\int_0^\pi\sin x\,dx=2[-\cos x]_0^\pi\)
Step 4: Calculation
\(=2(1+1)=4\)
Final Answer:
The value of the integral is 4.
\[ \boxed{\text{(C) }4} \]