Consider a time-dependent current across a 1 \mathrm{~F} capacitor given by
i_{C}(t)=\left\{\begin{aligned}1,\quad & 0<t<1 \mathrm{~s} \\-1,\quad & 1<t<3 \mathrm{~s} \\0, \quad & \text { otherwise. }\end{aligned} \quad\right. \text { (A). }Assuming v_{C}(0)=0, find and plot the voltage across the capacitor, as well as the power of the capacitor and the stored energy.