The question i have received is this:

Assuming you have a serial RC circuit fed with a AC voltage at frequencyf.Using equations provided in the introduction and material learned from your own research, you are required to write a C program that enables the user to

§ Input the value of resistance and capacitance.

§ Enter the input frequencyf.

§ Calculate and display the resistance and reactance of the combined RC impedance.

§ Calculate and display the phase difference between the current wave and the voltage wave. Test with different input values, i.e. cases of pure resistance, pure reactance and combination of resistance and reactance (RC circuit).

Could anyone advise me on what it is asking of me, and explain what i would need to enter into the program to fufill the programs need?

Many Thanks, help would be appreciated.