Find the charge $q(t)$ flowing through a device if the current is:
(a) $i(t)=3 \mathrm{A}, q(0)=1 \mathrm{C}$
(b) $i(t)=(2 t+5) \mathrm{mA}, q(0)=0$
(c) $i(t)=20 \cos (10 t+\pi / 6) \mu \mathrm{A}, q(0)=2 \mu \mathrm{C}$
(d) $i(t)=10 e^{-30 t} \sin 40 t$ A, $q(0)=0$