Use a parametric representation for the contour C to evaluate the integral.
\[
\displaylines{\int_{C}f\left(z\right)dz\text{ where }f\left(z\right)=z-1\text{ and }C\text{ is the arc from }z=0\text{ to }z=2\text{ consisting of}\\ 1)\text{the semicircle }z=1+e^{i\theta}\left(\pi\le\theta\le2\pi\right)\\ 2)\text{the segment }0\le x\le2\text{ of the real axis.}}
\]