Answer
1
Work Step by Step
$\int^{\pi}_{0}\frac{1}{2}(\cos x+|\cos x|)dx$
=$\int^{\pi}_{0}\frac{1}{2}(\cos x+\cos x)dx$
=$\int^{\pi}_{\frac{\pi}{2}}\frac{1}{2}(\cos x+|\cos x|)dx$
=$\int^{\pi}_{0}(\cos x)dx$
=$[\sin x]_{0}^{\frac{\pi}{2}}$
=$\sin \frac{\pi}{2} -\sin 0$
=1