The wire shown in Fig. $30-27$ carries current $i$. What are the magnitude and direction of the magnetic field $\vec{B}$ produced at the center $C$ of the semicircle by (a) each straight segment of length $L$, (b) the semicircular segment of radius $R$, and (c) the entire wire?