Given the sinusoidal expression for the current, determine the expression for the voltage across a resistor, a capacitor, or an inductor, depending on the element involved.
In other words, the program will ask which element is to be investigated and will then request the pertinent data to obtain the mathematical expression for the sinusoidal voltage.