Problem: An RLC circuit is an electrical circuit consisting of a resistor, an inductor, and a capacitor, connected in series or in parallel. some important properties of this type of circuit are the resonance frequency f0 and damping attenuation.
Theresonance frequency is related to the angular frequency by the following expression.
W0=2pief0
Where
W0=1/LC
The damping attenuation is defined by
c=a/W0
if the damping attenuation is 1, it is called critical damping, and the circuit is close to oscillation.
the parameter a is called neper frequency( or anttenuation) and it is measure of how fast the transient response of the circuit will die away after the voltage source is removed.
if the RLC circuit is in parallel, then a is given by
a=1/2RC
if the RLC circuit is in series, a is given by
a=R/2L
Write a program that will ask the user for the parameters of the RLC circuit, calculate the resonance frequency and the damping attenuation, and the display the result of these calculation. Assume that it is a parallel RLC circuit.