Question: A. Write a C++ program which does the following: a) Declares PI as a constant and sets its value to 3.14159, b) Declares all other

 A. Write a C++ program which does the following: a) Declares
PI as a constant and sets its value to 3.14159, b) Declares

A. Write a C++ program which does the following: a) Declares PI 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 cF) 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. Hint: you can estimate the resonant frequency thus: r-1/(2.Pl sqrt(L.C)) At resonance, the inductor and capacitor will cancel each other out, so the max current should be 1E/R= 15/15-1.0 Amps

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!