Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I = E/squareroot R^2 + (2pi FL - 1/2pi FC)^2 I = current in Amps E = Electromotive Force in Volts R = Resistance in
I = E/squareroot R^2 + (2pi FL - 1/2pi FC)^2 I = current in Amps E = Electromotive Force in Volts R = Resistance in Ohms F = Frequency of the Current in Hertz L = Inductance in Henrys C = Capacitance in Farads Where, F is frequency (measured in Hz), E is EMF (Voltage) and I is current (measured in Amps). A. Write a C++ program which does the following: a) Declares Pl as a constant and sets its value to 3.14159, b) Declares all other variables described above as local variables. c) Prompts for the input of (and inputs) resistance frequency, capacitance, inductance and EMF. d) Calculates and displays the current. B. Test your program with this test data: f = 200 Hz R = 15 Ohms C = 0.0001 (100 infinity F) L = 0.01476 (14.76mH) E = 15 V Answer: I = 0.816918A (calculated) C. Using your program, try different frequencies and try to find the resonant frequency (where the current is at a maximum. F_r = 1/(2.PI. squareroot (L.C)) At resonance, the inductor and capacitor will cancel each other out, so the max current should be I = E/R = 15/15 = 1.0 Amps
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started