Calculate the current in the resistor in Fig. $\mathrm{P} 8.5$ if the voltage input is
(a) $v_{1}(t)=10 \cos \left(377 t+180^{\circ}\right) \mathrm{V}$
(b) $v_{2}(t)=12 \sin \left(377 t+45^{\circ}\right) \mathrm{V}$
Give the answers in both the time and frequency domains.