This applet simulatie an RLC circuit.
You can adjust angular frequency for the AC source , R, L, C .
The code has been modified so that you can remove one or two elements.
Now you can study pure resistor circuit, RC, RL, LC or RLC circuit with this simulation.
I also add small circle along the circuit loop to simulate the average motion of charge particle in the loop.
The current flow I in the loop in proportional to (in phase) the voltage of the resistor VR.
However, there is a 90 degree out of phase between voltage of inductor/capacitor and the current I.
The slider bar on the left is used to adjust the voltage of the source. V